AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.

Start building today!     

Contents

eth_signTransaction RPC Method

The eth_signTransaction EVM method is only supported on the Avalanche C-Chain.

Parameters:

  1. Object - The transaction object.

    from - The address the transaction is sent from.

    to - (optional for contract creation) The address the transaction is directed to.

    gas - (default: 90000) Integer of the gas provided for the transaction execution.

    gasPrice - Integer of the gasPrice used for each paid gas, in Wei.

    value - Integer of the value sent with this transaction, in Wei.

    data - The compiled code of a contract OR the hash of the invoked method signature and encoded parameters.

    nonce - Integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce.

Returns:

  1. Result - The signed transaction object.

Code Examples:

To use the eth_signTransaction EVM method on the Avalanche C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

# Not supported by QuickNode!
Ready to get started? Create a free account