Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 637 Bytes

File metadata and controls

39 lines (24 loc) · 637 Bytes
title timestamp
description Current chain time (from the Timestamp pallet) and the block it was read at.

{/* GENERATED by scripts/generate.py from the SDK registries — do not edit. */}

Category: Chain

Parameters

This read takes no parameters.

CLI

btcli query timestamp --json

Python

Namespace method (autocomplete, signature help):

import bittensor as bt

sub = bt.Subtensor()
result = sub.chain.timestamp()

Or dispatch by name, as an agent would:

result = sub.read("timestamp")

Async is the same surface awaited: async with bt.Subtensor() as client:.