Create P2P Offer
create_p2p_offerCreate a P2P swap intent: offer loyalty tokens in exchange for another B20/ERC-20 token amount.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"offer_token_address": "<offer_token_address>",
"offer_amount": "<offer_amount>",
"request_token_address": "<request_token_address>",
"request_amount": "<request_amount>"
},
"name": "create_p2p_offer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer_amount | Yes | Amount of offer token (whole units). | |
| request_amount | Yes | Amount of request token (whole units). | |
| offer_token_address | Yes | Token you are offering. | |
| request_token_address | Yes | Token you want in return. |