tokens

Get tokens based on network, search criteria, started from offset, excluded the token addresses in exclude.

Request Parameters:

NameTypeDescriptionExample

networkName (required)

String[]

The name of the network for which to retrieve tokens

[bsc, polygon, base]

searchValue (required)

String[]

The search value(s) used to filter tokens.

exact (optional)

Boolean

Flag indicating whether the search should be exact or partial.

Default value: false

offset (optional)

Number

The number of tokens to skip in the result set.

Default value: 0

exclude (optional)

String[]

The address(es) to exclude from the result.

Request URL Example:

https://api.magpiefi.xyz/token-manager/tokens?networkNames=ethereum&searchValue=0x&searchValue=0x&exact=false&offset=0

Response Example:

[
  {
    "id": "string",
    "name": "string",
    "symbol": "string",
    "address": "string",
    "decimals": 0,
    "displayDecimals": 0,
    "logoUrl": "string",
    "usdPrice": "string",
    "highestPriority": "string",
    "network": {
      "id": 0,
      "name": "bsc",
      "chainId": 0,
      "logoUrl": "string"
    }
  }
]

Last updated