Queries
The x/hold module provides some queries for looking up hold-related data.
GetHolds
To look up the funds on hold for an account, use the GetHolds query.
The query takes in an address and returns a coins amount.
Request:
Response:
It is expected to fail if the address is invalid or missing.
If the account doesn't exist, or no coins are on hold for the account, the amount will be empty.
GetAllHolds
To get all funds on hold for all accounts, use the GetAllHolds query.
The query takes in pagination parameters and returns a list of address/amount pairs.
Request:
Response:
It is expected to fail if the pagination parameters are invalid.