Get ERC20-Token TotalSupply by ContractAddress
Returns the current amount of an ERC-20 token in circulation.
Copy https://api.lineascan.build/api
?module=stats
&action=tokensupply
&contractaddress=0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
Parameter Description the contract address
of the ERC-20 token
Sample Response
Copy {
"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.
Copy https://api.lineascan.build/api
?module=account
&action=tokenbalance
&contractaddress=0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f
&address=0x201a089de2bfd27066cba34bf9dd780665e39c72
&tag=latest&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
Parameter Description the contract address
of the ERC-20 token
the string
representing the address to check for token balance
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": "10058823092239102379"
}
📈 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
Returns the historical amount of a ERC-20 token in circulation at a certain block height.
📝 Note : This endpoint is throttled to 2 calls/second regardless of API Pro tier.
Copy https://api.lineascan.build/api
?module=stats
&action=tokensupplyhistory
&contractaddress=0x5FBDF89403270a1846F5ae7D113A989F850d1566
&blockno=5343368
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
Parameter Description the contract address
of the ERC-20 token
the integer
block number to check total supply for eg. 4000000
Sample Response
Copy {
"status":"1",
"message":"OK",
"result":"10000000000000000000000000000"
}
📈 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
Returns the balance of a ERC-20 token of an address at a certain block height.
📝 Note : This endpoint is throttled to 2 calls/second regardless of API Pro tier.
Copy https://api.lineascan.build/api
?module=account
&action=tokenbalancehistory
&contractaddress=0x5FBDF89403270a1846F5ae7D113A989F850d1566
&address=0xC882b111A75C0c657fC507C04FbFcD2cC984F071
&blockno=5343368
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
Parameter Description the contract address
of the ERC-20 token
the string
representing the address to check for balance
the integer
block number to check total supply for eg. 400000
Sample Response
Copy {
"status":"1",
"message":"OK",
"result":"59506075464776302187283962"
}
📈 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
Copy https://api.lineascan.build/api
?module=account
&action=addresstokenbalance
&address=0xC882b111A75C0c657fC507C04FbFcD2cC984F071
&page=1
&offset=2
&apikey=YourApikeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the string
representing the address to check for Token Holdings
the integer
page number, if pagination is enabled
the number of transactions displayed per page
Sample Response
Copy {
"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"
}
]
}
Copy https://api.lineascan.build/api
?module=account
&action=addresstokennftbalance
&address=0xC882b111A75C0c657fC507C04FbFcD2cC984F071
&page=1
&offset=2
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the string
representing the address to check for Token Holdings
the integer
page number, if pagination is enabled
the number of transactions displayed per page
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"TokenAddress": "0x398f0a3e303afd3cae2b602d6bbe01b1c1af4749",
"TokenName": "Wizard of Linea",
"TokenSymbol": "WIZ",
"TokenQuantity": "2"
}
]
}
Copy https://api.lineascan.build/api
?module=account
&action=addresstokennftinventory
&address=0xC882b111A75C0c657fC507C04FbFcD2cC984F071
&contractaddress=0x398f0a3e303Afd3cAe2b602D6bBe01b1C1AF4749
&page=1
&offset=20
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the string
representing the address to check for inventory
the contract address
of the ERC-721 token
the integer
page number, if pagination is enabled
the number of transactions displayed per page
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"TokenAddress": "0x398f0a3e303afd3cae2b602d6bbe01b1c1af4749",
"TokenId": "1573"
},
{
"TokenAddress": "0x398f0a3e303afd3cae2b602d6bbe01b1c1af4749",
"TokenId": "4285"
}
]
}
Copy https://api.lineascan.build/api
?module=token
&action=tokenholderlist
&contractaddress=0x5FBDF89403270a1846F5ae7D113A989F850d1566&
&page=1
&offset=10
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the contract address
of the ERC-20 token
the integer
page number, if pagination is enabled
the number of transactions displayed per page
Sample Response
Copy {
"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.
📝 Note : This endpoint is throttled to 2 calls/second regardless of API Pro tier.
Copy https://api.lineascan.build/api
?module=token
&action=tokeninfo
&contractaddress=0x5FBDF89403270a1846F5ae7D113A989F850d1566
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
Parameter Description the contract address
of the ERC-20/ERC-721 token to retrieve token info
Sample Response
Copy {
"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"
}
]
}
Last updated 2 months ago