Post an RFQ
create_rfqPost a trade request (scope: taker). direction=sell_base → you GIVE base; buy_base → you RECEIVE it. visibility=private needs askAmount. Amounts are base-unit integer strings.
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": {
"direction": "<direction>",
"baseAssetId": "<baseAssetId>",
"baseAmount": "<baseAmount>",
"quoteAssetId": "<quoteAssetId>",
"ttlSeconds": "<ttlSeconds>"
},
"name": "create_rfq"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| askAmount | No | a private order's total price, base units — at most 8 decimals of its asset (fewer if the asset has fewer); the API refuses more | |
| direction | Yes | sell_base: you give the base asset; buy_base: you receive it | |
| baseAmount | Yes | Base amount in base units (integer string) | |
| ttlSeconds | Yes | How long the request stays open, in seconds | |
| visibility | No | public (default): on the board; private: link-only at your askAmount | |
| baseAssetId | Yes | Base asset id from list_assets | |
| quoteAssetId | Yes | Quote asset id from list_assets | |
| targetAddress | No | Private only: lock the order to this counterparty wallet (on the chain they give) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rfq | No |