logo
🥜
Peanut Documentation
🏦
How to Withdraw?
📥
How to Deposit?
🔗
How to receive money via Peanut?
💵
How to pay someone with Peanut?
💰
Fees
🆘
Support
🔑
Passkeys
🔓
Security Audit
👾
Bug bounties
🧑‍💻
SDK & API
🧑‍💻
Dev Quickstart
➡️
API keys
⛓️
Supported Chains and Tokens
🗂️
Embedding an IFrame
💻
Using the SDK
➡️
Create Claim Links
➡️
Create Request Links
➡️
Claim
➡️
Utils
🔗
Get Link Details
🔗
Cross-chain
🔗
Raffle (Legacy)
🔗
Get Default Provider
🔗
Get Supported Peanut Chains
🔗
Toggle Verbosity
🔗
EthersV5 <> Peanut Transaction Types
🔗
Estimate Fee Options
🔗
Get Random String
🔗
Get all deposits for an Address
🔗
Get Token Balance
➡️
White-Labelling
➡️
Troubleshooting
➡️
SDK FAQ
🏪
Request API
Press Kit
👨‍⚖️
T&Cs and Contact
🎲
Other
Peanut Documentation
/
SDK & API
/
Using the SDK
/
Utils

Get Default Provider

The getDefaultProvider function will return a valid, live ethers.providers.JsonRpcProvider.
plain text
const provider = await peanut.getDefaultProvider('137')
The getDefaultProviderURL function will return a valid, live RPC url:
plain text
const providerUrl = await peanut.getDefaultProviderUrl('137')
Note: The above functions work on all Peanut supported chains.
Raffle (Legacy)
Get Supported Peanut Chains

Powered by Notaku
Helpful?
Share