Help & Support

SimpleHash

SimpleHash is a multi-chain token API that provides access to market prices, metadata, and media across different blockchain networks. It allows developers to query token balances, retrieve asset metadata, and fetch real-time market data in a simple and efficient manner. Support for Lens Network is available under the lens-sepolia network slug.

To start using SimpleHash, you'll need an API key, which you can generate by signing up at SimpleHash App. Once you have your API key, you can explore the available endpoints in the SimpleHash API Reference.

Example API Request

To fetch gas token balance for a wallet on the lens-sepolia network, use the following curl command:

curl --request GET \     --url 'https://api.simplehash.com/api/v0/native_tokens/balances?chains=lens-sepolia&wallet_addresses=0x81EdcF8e0a72c3300087891Bb3E992FAf285b2FC' \     --header 'X-API-KEY: INSERT_API_KEY_HERE' \     --header 'accept: application/json'

or integrate into JavaScript application, with API key stored in .env file:

const fetchBalances = async (walletAddress) => {  const response = await fetch(    `https://api.simplehash.com/api/v0/native_tokens/balances?chains=lens-sepolia&wallet_addresses=${walletAddress}`,    {      headers: {        'X-API-KEY': process.env.SIMPLEHASH_API_KEY,        'accept': 'application/json'      }    }  );  const data = await response.json();  console.log(data);};
fetchBalances("0x81EdcF8e0a72c3300087891Bb3E992FAf285b2FC");