We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4086c6 commit 1b15e7bCopy full SHA for 1b15e7b
packages/thirdweb/src/chains/utils.ts
@@ -17,9 +17,15 @@ const CUSTOM_CHAIN_MAP = new Map<number, Chain>();
17
* @param options The options for the chain.
18
* @returns The defined chain.
19
* @example
20
+ * Just pass the chain ID to connect to:
21
+ * ```ts
22
+ * const chain = defineChain(1);
23
+ * ```
24
+ * Or pass your own RPC or custom values:
25
* ```ts
26
* const chain = defineChain({
27
* id: 1,
28
+ * rpc: "https://my-rpc.com",
29
* nativeCurrency: {
30
* name: "Ether",
31
* symbol: "ETH",
0 commit comments