EnterCoin
  • EnterCoin Documentation
  • Quick Start
    • Quick Guide
  • API
    • Public API endpoints
    • Getting Started
    • Installation
    • Hyperthereum Schema Basics
    • Schema Structure
    • Implementation Details and Notes
    • Covalent indexing and querying API
    • API Objects
    • Postman
  • Tutorials
    • Setup MetaMask (Mainnet)
    • Deploy a Smart Contract
    • Create a Fixed-cap Asset
    • Create a Variable-cap Asset
    • Create an NFT-based Game
  • Technology
    • Bonsai Tries
    • HBFT
    • Rewards
    • FAQ
Powered by GitBook
On this page
  • Supported endpoints
  • ​Appendix
  1. API

Covalent indexing and querying API

PreviousImplementation Details and NotesNextAPI Objects

Last updated 3 years ago

Supported endpoints

All Covalent Class A endpoints are supported for the Enter mainnet and testnet. You can query the network via the unified API by changing thechainIdparameter:

  • Mainnet: 1214

  • All requests to the Covalent API are done over HTTPS (calls over plain HTTP will fail.)

  • api.covalenthq.com/v1/{chainId}/address/{address}/balances_v2/

    • Get token balances for address. Return a list of all ERC20 and NFT token balances including ERC721 and ERC1155 along with their current spot prices.

  • api.covalenthq.com/v1/{chainId}/address/{address}/transactions_v2/

    • Retrieve all transactions for address including their decoded log events. This endpoint does a deep-crawl of the blockchain to retrieve all kinds of transactions that references the address.

  • api.covalenthq.com/v1/{chainId}/address/{address}/transfers_v2/

    • Get ERC20 token transfers for address along with historical token prices.

  • api.covalenthq.com/v1/{chainId}/tokens/{contract_address}/token_holders/

    • Return a paginated list of token holders contract_address as of any historical block height.

  • api.covalenthq.com/v1/{chainId}/events/address/{contract_address}/

    • Return a paginated list of decoded log events emitted by a particular smart contract.

  • api.covalenthq.com/v1/{chainId}/events/topics/{topic}/

    • Return a paginated list of decoded log events with one or more topic hashes separated by a comma.

The Enter token ENTER is the native token of Fantom. This is similar to Ether in Ethereum. To interact with the Fantom network, ENTER tokens are required to pay gas fees. The Covalent API response returns gas_* fields in fiat units.

Covalent maintains an on-chain real-time mapping of token addresses between Ethereum mainnet and the Enter chain. These addresses are used to reverse-lookup prices on Fantom and also to return the right token logo urls.

The token mapping list will be updated constantly. Currently no mappings exist yet.

For tokens that have a mapping back to Ethereum mainnet, Covalent is able to return the mapped prices.

Appendix

Enter token

Token mapping

Token prices

Go to Covalent's API Reference
​
​
​
​