TransactionUtils
@human-protocol/sdk • Docs
@human-protocol/sdk / transaction / TransactionUtils
Class: TransactionUtils
Constructors
new TransactionUtils()
new TransactionUtils():
TransactionUtils
Returns
Methods
getTransaction()
static
getTransaction(chainId
,hash
):Promise
<ITransaction
>
This function returns the transaction data for the given hash.
Parameters
• chainId: ChainId
The chain ID.
• hash: string
The transaction hash.
Returns
Promise
<ITransaction
>
Returns the transaction details.
Code example
Defined in
getTransactions()
static
getTransactions(filter
):Promise
<ITransaction
[]>
This function returns all transaction details based on the provided filter.
This uses Subgraph
Input parameters
Parameters
• filter: ITransactionsFilter
Filter for the transactions.
Returns
Promise
<ITransaction
[]>
Returns an array with all the transaction details.
Code example
Defined in
Last updated