Add option for lightweight tx details (txslight) to address API #381
This commit is contained in:
parent
53cc6237a7
commit
e47fd242cf
@ -302,6 +302,7 @@ The optional query parameters:
|
|||||||
- *tokens*: *basic* + tokens belonging to the address (applicable only to some coins)
|
- *tokens*: *basic* + tokens belonging to the address (applicable only to some coins)
|
||||||
- *tokenBalances*: *basic* + tokens with balances + belonging to the address (applicable only to some coins)
|
- *tokenBalances*: *basic* + tokens with balances + belonging to the address (applicable only to some coins)
|
||||||
- *txids*: *tokenBalances* + list of txids, subject to *from*, *to* filter and paging
|
- *txids*: *tokenBalances* + list of txids, subject to *from*, *to* filter and paging
|
||||||
|
- *txslight*: *tokenBalances* + list of transaction with limited details (only data from index), subject to *from*, *to* filter and paging
|
||||||
- *txs*: *tokenBalances* + list of transaction with details, subject to *from*, *to* filter and paging
|
- *txs*: *tokenBalances* + list of transaction with details, subject to *from*, *to* filter and paging
|
||||||
- *contract*: return only transactions which affect specified contract (applicable only to coins which support contracts)
|
- *contract*: return only transactions which affect specified contract (applicable only to coins which support contracts)
|
||||||
|
|
||||||
|
|||||||
@ -625,6 +625,8 @@ func (s *PublicServer) getAddressQueryParams(r *http.Request, accountDetails api
|
|||||||
accountDetails = api.AccountDetailsTokenBalances
|
accountDetails = api.AccountDetailsTokenBalances
|
||||||
case "txids":
|
case "txids":
|
||||||
accountDetails = api.AccountDetailsTxidHistory
|
accountDetails = api.AccountDetailsTxidHistory
|
||||||
|
case "txslight":
|
||||||
|
accountDetails = api.AccountDetailsTxHistoryLight
|
||||||
case "txs":
|
case "txs":
|
||||||
accountDetails = api.AccountDetailsTxHistory
|
accountDetails = api.AccountDetailsTxHistory
|
||||||
}
|
}
|
||||||
|
|||||||
@ -461,6 +461,8 @@ func (s *WebsocketServer) getAccountInfo(req *accountInfoReq) (res *api.Address,
|
|||||||
opt = api.AccountDetailsTokenBalances
|
opt = api.AccountDetailsTokenBalances
|
||||||
case "txids":
|
case "txids":
|
||||||
opt = api.AccountDetailsTxidHistory
|
opt = api.AccountDetailsTxidHistory
|
||||||
|
case "txslight":
|
||||||
|
opt = api.AccountDetailsTxHistoryLight
|
||||||
case "txs":
|
case "txs":
|
||||||
opt = api.AccountDetailsTxHistory
|
opt = api.AccountDetailsTxHistory
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user