API documentation (if available)

This section provides detailed technical documentation for integrating with the Solident wallet system.

Overview

The Solident API provides RESTful endpoints for authentication, wallet management, and DeFi operations. All API calls are secured with OAuth 2.0 authentication and support both JSON and Protocol Buffers formats.

Base URL

https://api.solident.io/v1

Authentication

API Key Authentication

curl -X GET "https://api.solident.io/v1/user/profile" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

OAuth 2.0 Flow

const authUrl = "https://auth.solident.io/oauth/authorize";
const params = {
  response_type: "code",
  client_id: "your_client_id",
  redirect_uri: "https://yourapp.com/callback",
  scope: "wallet:read wallet:write",
  state: "random_string"
};

Authentication API

Face Recognition Endpoints

Enroll Face Biometric

Response:

Verify Face Biometric

Response:

Pattern Authentication

Set Unlock Pattern

Verify Pattern

Wallet API

Wallet Management

Create New Wallet

Response:

Get Wallet Balance

Response:

Transfer Funds

Response:

Transaction History

Get Transaction History

Response:

DeFi Integration

Token Swaps

Execute Token Swap

Response:

Get Available Liquidity Pools

Response:

SDK Integration

JavaScript/TypeScript SDK

Python SDK

Webhooks

Configure Webhook

Webhook Payload

Error Codes

Authentication Errors (AUTH_xxx)

  • AUTH_001: Invalid API key

  • AUTH_002: Session expired

  • AUTH_003: Invalid session token

  • AUTH_004: Face recognition failed

  • AUTH_005: Pattern verification failed

Wallet Errors (WALLET_xxx)

  • WALLET_001: Wallet not found

  • WALLET_002: Insufficient balance

  • WALLET_003: Invalid recipient address

  • WALLET_004: Transaction failed

Network Errors (NET_xxx)

  • NET_001: Network timeout

  • NET_002: RPC node unavailable

  • NET_003: Transaction not confirmed

  • NET_004: Gas estimation failed

Rate Limits

Endpoint
Rate Limit
Time Window

Authentication

10 requests

1 minute

Wallet operations

100 requests

1 minute

Balance queries

1000 requests

1 minute

Transaction history

100 requests

1 minute

Support

For API support and questions:

  • Email: api-support@solident.io

  • Documentation: https://docs.solident.io

  • Status Page: https://status.solident.io

  • GitHub: https://github.com/solident/api-docs

Changelog

v1.2.0 (2023-10-03)

  • Added biometric enrollment endpoints

  • Improved error handling

  • Added webhook support

v1.1.0 (2023-09-15)

  • Added DeFi integration endpoints

  • Enhanced transaction history API

  • Added Python SDK support

v1.0.0 (2023-08-01)

  • Initial API release

  • Core wallet functionality

  • Basic authentication

Last updated