Module Evm_node_lib_dev.Injector

val call_singleton_request : keep_alive:bool -> timeout:float -> base:Uri.t -> (module Rpc_encodings.METHOD with type input = 'input and type output = 'output) -> Rpc_encodings.JSONRPC.request -> ('output, string) Stdlib.result Tezos_base.TzPervasives.tzresult Lwt.t
val send_raw_transaction : keep_alive:bool -> timeout:float -> base:Uri.t -> raw_tx:string -> (Evm_node_lib_dev_encoding.Ethereum_types.hash, string) Stdlib.result Tezos_base.TzPervasives.tzresult Lwt.t

send_raw_transaction ~keep_alive ~base raw_txn uses the eth_sendRawTransaction RPC method to inject raw_txn to the endpoint base. It will retry as many time as necessary if keep_alive is set to true, or return an error otherwise.

val send_raw_transaction_sync : keep_alive:bool -> timeout:float -> base:Uri.t -> raw_tx:Evm_node_lib_dev_encoding.Ethereum_types.hex -> internal_timeout:int64 -> block_parameter:Evm_node_lib_dev_encoding.Ethereum_types.Block_parameter.t -> (Evm_node_lib_dev_encoding.Transaction_receipt.t, string) Stdlib.result Tezos_base.TzPervasives.tzresult Lwt.t

send_raw_transaction_sync ~keep_alive ~base raw_txn block_parameter uses the eth_sendRawTransaction RPC method to inject raw_txn to the endpoint base, and waits for its confirmation. It will retry as many time as necessary if keep_alive is set to true, or return an error otherwise.

val inject_wait_transaction_confirmation : keep_alive:bool -> timeout:float -> base:Uri.t -> hash:Evm_node_lib_dev_encoding.Ethereum_types.hash -> (unit, string) Stdlib.result Tezos_base.TzPervasives.tzresult Lwt.t
val inject_transaction : keep_alive:bool -> timeout:float -> base:Uri.t -> tx_object:Transaction_object.t -> raw_tx:string -> wait_confirmation:bool -> (Evm_node_lib_dev_encoding.Ethereum_types.hash, string) Stdlib.result Tezos_base.TzPervasives.tzresult Lwt.t
val get_transaction_by_hash : keep_alive:bool -> timeout:float -> base:Uri.t -> Evm_node_lib_dev_encoding.Ethereum_types.hash -> (Transaction_object.t option, string) Stdlib.result Tezos_base.TzPervasives.tzresult Lwt.t