LineaScan
HomeTwitterKnowledge BaseAPI PRO
LineaScan
LineaScan
  • Introduction
  • ✨Getting Started
    • Creating an Account
    • Getting an API key
    • Endpoint URLs
  • 🎯API Endpoints
    • Accounts
    • Contracts
    • Transactions
    • Blocks
    • Logs
    • Geth/Parity Proxy
    • Tokens
    • Stats
  • 🏆API PRO
    • LineaScan API PRO
    • API PRO Endpoints
  • 🤝Support
    • FAQ
    • Rate Limits
    • Common Error Messages
    • Common Verification Errors
    • Getting Help
  • Visit LineaScan.build
Powered by GitBook
On this page
  • Get ERC20-Token TotalSupply by ContractAddress
  • Get ERC20-Token Account Balance for TokenContractAddress
  • Get Historical ERC-20 Token TotalSupply by ContractAddress & BlockNo
  • Get Historical ERC-20 Token Account Balance by ContractAddress & BlockNo
  • Get Address ERC-20 Token Holdings
  • Get Address ERC-721 Token Holding
  • Get Address ERC721 Token Inventory By Contract Address
  • Get Token Holder List by Contract Address
  • Get Token Info by ContractAddress
  1. API Endpoints

Tokens

PreviousGeth/Parity ProxyNextStats

Last updated 11 months ago

Get ERC20-Token TotalSupply by ContractAddress

Returns the current amount of an ERC-20 token in circulation.

https://api.lineascan.build/api
   ?module=stats
   &action=tokensupply
   &contractaddress=0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f
   &apikey=YourApiKeyToken

Try this endpoint in your

Query Parameters

Parameter
Description

contractaddress

the contract address of the ERC-20 token

Sample Response

{
  "status": "1",
  "message": "OK",
  "result": "2033098323703614015783"
}

Tip : The result is returned in the token's smallest decimal representation.

Eg. a token with a balance of 215.241526476136819398 and 18 decimal places will be returned as 215241526476136819398

Get ERC20-Token Account Balance for TokenContractAddress

Returns the current balance of an ERC-20 token of an address.

https://api.lineascan.build/api
   ?module=account
   &action=tokenbalance
   &contractaddress=0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f
   &address=0x201a089de2bfd27066cba34bf9dd780665e39c72
   &tag=latest&apikey=YourApiKeyToken

Query Parameters

Parameter
Description

contractaddress

the contract address of the ERC-20 token

address

the string representing the address to check for token balance

Sample Response

{
  "status": "1",
  "message": "OK",
  "result": "10058823092239102379"
}

Eg. a token with a balance of 215.241526476136819398 and 18 decimal places will be returned as 215241526476136819398

Returns the historical amount of a ERC-20 token in circulation at a certain block height.

https://api.lineascan.build/api
   ?module=stats
   &action=tokensupplyhistory
   &contractaddress=0x5FBDF89403270a1846F5ae7D113A989F850d1566
   &blockno=5343368
   &apikey=YourApiKeyToken

Query Parameters

Parameter
Description

contractaddress

the contract address of the ERC-20 token

blockno

the integer block number to check total supply for eg. 4000000

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":"10000000000000000000000000000"
}

Eg. a token with a balance of 215.241526476136819398 and 18 decimal places will be returned as 215241526476136819398

Returns the balance of a ERC-20 token of an address at a certain block height.

https://api.lineascan.build/api
   ?module=account
   &action=tokenbalancehistory
   &contractaddress=0x5FBDF89403270a1846F5ae7D113A989F850d1566
   &address=0xC882b111A75C0c657fC507C04FbFcD2cC984F071
   &blockno=5343368
   &apikey=YourApiKeyToken

Query Parameters

Parameter
Description

contractaddress

the contract address of the ERC-20 token

address

the string representing the address to check for balance

blockno

the integer block number to check total supply for eg. 400000

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":"59506075464776302187283962"
}

Eg. a token with a balance of 215.241526476136819398 and 18 decimal places will be returned as 215241526476136819398

https://api.lineascan.build/api
    ?module=account
    &action=addresstokenbalance
    &address=0xC882b111A75C0c657fC507C04FbFcD2cC984F071
    &page=1
    &offset=2
    &apikey=YourApikeyToken

Query Parameters

Parameter

Description

address

the string representing the address to check for Token Holdings

page

the integer page number, if pagination is enabled

offset

the number of transactions displayed per page

Sample Response

{
  "status": "1",
  "message": "OK",
  "result": [
    {
      "TokenAddress": "0x67429b4d93d6fa3b2f175f9a52543ef07c2035b9",
      "TokenName": "Soyjacks",
      "TokenSymbol": "SoyJ",
      "TokenQuantity": "10000000000000000000000000",
      "TokenDivisor": "18"
    },
    {
      "TokenAddress": "0x48855d4b8bc24b491a755a77a8b1bc2cc10df2b6",
      "TokenName": "Mumu",
      "TokenSymbol": "MUMU",
      "TokenQuantity": "10000000000000000000000000",
      "TokenDivisor": "18"
    }
  ]
}
https://api.lineascan.build/api
    ?module=account
    &action=addresstokennftbalance
    &address=0xC882b111A75C0c657fC507C04FbFcD2cC984F071
    &page=1
    &offset=2
    &apikey=YourApiKeyToken

Query Parameters

Parameter

Description

address

the string representing the address to check for Token Holdings

page

the integer page number, if pagination is enabled

offset

the number of transactions displayed per page

Sample Response

{
  "status": "1",
  "message": "OK",
  "result": [
    {
      "TokenAddress": "0x398f0a3e303afd3cae2b602d6bbe01b1c1af4749",
      "TokenName": "Wizard of Linea",
      "TokenSymbol": "WIZ",
      "TokenQuantity": "2"
    }
  ]
}
https://api.lineascan.build/api
    ?module=account
    &action=addresstokennftinventory
    &address=0xC882b111A75C0c657fC507C04FbFcD2cC984F071
    &contractaddress=0x398f0a3e303Afd3cAe2b602D6bBe01b1C1AF4749
    &page=1
    &offset=20
    &apikey=YourApiKeyToken

Query Parameters

Parameter

Description

address

the string representing the address to check for inventory

contractaddress

the contract address of the ERC-721 token

page

the integer page number, if pagination is enabled

offset

the number of transactions displayed per page

Sample Response

{
  "status": "1",
  "message": "OK",
  "result": [
    {
      "TokenAddress": "0x398f0a3e303afd3cae2b602d6bbe01b1c1af4749",
      "TokenId": "1573"
    },
    {
      "TokenAddress": "0x398f0a3e303afd3cae2b602d6bbe01b1c1af4749",
      "TokenId": "4285"
    }
  ]
}
https://api.lineascan.build/api
   ?module=token
   &action=tokenholderlist
   &contractaddress=0x5FBDF89403270a1846F5ae7D113A989F850d1566&
   &page=1
   &offset=10
   &apikey=YourApiKeyToken 

Query Parameters

Parameter

Description

contractaddress

the contract address of the ERC-20 token

page

the integer page number, if pagination is enabled

offset

the number of transactions displayed per page

Sample Response

{
  "status": "1",
  "message": "OK",
  "result": [
    {
      "TokenHolderAddress": "0x7f5c179a1d8dc784c7d62d5c25c02df639a3476f",
      "TokenHolderQuantity": "5179445387066382344828048333"
    },
    {
      "TokenHolderAddress": "0x21dceed765c30b2abea933a161479aea4702e433",
      "TokenHolderQuantity": "74000000000000000000"
    },
    {
      "TokenHolderAddress": "0x86a8138a1dbbb5f42804446caa34dcff79752ebc",
      "TokenHolderQuantity": "1000000000000000000"
    },
    {
      "TokenHolderAddress": "0x0096fc3267e9a3cecdbefb9edd09cea0a2cdfe0f",
      "TokenHolderQuantity": "575543278391487800000000000"
    },
    {
      "TokenHolderAddress": "0xc24e8f4de66c7113b0e6a7d8270020f684db0955",
      "TokenHolderQuantity": "100000000000000000000"
    },
    {
      "TokenHolderAddress": "0xcee1ad5f9ef7263c6f89fe9333ca9f12f235fa50",
      "TokenHolderQuantity": "65264"
    },
    {
      "TokenHolderAddress": "0x6adb56433a0ffc68bedb2eb7c1bde846693dae04",
      "TokenHolderQuantity": "95000000000000000000"
    },
    {
      "TokenHolderAddress": "0xe73d4b73eff834fef9a0276298c996c5f3b08274",
      "TokenHolderQuantity": "450548462321209736353688"
    },
    {
      "TokenHolderAddress": "0x5f8d6597672e0e5fe3a6ef9c88cf18fc675cae7c",
      "TokenHolderQuantity": "864901000000000000000000"
    },
    {
      "TokenHolderAddress": "0xd6216fc19db775df9774a6e33526131da7d19a2c",
      "TokenHolderQuantity": "233977994423156698010939031"
    }
  ]
}

Returns project information and social media links of an ERC-20/ERC-721 token.

https://api.lineascan.build/api
   ?module=token
   &action=tokeninfo
   &contractaddress=0x5FBDF89403270a1846F5ae7D113A989F850d1566
   &apikey=YourApiKeyToken

Query Parameters

Parameter
Description

contractaddress

the contract address of the ERC-20/ERC-721 token to retrieve token info

Sample Response

{
  "status": "1",
  "message": "OK",
  "result": [
    {
      "contractAddress": "0x5fbdf89403270a1846f5ae7d113a989f850d1566",
      "tokenName": "Foxy",
      "symbol": "FOXY",
      "divisor": "18",
      "tokenType": "ERC20",
      "totalSupply": "10000000000000000000000000000",
      "blueCheckmark": "false",
      "description": "Foxy is a mascot token for the Linea blockchain. Foxy is a culture coin, a meme token for the users of the Linea blockchain to rally behind, and help build a sense of community.",
      "website": "https://www.welikethefox.io/",
      "email": "",
      "blog": "https://welikethefox.medium.com/",
      "reddit": "",
      "slack": "",
      "facebook": "",
      "twitter": "https://twitter.com/foxylinea",
      "bitcointalk": "",
      "github": "",
      "telegram": "https://t.me/coinmarketcap",
      "wechat": "",
      "linkedin": "",
      "discord": "",
      "whitepaper": "",
      "tokenPriceUSD": "0.0223243600"
    }
  ]
}

Try this endpoint in your

Tip : The result is returned in the token's smallest decimal representation.

Get Historical ERC-20 Token TotalSupply by ContractAddress & BlockNo

Note : This endpoint is throttled to 2 calls/second regardless of API Pro tier.

Try this endpoint in your

Tip : The result is returned in the token's smallest decimal representation.

Get Historical ERC-20 Token Account Balance by ContractAddress & BlockNo

Note : This endpoint is throttled to 2 calls/second regardless of API Pro tier.

Try this endpoint in your

Tip : The result is returned in the token's smallest decimal representation.

Get Address ERC-20 Token Holdings

Try this endpoint in your

Get Address ERC-721 Token Holding

Try this endpoint in your

Get Address ERC721 Token Inventory By Contract Address

Try this endpoint in your

Get Token Holder List by Contract Address

Try this endpoint in your

Get Token Info by ContractAddress

Note : This endpoint is throttled to 2 calls/second regardless of API Pro tier.

Try this endpoint in your

🎯
📈
📝
📈
📝
📈
📝
🔗
📈
browser
🔗
browser
🔗
browser
🔗
browser
🔗
browser
🔗
browser
🔗
browser
🔗
browser
🔗
browser