Prepare a transaction for signing
prepare-transactionCreate an unsigned blockchain transaction and get a URL for the user to review and sign in their wallet, keeping private keys secure.
Instructions
Create an unsigned transaction and return a URL the user opens to review and sign it in their own wallet. Private keys never reach this server. Share the returned URL with the user.
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": {
"chainId": "<chainId>",
"to": "<to>"
},
"name": "prepare-transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient address. | |
| data | No | Calldata hex for contract interactions. Defaults to "0x". | |
| value | No | Amount of native token to send, e.g. "0.01". Defaults to "0". | |
| chainId | Yes | Chain id, e.g. "1". | |
| gasLimit | No | Optional gas limit (integer). The wallet estimates if omitted. |