logo
πŸ₯œ
Peanut App & Protocol Documentation
❓
What is Peanut?
🏦
Cashout
πŸ“©
How to use Peanut Links?
πŸ“š
Use cases
⛓️
Supported Chains and Tokens
πŸ’°
Fees
πŸ†˜
Support
πŸͺ
Request API
πŸ’»
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
➑️
API keys
πŸ—‚οΈ
Embedding an IFrame
πŸ“œ
Direct Smart Contract integration
πŸ‘Ύ
Bug bounties
πŸ”“
Security Audit
Press Kit
πŸ‘¨β€βš–οΈ
Β Contact and Legal
🧠
Transfer Abstraction
Peanut App & Protocol Documentation
/
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