RPC Method eth_signTransaction 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. * nonce: The nonce of the transaction.

    • Optionalprovider: VeChainProvider

      The provider instance to use.

    Returns Promise<string>