Help & Support

Covalent

The GoldRush API from Covalent provides a unified API to query data points across multiple networks, including Lens Testnet.

To start using Covalent’s GoldRush, you'll need an API key, which you can generate by signing up at GoldRush. Once you have your API key, you can explore integration options:

Wallet Balances Example

Below is an example fetching token balances for a specific wallet address across one or multiple chains. You can specify chains as a comma separated list of chain tags (Lens Chain tags are lens-sepolia-testnet and lens-mainnet).

API

curl --request GET \     --url "https://api.covalenthq.com/v1/allchains/address/INSERT_ADDRESS_HERE/balances/?chains=lens-sepolia-testnet,lens-mainnet&key=INSERT_API_KEY_HERE" \     --header 'accept: application/json'

JavaScript SDK

Install SDK with your package manager of choice:

npm install @covalenthq/client-sdk"
import { GoldRushClient } from "@covalenthq/client-sdk";
const client = new GoldRushClient("INSERT_API_KEY_HERE");
const fetchBalances = async (walletAddress) => {  try {    const response = await client.AllChainsService.getTokenBalances({      chains: "lens-sepolia-testnet",      addresses: walletAddress,    });
    // If the API returns an error property, handle accordingly:    if (response.error) {      throw response;    }
    console.log(response.data);  } catch (error) {    console.error(error);  }};
fetchBalances("INSERT_ADDRESS_HERE");

Transactions Example

Similarly, you can fetch transactions across any supported chain. You can specify chains as a comma separated list of chain tags (Lens Chain tags are lens-sepolia-testnet and lens-mainnet)

API

curl --request GET \     --url "https://api.covalenthq.com/v1/allchains/transactions/?chains=lens-mainnet,lens-sepolia-testnet&addresses=INSERT_ADDRESS_HERE&key=INSERT_API_KEY_HERE" \     --header 'accept: application/json'

JavaScript SDK

Install SDK with your package manager of choice:

npm install @covalenthq/client-sdk"
import { GoldRushClient } from "@covalenthq/client-sdk";
const client = new GoldRushClient("INSERT_API_KEY_HERE");
const fetchTransactions = async (walletAddress) => {  try {    const txResponse = await client.AllChainsService.getTransactions({      chains: "lens-mainnet,lens-sepolia-testnet",      addresses: walletAddress,    });
    if (txResponse.error) {      throw txResponse;    }
    console.log(txResponse.data);  } catch (error) {    console.error(error);  }};
fetchTransactions("INSERT_ADDRESS_HERE");