Skip to main content

Wallets

Create Smart Account

curl -X POST http://localhost:3004/wallet/smart-account \
  -H "x-api-key: $API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"ownerAddress":"0x1234567890abcdef1234567890abcdef12345678","chainId":80002}'
Auth:
  • Hybrid (JWT or API key)
Auth:
  • JWT only
Init (nonce):
curl -X POST http://localhost:3004/wallets/link/init \
  -H "Authorization: Bearer $JWT" \
  -H 'Content-Type: application/json' \
  -d '{"address":"0x1234567890abcdef1234567890abcdef12345678"}'
Verify (signature):
curl -X POST http://localhost:3004/wallets/link/verify \
  -H "Authorization: Bearer $JWT" \
  -H 'Content-Type: application/json' \
  -d '{"address":"0x1234567890abcdef1234567890abcdef12345678","signature":"0x..."}'
List linked wallets:
curl http://localhost:3004/wallets/link \
  -H "Authorization: Bearer $JWT"