API Implementation

Base URL

api.gasyard.fi/api/sdk

Authentication

All API requests must include the following headers:

{
    "x-api-key": "<insert api key>"
}

Need Help?

If you're looking to integrate our API or SDK and need assistance, feel free to reach out on Telegram: t.me/qimchi. 🚀


1. GET /quote

Description: Fetches a quote for token swaps between networks.

Request Example:

/quote?inputNetwork=2&outputNetwork=5&inputTokenAmount=5000000000000000&outputTokenContract=0xaf88d065e77c8cC2239327C5EDb3A432268e5831

Query Parameters:

  • inputNetwork (integer) - ID of the source network

  • outputNetwork (integer) - ID of the destination network

  • inputTokenAmount (string) - Amount of input tokens in the smallest unit

  • outputTokenContract (string) - Contract address of the output token

Response Example:


2. GET /config

Description: Retrieves configuration details for a specified blockchain network.

Request Example:

Query Parameters:

  • chainId (integer) - The ID of the blockchain network

Response Example:


3. GET /status

Description: Checks the status of a transaction based on its hash.

Request Example:

Query Parameters:

  • sourceHash (string) - The hash of the transaction to check status

Response Example:


4. GET /history

Description: Fetches transaction history for a given address.

Request Example:

Query Parameters:

  • inputAddress (string) - The wallet address to fetch history for

Response Example:


5. GET /bridge

Description: Initiates a token bridging transaction between two networks.

Request Example:


Last updated