Get All Assets

Retrieves a list of all available assets in the system.

Endpoint: GET {{base_url}}/assets

Response:

{
  "data": {
    "message": "Assets Listed Successfully",
    "data": [
      {
        "asset_id": "6189e76a93f2e543b9b0c701",
        "asset_symbol": "Bitcoin",
        "network": "BTC"
      },
      {
        "asset_id": "6189e76a93f2e543b9b0c703",
        "asset_symbol": "USD Coin",
        "network": "SOL"
      }
    ]
  },
  "status": true,
  "message": "Success"
}

Get All Chains

Retrieves all supported blockchain networks with their details.

Endpoint: GET {{base_url}}/get-chains

Response:

{
  "status": true,
  "message": "Chains fetched successfully",
  "data": [
    {
      "id": "SOL",
      "name": "Solana",
      "portfolio": "solana",
      "image": "<https://cryptoicons.org/sol.png>",
      "rpc": "<https://api.mainnet-beta.solana.com>",
      "explorer": "<https://explorer.solana.com>"
    },
    {
      "id": "BTC",
      "name": "Bitcoin",
      "portfolio": "bitcoin",
      "image": "<https://cryptoicons.org/btc.png>",
      "rpc": "",
      "explorer": "<https://blockstream.info>"
    }
  ]
}

Create User Asset

Creates a new asset in a user's account.

Endpoint: POST {{base_url}}/assets

Request Body:

{
  "asset_id": "6189e76a93f2e543b9b0c701",
  "account_id": "6189xxxxxxxx"
}

Response - Success:

{
  "data": {
    "message": "successful request",
    "data": {
      "asset_id": "6189e76a93f2e543b9b0c801",
      "account_id": "6189xxxxxx",
      "asset_symbol": "BTC",
      "network": "native",
      "created_at": "2023-01-28T09:45:30.123Z"
    }
  },
  "status": true,
  "message": "Success"
}

Response - Asset Already Exists:

{
  "status": "error",
  "status_code": "409",
  "message": "Asset already exists!",
  "data": {
    "asset_id": "6189e76a93f2e543b9b0c701",
    "account_id": "6189xxxxx",
    "asset_symbol": "BTC",
    "network": "native",
    "created_at": "2023-01-25T14:20:30.123Z"
  }
}

Get Asset Transactions