Helper function for curl write callback
| 61 | |
| 62 | // Helper function for curl write callback |
| 63 | static size_t WriteCallback(void *contents, size_t size, size_t nmemb, |
| 64 | std::string *userp) { |
| 65 | userp->append((char *)contents, size * nmemb); |
| 66 | return size * nmemb; |
| 67 | } |
| 68 | |
| 69 | // Get chain ID from RPC endpoint |
| 70 | uint64_t getChainId(const std::string &rpc_url) { |
nothing calls this directly
no outgoing calls
no test coverage detected