> ## Documentation Index
> Fetch the complete documentation index at: https://docs.portalhq.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Transfer tokens as a delegate

> Builds a transaction to transfer tokens from one address to another using the
delegate's approval. The response format differs between EVM and Solana chains.




## OpenAPI

````yaml /openapi/client-api.yaml post /clients/me/chains/{chain}/assets/{token}/delegations/transfers
openapi: 3.1.0
info:
  title: Portal Client API
  version: '3.0'
  description: >
    The Portal Client API provides endpoints for managing wallets, building
    transactions,

    and interacting with blockchain networks. All endpoints require
    authentication via a

    Client API Key or Client Session Token (CST) passed as a Bearer token.


    ## Base URL

    `https://api.portalhq.io/api/v3`


    ## Authentication

    Include your Client API Key or Client Session Token as a Bearer token in the

    `Authorization` header of every request.


    ## Chain ID Format

    Chain parameters use either friendly names (e.g. `ethereum`, `solana`) or
    CAIP-2 format

    (e.g. `eip155:1`, `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`). When using
    CAIP-2 format

    in URLs, ensure the colon is URI-encoded (`%3A`).
servers:
  - url: https://api.portalhq.io/api/v3
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Clients
    description: Core client management endpoints
  - name: Wallet
    description: >-
      Read wallet state — balances, NFTs, transaction history, capabilities, and
      transaction details
  - name: Transactions
    description: Build, broadcast, and evaluate blockchain transactions
  - name: Funding
    description: Fund wallets with testnet tokens
  - name: Wallet Shares
    description: Manage signing and backup share pairs
  - name: Delegations
    description: Manage token approvals, revocations, and delegated transfers
  - name: Session Keys
    description: Manage EIP-7702 session keys for smart accounts
  - name: 0x
    description: Token swap endpoints powered by the 0x protocol
  - name: Yield.xyz
    description: Yield opportunities and staking actions powered by Yield.xyz
  - name: Li.Fi
    description: Cross-chain swaps and bridging powered by Li.Fi
  - name: Blockaid
    description: Transaction and address security scanning powered by Blockaid
  - name: Hypernative
    description: >-
      Transaction, address, token, and NFT security scanning powered by
      Hypernative
  - name: Noah
    description: KYC onboarding, payins, and payouts powered by Noah
  - name: EIP-7702
    description: EIP-7702 account type detection and authorization management
  - name: Deprecated
    description: >-
      Legacy endpoints scheduled for removal. Use the newer equivalents listed
      in each endpoint's description.
paths:
  /clients/me/chains/{chain}/assets/{token}/delegations/transfers:
    post:
      tags:
        - Delegations
      summary: Transfer tokens as a delegate
      description: >
        Builds a transaction to transfer tokens from one address to another
        using the

        delegate's approval. The response format differs between EVM and Solana
        chains.
      operationId: transferAsDelegate
      parameters:
        - $ref: '#/components/parameters/chain'
        - $ref: '#/components/parameters/token'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TransferAsDelegateRequest'
            example:
              fromAddress: '0x54968898742c08da211a1cd355447cd1f37f0649'
              toAddress: '0xdFd8302f44727A6348F702fF7B594f127dE3A902'
              amount: '50'
      responses:
        '200':
          description: >
            Delegated transfer transaction built successfully. Response format
            depends on

            the chain type.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/DelegationTransactionEvmResponse'
                  - $ref: '#/components/schemas/DelegationTransactionSolanaResponse'
              examples:
                evm:
                  summary: EVM delegated transfer
                  value:
                    transactions:
                      - from: '0x54968898742c08da211a1cd355447cd1f37f0649'
                        to: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
                        data: 0x23b872dd000000000000000000000000...
                    metadata:
                      amount: '50'
                      amountRaw: '50000000'
                      chainId: eip155:1
                      delegateAddress: '0x54968898742c08da211a1cd355447cd1f37f0649'
                      ownerAddress: '0x54968898742c08da211a1cd355447cd1f37f0649'
                      recipientAddress: '0xdFd8302f44727A6348F702fF7B594f127dE3A902'
                      tokenAddress: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
                      tokenSymbol: USDC
                      tokenDecimals: 6
                solana:
                  summary: Solana delegated transfer
                  value:
                    encodedTransactions:
                      - 4c5ErVEQWyXMS...
                    metadata:
                      amount: '50'
                      amountRaw: '50000000'
                      chainId: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
                      delegateAddress: 7EC5TEEAcDseLH6PyqKkPiBasVnsdmrRbRHjN3zkkHFW
                      ownerAddress: 7EC5TEEAcDseLH6PyqKkPiBasVnsdmrRbRHjN3zkkHFW
                      recipientAddress: 8APEEA4SHrfGteABQcUmH2yEHy7nEe8DqgvmKGAStHR
                      tokenSymbol: USDC
                      tokenDecimals: 6
                      lastValidBlockHeight: '260129177'
                      needsRecipientTokenAccount: false
                      serializedTransactionBase58Encoded: 4c5ErVEQWyXMS...
                      serializedTransactionBase64Encoded: AQAAAAAAAAAA...
        '400':
          description: >-
            Bad request - invalid addresses, amount, or insufficient delegation
            allowance
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - invalid or missing authentication token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    chain:
      name: chain
      in: path
      required: true
      description: >
        The blockchain chain identifier. Use either a friendly name or CAIP-2
        format.

        When using CAIP-2 format in URLs, ensure the colon (`:`) is URI-encoded
        as `%3A`.


        **Supported chains:**

        - `ethereum` (`eip155:1`)

        - `sepolia` (`eip155:11155111`)

        - `base` (`eip155:8453`)

        - `base-sepolia` (`eip155:84532`)

        - `polygon` (`eip155:137`)

        - `polygon-mumbai` (`eip155:80001`)

        - `celo` (`eip155:42220`)

        - `celo-alfajores` (`eip155:44787`)

        - `monad` (`eip155:143`)

        - `monad-testnet` (`eip155:10143`)

        - `solana` (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`)

        - `solana-devnet` (`solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1`)

        - `tron` (`tron:mainnet`)

        - `tron-nile` (`tron:nile`)

        - `tron-shasta` (`tron:shasta`)

        - `stellar` (`stellar:pubnet`)

        - `stellar-testnet` (`stellar:testnet`)

        - `bitcoin-segwit` (`bip122:000000000019d6689c085ae165831e93-p2wpkh`)

        - `bitcoin-segwit-testnet`
        (`bip122:000000000933ea01ad0ee984209779ba-p2wpkh`)

        - `bitcoin-p2wpkh` (`bip122:000000000019d6689c085ae165831e93-p2wpkh`)

        - `bitcoin-p2wpkh-testnet`
        (`bip122:000000000933ea01ad0ee984209779ba-p2wpkh`)
      schema:
        type: string
      examples:
        ethereum:
          value: ethereum
          summary: Ethereum mainnet (friendly name)
        eip155:
          value: eip155:1
          summary: Ethereum mainnet (CAIP-2)
        solana:
          value: solana
          summary: Solana mainnet (friendly name)
        bitcoin:
          value: bitcoin-segwit
          summary: Bitcoin segwit (friendly name)
    token:
      name: token
      in: path
      required: true
      description: >
        The token symbol (e.g. `USDC`, `ETH`) or contract/mint address on the
        specified chain.
      schema:
        type: string
      examples:
        symbol:
          value: USDC
          summary: Token symbol
        contractAddress:
          value: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
          summary: ERC-20 contract address
  schemas:
    TransferAsDelegateRequest:
      type: object
      required:
        - fromAddress
        - toAddress
        - amount
      properties:
        fromAddress:
          type: string
          description: The address to transfer tokens from (the token owner).
        toAddress:
          type: string
          description: The address to transfer tokens to.
        amount:
          type: string
          description: The amount to transfer. Must be greater than zero.
    DelegationTransactionEvmResponse:
      type: object
      description: Delegation transaction response for EVM chains.
      properties:
        transactions:
          type: array
          items:
            type: object
            properties:
              from:
                type: string
                description: Sender's address.
              to:
                type: string
                description: Contract address.
              data:
                type: string
                description: Encoded function call data.
              value:
                type: string
                description: Hex-encoded value in wei.
          description: Array of unsigned transactions to sign and submit.
        metadata:
          type: object
          description: >
            Transaction metadata. Fields vary depending on the operation
            (approval,

            revocation, or transfer).
          additionalProperties: true
    DelegationTransactionSolanaResponse:
      type: object
      description: Delegation transaction response for Solana chains.
      properties:
        encodedTransactions:
          type: array
          items:
            type: string
          description: Array of encoded Solana transactions.
        metadata:
          type: object
          description: >
            Transaction metadata. Fields vary depending on the operation. May
            include

            `lastValidBlockHeight`, `serializedTransactionBase58Encoded`, and
            other

            Solana-specific fields.
          additionalProperties: true
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message describing what went wrong
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        Client API Key or Client Session Token (CST). Pass as a Bearer token in
        the

        Authorization header.

````