MCPcopy Create free account
hub / github.com/QuipNetwork/cpp-sdk / getChainId

Method getChainId

src/quip_factory.cpp:278–283  ·  view source on GitHub ↗

Get chain ID from the RPC provider (cached)

Source from the content-addressed store, hash-verified

276
277 // Get chain ID from the RPC provider (cached)
278 uint64_t getChainId() const {
279 if (chain_id_ == 0) {
280 chain_id_ = quip::getChainId(rpc_url_);
281 }
282 return chain_id_;
283 }
284
285 std::vector<Vault> getVaults(const Address &owner) {
286 Address checksummed_owner = quip::toChecksumAddress(owner);

Callers

nothing calls this directly

Calls 1

getChainIdFunction · 0.85

Tested by

no test coverage detected