Skip to content

Commit 40c8b7b

Browse files
authored
Merge pull request #14 from avneesh0612/feat/use-dynamic
2 parents ad6e711 + 1ec8116 commit 40c8b7b

File tree

10 files changed

+12314
-6001
lines changed

10 files changed

+12314
-6001
lines changed

.env

Lines changed: 0 additions & 4 deletions
This file was deleted.

.env.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Public Monad RPC URL, replace with your own if you have a private RPC
2+
NEXT_PUBLIC_RPC_URL="https://testnet-rpc.monad.xyz"
3+
# Find your environment id at https://app.dynamic.xyz/dashboard/developer
4+
NEXT_PUBLIC_DYNAMIC_ENVIRONMENT_ID="d32dce1b-2c12-4c0f-937c-9fcc2f4b2249"
5+
# Wallet address for receiving donations
6+
# It defaults to a wevm.eth multichain wallet for demonstration purposes.
7+
DONATION_WALLET="0x123..."

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ yarn-error.log*
3232
# typescript
3333
*.tsbuildinfo
3434
next-env.d.ts
35+
36+
# env
37+
.env
38+
.env.local

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,20 @@ https://docs.dialect.to/blinks/blinks-provider/guides/tip-blink
1717

1818
## Environment Setup
1919

20-
In the `.env` file, we have preset a `DONATION_WALLET` address as well as the public RPC endpoint for the Monad testnet.
20+
Create a `.env` file in the root directory with the following variables:
2121

22-
If you prefer to use your own wallet or RPC, please update the `.env` file accordingly.
22+
```bash
23+
# Monad RPC URL (testnet)
24+
NEXT_PUBLIC_RPC_URL=https://rpc.testnet.monad.xyz
25+
26+
# Wallet address to receive donations
27+
DONATION_WALLET=0xd2135CfB216b74109775236E36d4b433F1DF507B
28+
29+
# Dynamic.xyz environment ID
30+
NEXT_PUBLIC_DYNAMIC_ENVIRONMENT_ID=your_environment_id_here
31+
```
2332

24-
- `NEXT_PUBLIC_RPC_URL`: Monad RPC URL
25-
- `DONATION_WALLET`: The wallet address to receive donations
33+
**Note:** The `DONATION_WALLET` defaults to a wevm.eth multichain wallet for demonstration purposes. Update this to your own wallet address for production use.
2634

2735
## Getting Started
2836

0 commit comments

Comments
 (0)