Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
# Circle
CIRCLE_API_KEY=your-circle-api-key
CIRCLE_ENTITY_SECRET=your-circle-entity-secret

# Arc Testnet
ARC_TESTNET_RPC_KEY=your-arc-testnet-rpc-key
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ CIRCLE_ENTITY_SECRET=your-circle-entity-secret
| `SUPABASE_SERVICE_ROLE_KEY` | Server-side | Supabase service role key for admin operations. |
| `CIRCLE_API_KEY` | Server-side | Circle API key for wallet operations. |
| `CIRCLE_ENTITY_SECRET` | Server-side | Circle entity secret for signing transactions. |
| `ARC_TESTNET_RPC_KEY` | Server-side | Arc Testnet RPC key. Get from https://rpc.testnet.arc.network |

## User Accounts

Expand Down
5 changes: 4 additions & 1 deletion lib/circle/gateway-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ import {
export const GATEWAY_WALLET_ADDRESS = "0x0077777d7EBA4688BDeF3E311b846F25870A19B9";
export const GATEWAY_MINTER_ADDRESS = "0x0022222ABE238Cc2C7Bb1f21003F0a260052475B";

const arcRpcKey = process.env.ARC_TESTNET_RPC_KEY || 'c0ca2582063a5bbd5db2f98c139775e982b16919';
const arcRpcKey = process.env.ARC_TESTNET_RPC_KEY;
if (!arcRpcKey) {
console.warn('[arc-fintech] ARC_TESTNET_RPC_KEY is not set. Add it to .env.local. See .env.example.');
}

export const arcTestnet = {
id: 5042002,
Expand Down