Repository
- Code: github.com/berachain/guides/tree/main/apps/irys-bera-nodejs
- README (raw): raw README
Requirements
- Node
v20.11.0or greater, npm - Wallet with mainnet $BERA (this example uses mainnet for payment)
Stack
Node.js, JavaScript/TypeScript, Irys SDK, Berachain mainnet RPC.Quick start
- Clone and install
- Set
WALLET_PRIVATE_KEYin.env(wallet must hold mainnet $BERA). - Run upload
Script reports file size, cost in $BERA, balance, and returns the Irys receipt and gateway URL (e.g.
https://gateway.irys.xyz/<id>).
Key files
| Purpose | Path |
|---|---|
| Upload script | See repo (e.g. app/ or root script; README names exact entry) |