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

Documentation Index

Fetch the complete documentation index at: https://docs.mobula.io/llms.txt

Use this file to discover all available pages before exploring further.

Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.

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
Minimum string length: 1
amount
number
required
Required range: x > 0

Response

201 - application/json

Prediction Markets response

hostname
string
required
took
number
required
data
any | null

See the per-endpoint reference for the exact response shape.