Transaction precheck
get_tx_precheckUse when an agent needs to see what a Solana or Base transaction does before signing it. Returns simulated balance changes, programs or contracts, approvals, new accounts, token-risk reads and warnings. 503 if it cannot simulate: not charged. Costs 0.05 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).
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": {
"chain": "<chain>"
},
"name": "get_tx_precheck"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | chain=base: the 0x address the transaction calls | |
| tx | No | chain=solana: the transaction as base64, legacy or version 0, signed or unsigned, at most 1232 bytes | |
| data | No | chain=base: calldata as 0x hex, at most 20000 hex characters (default 0x) | |
| from | No | chain=base: the sender, a 0x address (default: a placeholder sender that holds nothing) | |
| chain | Yes | the chain of the transaction: solana or base | |
| value | No | chain=base: wei to send, decimal or 0x hex (default 0) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the get_tx_precheck payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_tx_precheck | |
| tool | Yes | the tool that produced this payload |