Skip to main content
POST
/
wallets
Create Wallet
curl --request POST \
  --url https://api.caminotreasury.com/v1/wallets \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "address": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
  "label": "Main Treasury"
}
'
{
  "wallet": {
    "id": 123,
    "address": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
    "label": "Main Treasury",
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Pass your key in the x-api-key header.

Body

application/json
address
string
required

Ethereum wallet address. Must not be the zero address.

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x742d35cc6634c0532925a3b844bc454e4438f44e"

label
string
required

Human-readable wallet label

Required string length: 1 - 100
Example:

"Main Treasury"

Response

Wallet created successfully

wallet
object