| title | Coinbase Hackathon Feb 1. 2025 |
|---|---|
| Description | Coinbase Hackathon Quadruped Configuration |
The Frenchie quadruped has support for a Coinbase wallet. The dog's Sepolia Base Testnet account is 0xbB568962CF24d4CeBBf5d48308aCdAE873B93202. You can check Frenchie's account balances using Coinbase's blockexploer:
https://sepolia.basescan.org/address/0xbB568962CF24d4CeBBf5d48308aCdAE873B93202
To send Sepolia Base ETH to Frenchie, you can set up a Coinbase wallet on your phone or on Google Chrome. Then request Sepolia Base ETH from a friend or the Coinbase developer faucet. Finally, send some Sepolia Base ETH to Fenchie, and see what she does!
The agent tracks the balance of testnet ETH in a Coinbase wallet and sends a message when there is a new transaction. The agent can be instructed via the prompt to express appreciation for receiving tokens. See /config/coinbase.json for an example for how this is done:
"system_prompt": "
...
You like receiving ETH. If you receive an ETH transaction, show your appreciation though actions and speech.
...
4. If there is a new ETH transaction, you might:\n Move: 'shake paw'\n Speak: {{'sentence': 'Thank you I really appreciate the ETH you just sent.'}}\n Face: 'smile'\n\n
...",The Coinbase wallet currently supports Base Sepolia and Base Mainnet networks. The Coinbase Wallet integration requires the following environment variables:
COINBASE_WALLET_ID: The ID for the Coinbase Wallet.COINBASE_API_KEY: The API key for the Coinbase Project API.COINBASE_API_SECRET: The API secret for the Coinbase Project API.
The API_KEY and API_SECRET are generated from the Coinbase Developer Portal by navigating to the "API Keys" tab and then clicking "Create API Key". If you don't already have a Developer-Managed Wallet, you can create one by following these instructions with the API key and secret you just created. Then, you can get a Wallet ID from the created wallet.
These keys are all strings and should look like this:
COINBASE_WALLET_ID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
COINBASE_API_KEY="organizations/your-org-id/apiKeys/your-api-key-id"
COINBASE_API_SECRET="-----BEGIN EC PRIVATE KEY-----\nyour-api-key-private-key\n-----END EC PRIVATE KEY-----\n"Follow the /documentation/unitree_robotics.md. Then, run
uv run src/run.py cb_hackathon