Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | /** * About Cloudflare * * @_subsection: api/providers/thirdparty:Cloudflare [providers-cloudflare] */ import { assertArgument } from "../utils/index.js"; import { Network } from "./network.js"; import { JsonRpcProvider } from "./provider-jsonrpc.js"; import type { Networkish } from "./network.js"; /** * About Cloudflare... */ export class CloudflareProvider extends JsonRpcProvider { constructor(_network?: Networkish) { if (_network == null) { _network = "mainnet"; } const network = Network.from(_network); assertArgument(network.name === "mainnet", "unsupported network", "network", _network); super("https:/\/cloudflare-eth.com/", network, { staticNetwork: network }); } } |