wallet_executePrepared
Execute a previously simulated transaction by its preparedTxId to submit the exact calldata reviewed, ensuring safe on-chain execution.
Instructions
Execute a prepared transaction from wallet_call.
Flow:
Use
wallet_callto prepare and simulate a transactionReview the simulation results and preparedTxId
Use this tool to execute the exact same transaction
Example:
{"preparedTxId": "ptx_abc123_xyz"}Safety:
Executes the EXACT same calldata that was simulated
Prepared transactions expire after 5 minutes
Only simulated-successful transactions can be executed (use
force: trueto override)
Note: If the prepared transaction has expired, run wallet_call again to get a fresh one.
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": {
"preparedTxId": "<preparedTxId>"
},
"name": "wallet_executePrepared"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force execution even if simulation failed (dangerous!) | |
| preparedTxId | Yes | The prepared transaction ID from wallet_call |