wallet_sign_transaction
Sign Ethereum and EVM-compatible blockchain transactions securely without broadcasting. Provide wallet details and transaction data to generate a signed transaction for offline use or later submission.
Instructions
Sign a transaction without sending it
Input Schema
Name | Required | Description | Default |
---|---|---|---|
transaction | Yes | The transaction to sign | |
wallet | No | The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set. |
Input Schema (JSON Schema)
{
"properties": {
"transaction": {
"description": "The transaction to sign",
"properties": {
"data": {
"type": "string"
},
"from": {
"type": "string"
},
"gasLimit": {
"type": "string"
},
"gasPrice": {
"type": "string"
},
"maxFeePerGas": {
"type": "string"
},
"maxPriorityFeePerGas": {
"type": "string"
},
"nonce": {
"type": "number"
},
"to": {
"type": "string"
},
"type": {
"type": "number"
},
"value": {
"type": "string"
}
},
"required": [
"to"
],
"type": "object"
},
"wallet": {
"description": "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set.",
"type": "string"
}
},
"required": [
"transaction"
],
"type": "object"
}