Skip to content
Merged
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
13 changes: 13 additions & 0 deletions v2/cctp_earn_account/typescript/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Compass API Key
COMPASS_API_KEY=your_compass_api_key

# Wallet Configuration
PRIVATE_KEY=0x...your_private_key
WALLET_ADDRESS=0x...your_wallet_address

# RPC URLs
BASE_RPC_URL=https://mainnet.base.org
ARBITRUM_RPC_URL=https://arb1.arbitrum.io/rpc

# Optional: Staging server URL (for testing against staging environment)
SERVER_URL=https://api.compasslabs.ai
25 changes: 25 additions & 0 deletions v2/cctp_earn_account/typescript/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "cctp_earn_account_typescript_example",
"version": "1.0.0",
"type": "module",
"main": "index.js",
"scripts": {
"build": "tsc",
"start": "tsc && node dist/index.js",
"dev": "ts-node --esm src/index.ts"
},
"author": "",
"license": "ISC",
"description": "Example: Bridge USDC from Base to Arbitrum using CCTP via Compass API Earn Accounts",
"dependencies": {
"@compass-labs/api-sdk": "2.1.10-rc.9",
"dotenv": "^16.5.0",
"viem": "^2.31.0"
},
"devDependencies": {
"@types/node": "^24.0.0",
"prettier": "^3.6.2",
"ts-node": "^10.9.2",
"typescript": "^5.8.3"
}
}
Loading
Loading