Skip to content

Utility

// TODO: Add description

Method Declaration

Get Time

Get current server time of the Indexer.

Method Declaration

Python
async def get_time(self) -> Dict[str, str]

Parameters

ParameterLocationTypeRequiredDescription

Response

StatusMeaningSchema
200OKTimeResponse
API Example

Get Height

Current block height and block time (UTC) parsed by the Indexer.

Method Declaration

Python
async def get_height(self) -> Dict[str, str]

Parameters

ParameterLocationTypeRequiredDescription

Response

StatusMeaningSchemaDescription
200OKHeightResponse ⛁Dictionary containing the block height and time.
API Example

Get Screen

Query for screening results (compliance) of the address.

Method Declaration

Python
async def screen(self, address: str) -> Dict[str, bool]:

Parameters

ParameterLocationTypeRequiredDescription
addressqueryAddresstrueThe wallet address that owns the account.

Response

StatusMeaningSchemaDescription
200OKComplianceResponse ⛁The compliance data.
400Bad RequestThe request was malformed or invalid.

API Example

Get Compliance Screen

Screen an address to see if it is restricted.

Method Declaration

Python
async def compliance_screen(self, address: str) -> Any

Parameters

ParameterLocationTypeRequiredDescription
addressPathstringtrueevm or ritbit address

Response

StatusMeaningSchemaDescription
200OKComplianceV2Responsewhether the specified address is restricted
400Bad RequestThe request was malformed or invalid.

API Example