Queries

timestamp

Current chain time (from the Timestamp pallet) and the block it was read at.

View as Markdown

Category: Chain

Parameters

This read takes no parameters.

CLI

btcli query timestamp --json

Python

Typed namespace method (autocomplete, signature help):

import bittensor as sub

async with sub.Client("finney") as client:
    result = await client.chain.timestamp()

Or dispatch by name, as an agent would:

result = await client.read("timestamp")