getTokenList
Returns the list of all the ERC-20 tokens handled by the Safe.
Usage
_10import { apiKit } from './setup.ts'_10_10const 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.