RPC Method eth_sendTransaction implementation

  • Parameters

    • thorClient: ThorClient

      The thor client instance to use.

    • params: unknown[]

      The standard array of rpc call parameters. * params[0]: transaction - object - This describes the transaction info with following properties: * to: 20 bytes - Address the transaction is directed to. * from: 20 bytes [Required] - Address the transaction is sent from. * gas: Hexadecimal value of the gas provided for the transaction execution as hex string. * gasPrice: Hexadecimal value of the gasPrice used for each paid gas. * value: Hexadecimal of the value sent with this transaction. * data: Hash of the method signature and encoded parameters. * maxPriorityFeePerGas: Maximum fee per gas the sender is willing to pay to miners in wei. Used in 1559 transactions. * maxFeePerGas: The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei. Used in 1559 transactions.

    • Optionalprovider: VeChainProvider

      The provider instance to use.

    Returns Promise<string>