Returns the ChainID of the blockchain where the Contract was deployed.
chain_id() β int
from glider import * def query(): contracts = Contracts().with_name("ERC721").exec(5) chain_ids = [] for contract in contracts: chain_ids.append(contract.chain_id()) return [{"chain_ids": chain_ids}]
{ "chain_ids": [ 69, 69, 69, 69, 69 ] }
Last updated 7 months ago