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.
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. |