Tokens

Get token by contract address

Retrieve detailed information about a specific token using its contract address

get/tokens/{contractAddress}

Request

  • Base URL: https://token-api.linea.build (the document declares no server; this is the origin it was published from)
  • URL: https://token-api.linea.build/tokens/{contractAddress}
  • Auth: none declared

Path parameters

contractAddressstring required
Example:0x1234567890123456789012345678901234567890

The Ethereum contract address of the token

Response

Successfully retrieved token information

namestring required

Name of the token

symbolstring required

Symbol of the token

decimalsnumber required

Number of decimals of the token

logoobject required

URL of the token logo

contractAddressstring required

Contract address of the token

currentPriceobject required

Current price of the token

priceUpdatedAtobject required

Date and time when the price was last updated

last24hVariationobject required

Price variation in the last 24 hours

Example response

{
  "name": "Token name",
  "symbol": "Token symbol",
  "decimals": 18,
  "contractAddress": "0x1111111111111111111111111111111111111111",
  "info": {
    "sells": 1000,
    "buys": 2000,
    "swaps": 3000
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.