Quick Start

Get started with Fanbase Labs' cool swap interface and amazing DeFi tools.

Info: This section explains how to make the first call inside your dApp, app, or website.

Try in your Application

Static request<Data, Response>(retryConfig, requestConfig): Promise<AxiosResponse<Response, any>>

// use fetch or import a library like "axios"
// to perform a request

// request sync
axios.get('https://api.fanbase.io/v1/tokens').then(resp => {
    //process api response
    console.log(resp.data);
});

// request async
const response = await axios.get('https://api.fanbase.io/v1/tokens');
const { data } = response;

Info: To test a GET API call in the most simple way, send a request to the API base URL on your browser.

Make your First Request

You can easily make your first request with one of our available API endpoints.

Aggregate Swap APIPure Swap APINFT Swap API

Last updated