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

Method getChainId

src/quip_wallet.cpp:691–696  ·  view source on GitHub ↗

Get chain ID from the RPC provider (cached)

Source from the content-addressed store, hash-verified

689
690 // Get chain ID from the RPC provider (cached)
691 uint64_t getChainId() const {
692 if (chain_id_ == 0) {
693 chain_id_ = quip::getChainId(rpc_url_);
694 }
695 return chain_id_;
696 }
697
698private:
699 static size_t WriteCallback(void *contents, size_t size, size_t nmemb,

Callers

nothing calls this directly

Calls 1

getChainIdFunction · 0.85

Tested by

no test coverage detected