Getting Transactions
getting transactions for a user
You generated an address for a user, Then that user received transactions and you want to show all of their transactions.
The getTransactions
method returns the transactions for the organization, profile, or even an address.
The getTransactions
function has the following properties.
property | description | required | type |
---|---|---|---|
network | specify which blockchin | optional | networkType |
reference | specify which user | optional | string |
address | specify which address | optional | string |
the default behavior of getTransactions
is to return the transactions for the whole organization unless you specify a reference or an address.
The following example is for getting the transactions for a user by providing the reference.
You only need to initialize the client once at the start of the application
Another example is if you want to get all of the transactions for the organization
Another example is if you want to get all of the transactions for an address
Last updated