API

Api V2 document

Endpoint: https://api.1sol.io

GET /2/101/token-list

**

Request:

  • Headers: No specific headers needed.

  • Url Params: No specific query parameters needed.

  • Body: No specific body attributes needed.


Response:

  • Status: 200

  • Body:

{
  "name": "1Sol Token List",
  "logoURI": "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/4ThReWAbAVZjNVgs5Ui9Pk3cZ5TYaD9u6Y89fp6EFzoF/logo.png",
  "tokens": [
    {
      "chainId": 101,
      "address": "4ThReWAbAVZjNVgs5Ui9Pk3cZ5TYaD9u6Y89fp6EFzoF",
      "symbol": "1SOL",
      "name": "1sol.io Token",
      "logoURI": "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/4ThReWAbAVZjNVgs5Ui9Pk3cZ5TYaD9u6Y89fp6EFzoF/logo.png",
      "decimals": 8,
      "feeAccount": "2h2Z8YkECHyDKamQt6B7hTqX6m8ANV3pwSa2CjYsss5x",
      "tags": [],
      "extensions": {
          "coingeckoId": "1sol",
          "coingeckoName": "1Sol"
      }
    }
  ]
}

POST /2/101/routes

**

Request:

  • Headers: No specific headers needed.

  • Url Params: No specific query parameters needed.

  • Body:


Description:

  • If the length of response.distributions.routes is 1, it's a direct exchange.

  • If the length of response.distributions.routes is 2, it's exchanged with a bridge token.

Response:

  • Type: Direct

  • Body:


Response:

  • Type: WithBridgeMint

  • Body:


POST /2/101/transactions

**

Request:

  • Headers: No specific headers needed.

  • Url Params: No specific query parameters needed.

  • Body:


Response:

  • Status: 200

  • Body:


Last updated