Skip to content

Commit

Permalink
Add getWithdrawalsByIdentity method to api
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyTripleA committed Oct 21, 2024
1 parent 4029873 commit 8681cbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/frontend/src/util/Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ const getDocumentsByIdentity = (identifier) => {
return call(`identity/${identifier}/documents`, 'GET')
}

const getWithdrawalsByIdentity = (identifier, page = 1, limit = 10, order = 'asc') => {
return call(`identity/${identifier}/withdrawals?page=${page}&limit=${limit}&order=${order}`, 'GET')
}

const getTransfersByIdentity = (identifier, page = 1, limit = 10, order = 'asc') => {
return call(`identity/${identifier}/transfers?page=${page}&limit=${limit}&order=${order}`, 'GET')
}
Expand Down Expand Up @@ -150,6 +154,7 @@ export {
getDataContractsByIdentity,
getDocumentsByIdentity,
getTransfersByIdentity,
getWithdrawalsByIdentity,
getValidators,
getValidatorByProTxHash,
getBlocksByValidator,
Expand Down

0 comments on commit 8681cbd

Please sign in to comment.