Skip to main content
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
}