Index

Interfaces

Functions


Functions

getTransactionByHash

getTransactionByHash(transactionHash: string, api: any): Promise<any>

Defined in rpc/other/post.ts:18

Parameters:

Name Type
transactionHash string
api any

Returns: Promise<any>


post$

post$(tx: Tx, options: PostOptions): any

Defined in rpc/other/post.ts:50

Post a transaction to the network.

Calls, in this order, eth_estimateGas, personal_signTransaction, eth_sendRawTransaction and eth_getTransactionByHash to get the status of the transaction.

Parameters:

Name Type Description
tx Tx Transaction object
options PostOptions Options to pass to the RpcObservable.

Returns: any

  • The status of the transaction: (estimated), signed, sent, confirmed

postRaw$

postRaw$(rawTx: string, options?: RpcObservableOptions): any

Defined in rpc/other/post.ts:96

Post a raw (signed) transaction to the network.

Calls, in this order, eth_sendRawTransaction and eth_getTransactionByHash to get the status of the transaction.

Note: if using parity-ethereum light client, this method only works with

\=v2.5.0. See https://github.com/paritytech/parity-ethereum/pull/10559 for more info.

Parameters:

Name Type Default value Description
rawTx string - Raw transaction
Default value options RpcObservableOptions {}

Returns: any

  • The status of the transaction: sent, confirmed

results matching ""

    No results matching ""