Types & Errors

Data Types & Errors

Data Types

Network

"Solana" | "Ethereum"

WalletType

"Embedded"

SocialProvider

{ "Email": "string" | "Google": "string" | "Apple": "string" | "Twitter": "string" }

Wallet

{ "id": "string", "address": "string", "network": "Solana" | "Ethereum", "wallet_type": "Embedded" }

User

{ "id": "uuid", "wallets": [Wallet], "social_links": [SocialProvider] }

Address

{ "address": "string", "blockchains": ["string"] }

Attestation

{ "id": "string", "type": "SGX", "quote": "string" }

Error Format

{ "error": "Descriptive error message" }

Common Error Codes

  • 400 Bad Request

  • 401 Unauthorized

  • 404 Not Found

  • 500 Internal Server Error

Last updated