Transactions
Last updated
Last updated
SwitchWallet Enable you to get a paginated data of all your transactions (Deposit and Withdrawals) with Endless Options(filters), Thereby allowing you to filter out a particular or list of transaction with our optional parameter below
Parameter | Status | Description | |
---|---|---|---|
Getting all transaction
GET
Baseurl/api/v2/analytics/transaction-record
Without the above parameters
In the above Api call response are
This simply means merchant only 40 transactions in our system, Since PageSize parameter wasn't added, it defaults to return just 30 data in a single page arrange by date(most recent to recent) which is good for merchant's client side to load faster.
This Also means that remaining 10 data await you in page 2, To get it, Add page parameter and set it to "2"
GET
Baseurl/api/v2/analytics/transaction-record
Increase PageSize to "50", This means the whole data(40) plus even 10 more(if there is) can fit into this one page
GET
Baseurl/api/v2/analytics/transaction-record
To get all transaction in a particular Network eg "BSC" network,
Solution: Call same Endpoint with NetworkChain parameter with value "1"
the above solution work for each Enum value in the Pararmeter Table
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Problem | Solution | parameter Value |
---|---|---|
Enum
Optional
Enum
Optional
Status
Enum
Optional
Enum {Successful=1, Failed=2}
TransactionHash
string
Optional
Hash of a transaction
WalletAddress
string
Optional
Address involved in the transaction
TransactionType
Enum
Optional
Enum {Deposit=1, Withdrawal=2}
Page
number
Optional
Page No, Defaults to 1
PageSize
number
Optional
PageSize, Defaults to 30 per page
StartTimeStamp
number
Optional
Starting date in timestamp format
EndTimeStamp
number
Optional
Ending date in timestamp format
page
number
2
pageSize
number
2
To get all failed transactions
Call same Endpoint with Status=2
2
Get the transaction a particular hash
Call same Endpoint with TransactionHash= your hash
your hash
To get all transactions tied to WalletAddress
Call same Endpoint with WalletAddress= yourWalletAddress
yourWalletAddress
To get only Deposit transactions
Call same Endpoint with TransactionType= 1
1
To get all transactions between date "A" to date "B"
Call same Endpoint with date "A" coverted to TimeStamp as StartTimeStamp and date "B" coverted to TimeStamp as EndTimeStamp
StartTimeStamp=45657379, EndTimeStamp= 88759578