add HTTP endpoint for Query.GetRecentBlocks

This commit is contained in:
Nex 2020-09-04 12:29:38 +08:00
parent d775b43e96
commit affc42e963

View File

@ -21,6 +21,8 @@ http:
- selector: bdware.bdledger.api.Query.CountBlocks
post: /v0/ledgers/{ledger}/blocks/count
body: "*"
- selector: bdware.bdledger.api.Query.GetRecentBlocks
get: /v0/ledgers/{ledger}/blocks/recent
- selector: bdware.bdledger.api.Query.GetTransactionByHash
get: /v0/ledgers/{ledger}/transaction
- selector: bdware.bdledger.api.Query.GetTransactionByBlockHashAndIndex