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 Random String

Is random actually random? Well, using this function it actually is!

When generating a password for the Link, its important that the password cannot be predicted in any way. Use this function to cryptographically generate a secure password. A string of min 16 chars is recommended.
Copy
plain text
const password = await peanut.getRandomString(16)
Estimate Fee Options
Get all deposits for an Address

Powered by Notaku
Helpful?
Share
Content
Get Random String
Is random actually random? Well, using this function it actually is!