sendTransactionWithOptions
Execute Ethereum transactions with customizable options, including gas limits, fees, and nonce. Supports simulation mode and multiple networks via MCP Ethers Wallet.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chainId | No | Optional. The chain ID to use. If provided with a named network and they don't match, the RPC's chain ID will be used. | |
data | No | Optional. The hex data to include in the transaction | |
gasLimit | No | Optional. The gas limit for the transaction | |
maxFeePerGas | No | Optional. The maximum fee per gas (in gwei) | |
maxPriorityFeePerGas | No | Optional. The maximum priority fee per gas (in gwei) | |
mockMode | No | Optional. If true, just simulates the transaction without sending it. Default is false. | |
nonce | No | Optional. The nonce to use for the transaction | |
provider | No | Optional. Either a network name or custom RPC URL. Use getAllNetworks to see available networks and their details, or getNetwork to get info about a specific network. You can use any network name returned by these tools as a provider value. | |
to | Yes | The Ethereum address to send to | |
value | Yes | The amount to send in ether |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"chainId": {
"description": "Optional. The chain ID to use. If provided with a named network and they don't match, the RPC's chain ID will be used.",
"type": "number"
},
"data": {
"description": "Optional. The hex data to include in the transaction",
"type": "string"
},
"gasLimit": {
"description": "Optional. The gas limit for the transaction",
"type": "string"
},
"maxFeePerGas": {
"description": "Optional. The maximum fee per gas (in gwei)",
"type": "string"
},
"maxPriorityFeePerGas": {
"description": "Optional. The maximum priority fee per gas (in gwei)",
"type": "string"
},
"mockMode": {
"default": false,
"description": "Optional. If true, just simulates the transaction without sending it. Default is false.",
"type": "boolean"
},
"nonce": {
"description": "Optional. The nonce to use for the transaction",
"type": "number"
},
"provider": {
"description": "Optional. Either a network name or custom RPC URL. Use getAllNetworks to see available networks and their details, or getNetwork to get info about a specific network. You can use any network name returned by these tools as a provider value.",
"type": "string"
},
"to": {
"description": "The Ethereum address to send to",
"type": "string"
},
"value": {
"description": "The amount to send in ether",
"type": "string"
}
},
"required": [
"to",
"value"
],
"type": "object"
}