Skip to main content
POST
/
api
/
gasless
/
split
Split wUSDT into YES + NO tokens
curl --request POST \
  --url https://api-testnet.mayybee.com/api/gasless/split \
  --header 'Content-Type: application/json' \
  --data '
{
  "user": "0xYourSmartWallet",
  "amount": "100",
  "conditionId": "0x7d8a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a",
  "yesTokenId": "25930605474857043641926317989588861972412542680030529942514995269236952683597",
  "noTokenId": "98765432109876543210987654321098765432109876543210987654321098765432"
}
'
{
"success": true,
"transferTx": "0xabc...",
"splitTx": "0xdef...",
"yesTransferTx": "0x123...",
"noTransferTx": "0x456...",
"amount": "100",
"message": "Split 100 wUSDT into YES+NO tokens and transferred to user. Gas paid by operator."
}

Body

application/json
user
string
required

Smart wallet address (wUSDT source)

amount
string
required

Amount to split (in token units, e.g., '100' for 100 wUSDT)

conditionId
string
required

Market condition ID (bytes32)

yesTokenId
string
required

YES token ID

noTokenId
string
required

NO token ID

eoaFallback
string

EOA address to receive tokens (if Smart Wallet has issues)

Response

Split successful

success
boolean
transferTx
string

wUSDT transfer tx hash

splitTx
string

splitPosition tx hash

yesTransferTx
string

YES token transfer tx hash

noTransferTx
string

NO token transfer tx hash

amount
string
message
string