gRPC Queries
Query/IsQuarantined
To find out if an account is quarantined, use QueryIsQuarantinedRequest
.
The query takes in a to_address
and outputs true
if the address is quarantined, or false
otherwise.
Request:
Response:
It is expected to fail if the to_address
is invalid.
Query/QuarantinedFunds
To get information on quarantined funds, use QueryQuarantinedFundsRequest
.
This query takes in an optional to_address
and optional from_address
and outputs information on quarantined funds.
Request:
Response:
QuarantinedFunds:
- If neither a
to_address
norfrom_address
are provided, all non-declined quarantined funds for any addresses will be returned. - If the request contains a
to_address
but nofrom_address
, all non-declined quarantined funds for theto_address
are returned. - If both a
to_address
andfrom_address
are provided, all quarantined funds to theto_address
involving thefrom_address
a returned regardless of whether they've been declined.
This query is paginated.
It is expected to fail if:
- A
from_address
is provided without ato_address
. - Either the
to_address
orfrom_address
is provided but invalid. - Invalid pagination parameters are provided.
Query/AutoResponses
To see the auto-response settings, use QueryAutoResponsesRequest
.
This query takes in a to_address
and optional from_address
and outputs information about auto-responses.
Request:
Response:
AutoResponseEntry:
- If no
from_address
is provided, all auto-response entries for the providedto_address
are returned. The results will not contain any entries forAUTO_RESPONSE_UNSPECIFIED
. - If a
from_address
is provided, the auto-response setting thatto_address
has fromfrom_address
is returned. This result might beAUTO_RESPONSE_UNSPECIFIED
.
This query is paginated.
It is expected to fail if:
- The
to_address
is empty or invalid. - A
from_address
is provided and invalid. - Invalid pagination parameters are provided.