Skip to content
This documentation is in beta, and weโ€™re looking for feedback. See how you can contribute ๐ŸŒŸ

Covalent API

Covalent provides an API that allows you to pull detailed, granular, and historical blockchain data such as:

  • Token balances associated with a given address.
  • History of transfers associated with a particular NFT.
  • Metadata associated with a given NFT contract.

Using the API

The Covalent API documentation for Palm provides information on available API endpoints and lets users make requests directly from the browser.

  1. Sign up for an API key to use the Covalent API.
  2. Pass the key as a query parameter with all requests using key=API_KEY.
  3. To run queries against the Palm network update the chain_id query parameter to point to the targeted Palm network environment.
  4. For example, to fetch all token balances (including NFTs) of a Palm address:
    1. Make requests to the balances_v2 endpoint with chain_id as 11297108109 for Palm Mainnet.
    2. Make requests to the balances_v2 endpoint with chain_id as 11297108099 for Palm Testnet.
Terminal window
curl -X GET https://api.covalenthq.com/v1/11297108109/address/0x4C1f6fCBd233241bF2f4D02811E3bF8429BC27B8/balances_v2/?quote-currency=USD&format=JSON&nft=false&no-nft-fetch=false&key=ckey_xxxxx \
-H "Accept: application/json"