Contract.chain_id()
Returns the ChainID of the blockchain where the Contract was deployed.
chain_id() → int
Example query
from glider import *
def query():
contracts = Contracts().exec(5)
for contract in contracts:
print(contract.chain_id())
return contracts
Example output

Last updated