Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

query_status

Chain ID and latest block info.

Signature

def query_status(self) -> dict[str, Any]

Example

from dango.info import Info
from dango.utils.constants import MAINNET_API_URL
 
info = Info(MAINNET_API_URL, skip_ws=True)
status = info.query_status()
print(status["chainId"], status["block"]["blockHeight"])

Returns

dict[str, Any]{chainId, block: {blockHeight, hash, ...}, ...} from the indexer's queryStatus field. Shape follows the GraphQL schema.

See also

  • simulate — uses the chain ID resolved here
  • Exchange — auto-fetches chain ID via query_status at construction