simulate_transaction
Prevent signing errors by simulating a transaction first, using the user's wallet and encoded transaction details.
Instructions
[REQUIRES BAOZI_LIVE=1] Simulate a transaction before signing to check for errors.
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": {
"transaction": "<transaction>",
"user_wallet": "<user_wallet>"
},
"name": "simulate_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transaction | Yes | Base64-encoded transaction | |
| user_wallet | Yes | User wallet public key |