Skip to main content
POST
/
api
/
gasless
/
merge
Merge YES + NO tokens back to wUSDT
curl --request POST \
  --url https://api-testnet.mayybee.com/api/gasless/merge \
  --header 'Content-Type: application/json' \
  --data '
{
  "user": "0xYourWallet",
  "amount": "100",
  "conditionId": "0x7d8a...",
  "yesTokenId": "25930605474857043641926317989588861972412542680030529942514995269236952683597",
  "noTokenId": "98765432109876543210987654321098765432109876543210987654321098765432"
}
'
{
  "success": true,
  "yesTransferTx": "0x...",
  "noTransferTx": "0x...",
  "mergeTx": "0x...",
  "returnTx": "0x...",
  "amount": "100",
  "message": "Merged 100 YES+NO tokens into wUSDT. Gas paid by operator."
}

Body

application/json
user
string
required

Wallet address holding the tokens

amount
string
required

Amount to merge (must have equal YES and NO)

conditionId
string
required

Market condition ID

yesTokenId
string
required

YES token ID

noTokenId
string
required

NO token ID

Response

Merge successful

success
boolean
yesTransferTx
string
noTransferTx
string
mergeTx
string
returnTx
string
amount
string
message
string