Skip to content

Commit

Permalink
docs: add docs for NoRPC provider
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorovdg committed Jan 23, 2025
1 parent 3e7b3e0 commit f6720cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ import curve from "@curvefi/api";

// 3. Web3 provider
await curve.init('Web3', { externalProvider: <WEB3_PROVIDER> }, { chainId: 1 });

// 4. Without RPC
await curve.init('NoRPC', {chainId: 1, networkName: 'ETHEREUM'});

// Fetch factory pools
await curve.factory.fetchPools();
Expand Down

0 comments on commit f6720cc

Please sign in to comment.