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."
}Convert wrapped USDT collateral into YES and NO outcome tokens. The operator pays all gas fees.
Some Smart Wallets don’t properly implement onERC1155Received. If you encounter issues, provide an eoaFallback address to receive the tokens instead.
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."
}Smart wallet address (wUSDT source)
Amount to split (in token units, e.g., '100' for 100 wUSDT)
Market condition ID (bytes32)
YES token ID
NO token ID
EOA address to receive tokens (if Smart Wallet has issues)