Server-managed Ethereum wallets. Camino Treasury holds the keys and can sign transactions on your behalf. Each organization can create multiple wallets with labels.
If you omit label (or send an empty body), the server assigns Wallet N where N is the next number for your organization. The counter includes deleted wallets so numbers are never reused.
// Both forms create a wallet labeled "Wallet 1" (assuming an empty org)await fetch('https://api.caminotreasury.com/v1/wallets', { method: 'POST', headers: { 'x-api-key': 'your-api-key' },});// Or with an empty JSON bodyawait fetch('https://api.caminotreasury.com/v1/wallets', { method: 'POST', headers: { 'Content-Type': 'application/json', 'x-api-key': 'your-api-key', }, body: '{}',});
Renames a wallet. label is the only updatable field — the address is permanent.
const address = '0x742d35cc6634c0532925a3b844bc454e4438f44e';const response = await fetch(`https://api.caminotreasury.com/v1/wallets/${address}`, { method: 'PATCH', headers: { 'Content-Type': 'application/json', 'x-api-key': 'your-api-key' }, body: JSON.stringify({ label: 'Updated Name' })});const wallet = await response.json();// Returns the full updated wallet (same shape as Get a Single Wallet).
Returns 404 if the wallet doesn’t exist or belongs to another organization. Returns 400 if the address is malformed or label is missing/empty/oversized.