API Kit Reference
getTokenList

getTokenList

Returns the list of all the ERC-20 tokens handled by the Safe.

Usage

import { apiKit } from './setup.ts'

const tokens = await apiKit.getTokenList()

Returns

Promise<TokenInfoListResponse>

The list of ERC-20 tokens.

Parameters

options.search (Optional)

  • Type: string

Filters the results by the token name or symbol.

options.address (Optional)

  • Type: string

Filters the results by the token address.

options.ordering (Optional)

  • Type: string

The field used to sort the results.

options.limit (Optional)

  • Type: number

The number of results to return per page.

options.offset (Optional)

  • Type: number

The initial index from which to return the results.

Last updated on

Was this page helpful?

We use cookies to provide you with the best experience and to help improve our website and application. Please read our Cookie Policy for more information. By clicking "Accept all", you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and provide customer support.