create_otc_offer
Create a peer-to-peer OTC trading offer on Cardexscan and receive an unsigned transaction CBOR plus offer ID for signing and submission.
Instructions
Create a new peer-to-peer OTC trading offer on the Cardexscan marketplace. Returns an unsigned transaction CBOR and offer ID.
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": {
"walletAddress": "<walletAddress>",
"offerAsset": "<offerAsset>",
"offerAmount": "<offerAmount>",
"requestAsset": "<requestAsset>",
"requestAmount": "<requestAmount>"
},
"name": "create_otc_offer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offerAsset | Yes | Details of the token being offered for sale | |
| offerAmount | Yes | Amount of the offered token (in smallest unit) | |
| allowPartial | No | Whether partial fills are allowed (default: false) | |
| requestAsset | Yes | Token requested in exchange. Use 'lovelace' for ADA or a token object | |
| minTakeAmount | No | Minimum amount for partial fills (required if allowPartial is true) | |
| requestAmount | Yes | Amount of the requested token (in smallest unit) | |
| walletAddress | Yes | Cardano wallet address (bech32 format, starts with 'addr1') | |
| expirationHours | No | Number of hours until the offer expires (optional) |