Skip to main content
POST
/
2
/
pm
/
withdraw
/
build
Build USDC withdrawal transaction
curl --request POST \
  --url https://demo-api.mobula.io/api/2/pm/withdraw/build \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "<string>",
  "amount": 123
}
'
{
  "data": {
    "to": "<string>",
    "calldata": "<string>",
    "chainId": 123,
    "safeAddress": "<string>"
  },
  "hostname": "<string>",
  "took": 123
}

Request Body

address
string
required
Your EOA wallet address.
amount
number
required
Amount of USDC to withdraw. Must be positive.

Response

data
object
Transaction calldata to sign and submit on-chain.
hostname
string
Server node identifier.
took
number
Request processing time in milliseconds.

Usage Example

curl -X POST "https://api.mobula.io/api/2/pm/withdraw/build" \
  -H "Content-Type: application/json" \
  -d '{"address": "0xYourWalletAddress", "amount": 100}'

Example Response

{
  "data": {
    "to": "0x...",
    "calldata": "0x...",
    "chainId": 137,
    "safeAddress": "0x..."
  },
  "hostname": "node-xyz",
  "took": 12
}

Body

application/json
address
string
required
amount
number
required

USDC amount to withdraw

Response

200 - application/json

Withdrawal transaction

data
object
hostname
string
took
number