agirails_accept_quote
Accepts a provider quote by locking USDC in escrow, transitioning a transaction from QUOTED to COMMITTED. Generates a TypeScript snippet using the transaction ID and agreed price.
Instructions
Returns a TypeScript snippet for a requester to accept a provider quote and lock USDC in escrow (QUOTED → COMMITTED). Requires txId and quotedPrice (agreed USDC amount to lock). Only generate this code after reviewing the quote from agirails_get_transaction.
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": {
"txId": "<txId>",
"quotedPrice": "<quotedPrice>"
},
"name": "agirails_accept_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txId | Yes | Transaction ID returned by agirails_request_service or agirails_list_transactions | |
| quotedPrice | Yes | The quoted price in USDC to accept (e.g. "3.00") | |
| network | No | testnet |