Skip to main content
POST
/
utils
/
withdrawToken
{
    "collateralToken": {
        "chain": 42161,
        "address": "0xaf88d065e77c8cc2239327c5edb3a432268e5831"
    },
    "tokenAmount": "1",
    "receiverAddress": "0xFE1b64944787061e414497F86F9d84F6B9d6bDB7",
    "symphonyWallet": "0x2FBE9660bCD32A6C73545cAa4e9284BAd1027D29",
    "wallet": "0xFE1b64944787061e414497F86F9d84F6B9d6bDB7"
}
{
    "txHash": "0x187197a65867a3b7935255c24...",
    "chain": 42161,
    "explorerUrl": "https://arbiscan.io/tx/0x187197a658..."
}
This endpoint is called to withdraw an ERC20 token from a user’s smart account to an external address.
  • wallet is Privy EOA address - symphonyWallet is the user’s Symphony wallet address - Token decimal conversion will be performed on our backend
collateralToken
object
required
Token information object
tokenAmount
string
required
Amount of tokens to withdraw
receiverAddress
string
required
Address to receive the tokens
symphonyWallet
string
required
User’s Symphony wallet address
wallet
string
required
Privy EOA address
txHash
string
Transaction hash
chain
number
Chain ID
explorerUrl
string
Explorer URL for the transaction

Authentication

Privy authentication token passed in as bearer token

Request Example

{
    "collateralToken": {
        "chain": 42161,
        "address": "0xaf88d065e77c8cc2239327c5edb3a432268e5831"
    },
    "tokenAmount": "1",
    "receiverAddress": "0xFE1b64944787061e414497F86F9d84F6B9d6bDB7",
    "symphonyWallet": "0x2FBE9660bCD32A6C73545cAa4e9284BAd1027D29",
    "wallet": "0xFE1b64944787061e414497F86F9d84F6B9d6bDB7"
}

Response Example

{
    "txHash": "0x187197a65867a3b7935255c24...",
    "chain": 42161,
    "explorerUrl": "https://arbiscan.io/tx/0x187197a658..."
}