diff --git a/docs/2.build/4.web3-apps/integrate-contracts.md b/docs/2.build/4.web3-apps/integrate-contracts.md index 1465f1eaf7f..e5d07e37eb7 100644 --- a/docs/2.build/4.web3-apps/integrate-contracts.md +++ b/docs/2.build/4.web3-apps/integrate-contracts.md @@ -57,7 +57,7 @@ To create a wallet, simply import the `Wallet` object from the module and initia Under the hood (check the `near` tab) you can see that we are actually setting up the wallet selector, and asking it if the user logged-in already. During the setup, we pass a hook to the wallet selector, which will be called each time a user logs in or out. -
+
Setting customs RPC endpoints diff --git a/docs/5.api/rpc/providers.md b/docs/5.api/rpc/providers.md index 21927ea509e..da371d7af3e 100644 --- a/docs/5.api/rpc/providers.md +++ b/docs/5.api/rpc/providers.md @@ -43,3 +43,9 @@ If you want to use a custom RPC provider with NEAR Wallet Selector, [check this | -------------------------------------------------------------------------- | ------------------------------------------------------------ | | [NEAR](setup.md) | `https://rpc.testnet.near.org` | | [Pagoda](https://www.pagoda.co/console) | `https://rpc.testnet.pagoda.co` | + +## RPC Failover + +In `near-api-js` you can use [`FailoverRpcProvider`](../../4.tools/near-api-js/quick-reference.md#rpc-failover) to automatically switch RPC providers when one provider is experiencing downtime, or implement an RPC selection widget that allows users to add their own RPC provider. + +As a user, if a dApp or wallet doesn't support RPC failover and the primary provider is down, you can use an RPC Selector browser extension to redirect all requests to an RPC provider of your choice.