### GET /api/v2/transactions/{txHash}/summary Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves a human-readable summary of a transaction, interpreting its actions. ```APIDOC ## GET /api/v2/transactions/{txHash}/summary ### Description Retrieves a human-readable summary of a transaction, interpreting its actions. ### Method GET ### Endpoint `/api/v2/transactions/{txHash}/summary` ### Parameters #### Path Parameters - **txHash** (string) - Required - The hash of the transaction. ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/transactions/0x123abc/summary" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **summary_template** (string) - A template string for the summary. - **summary_template_variables** (object) - Variables used to populate the summary template. - **user** (object) - Information about the user involved. - **type** (string) - The type of the user identifier (e.g., 'address'). - **value** (string) - The user's address. - **amount_in** (object) - Details about the input amount. - **type** (string) - The type of the amount (e.g., 'currency'). - **value** (string) - The amount value. - **symbol** (string) - The currency symbol. - **token_in** (object) - Details about the input token. - **type** (string) - The type of the token (e.g., 'token'). - **address** (string) - The token contract address. - **symbol** (string) - The token symbol. - **amount_out** (object) - Details about the output amount. - **type** (string) - The type of the amount (e.g., 'currency'). - **value** (string) - The amount value. - **symbol** (string) - The currency symbol. - **token_out** (object) - Details about the output token. - **type** (string) - The type of the token (e.g., 'token'). - **address** (string) - The token contract address. - **symbol** (string) - The token symbol. - **action** (object) - Information about the transaction action. - **type** (string) - The type of action (e.g., 'uniswap_v3_buy_or_sell'). - **protocol** (string) - The protocol used (e.g., 'uniswap_v3'). #### Response Example ```json { "summary_template": "{user} swapped {amount_in} {token_in} for {amount_out} {token_out}", "summary_template_variables": { "user": {"type": "address", "value": "0xuser123"}, "amount_in": {"type": "currency", "value": "1.5", "symbol": "ETH"}, "token_in": {"type": "token", "address": "0xweth", "symbol": "WETH"}, "amount_out": {"type": "currency", "value": "3000", "symbol": "USDC"}, "token_out": {"type": "token", "address": "0xusdc", "symbol": "USDC"} }, "action": { "type": "uniswap_v3_buy_or_sell", "protocol": "uniswap_v3" } } ``` ``` -------------------------------- ### Get Transactions List (Bash) Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves a paginated list of recent transactions. It sends a GET request to the /api/v2/transactions endpoint with optional 'page' and 'limit' parameters and returns a JSON array of transactions with pagination information. ```bash # Get recent transactions with pagination curl -X GET "https://explorer.etherlink.com/api/v2/transactions?page=1&limit=50" \ -H "Accept: application/json" ``` -------------------------------- ### Get Transaction Details (Bash) Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves detailed information about a specific transaction using its hash. It sends a GET request to the /api/v2/transactions/{hash} endpoint and returns a JSON object with comprehensive transaction data. ```bash # Get full transaction details curl -X GET "https://explorer.etherlink.com/api/v2/transactions/0x123abc456def789" \ -H "Accept: application/json" ``` -------------------------------- ### Get verified smart contracts Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt List verified smart contracts on the network. Supports filtering by compiler language and pagination. ```APIDOC ## GET /api/v2/smart-contracts ### Description List verified smart contracts with optional filtering. ### Method GET ### Endpoint `/api/v2/smart-contracts` ### Parameters #### Query Parameters - **filter** (string, optional) - Filters contracts by compiler language (e.g., "vyper", "solidity"). - **page** (integer, optional) - Specifies the page number for pagination. Defaults to 1. ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/smart-contracts?filter=vyper&page=1" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **items** (array) - An array of verified smart contract objects. - **address** (object) - The address of the smart contract. - **hash** (string) - The contract address hash. - **name** (string, optional) - The name of the contract if available. - **compiler_version** (string) - The version of the compiler used. - **language** (string) - The programming language of the contract (e.g., "vyper", "solidity"). - **optimization_enabled** (boolean) - Whether optimization was enabled during compilation. - **tx_count** (integer) - The total number of transactions associated with the contract. - **verified_at** (string) - The timestamp when the contract was verified. - **next_page_params** (object, optional) - Parameters to fetch the next page of results. - **id** (integer) - An identifier for pagination. #### Response Example ```json { "items": [ { "address": {"hash": "0xcontract123", "name": "Curve Pool"}, "compiler_version": "0.3.10", "language": "vyper", "optimization_enabled": true, "tx_count": 52341, "verified_at": "2024-08-15T10:30:00Z" } ], "next_page_params": {"id": 12345} } ``` ``` -------------------------------- ### GET /api/v2/blocks Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves a paginated list of recent blockchain blocks. ```APIDOC ## GET /api/v2/blocks ### Description Retrieves a paginated list of recent blockchain blocks. ### Method GET ### Endpoint `/api/v2/blocks` ### Parameters #### Query Parameters - **page** (integer) - Optional - The page number to retrieve. - **limit** (integer) - Optional - The number of items per page. ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/blocks?page=1&limit=25" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **items** (array) - A list of block objects. - **height** (integer) - The block height. - **hash** (string) - The block hash. - **timestamp** (string) - The block timestamp. - **miner** (object) - Information about the block miner. - **hash** (string) - The miner's address hash. - **gas_used** (string) - The amount of gas used in the block. - **gas_limit** (string) - The gas limit for the block. - **tx_count** (integer) - The number of transactions in the block. - **reward** (string) - The block reward. - **size** (integer) - The size of the block in bytes. - **next_page_params** (object) - Parameters for fetching the next page. - **block_number** (integer) - The block number for the next page. #### Response Example ```json { "items": [ { "height": 1234567, "hash": "0xblock123", "timestamp": "2025-10-07T12:30:45Z", "miner": {"hash": "0xminer123"}, "gas_used": "12500000", "gas_limit": "30000000", "tx_count": 150, "reward": "2000000000000000000", "size": 45678 } ], "next_page_params": {"block_number": 1234566} } ``` ``` -------------------------------- ### Get indexing status Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Check the current progress of the blockchain indexing service. ```APIDOC ## GET /api/v2/main-page/indexing-status ### Description Check blockchain indexing progress. ### Method GET ### Endpoint `/api/v2/main-page/indexing-status` ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/main-page/indexing-status" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **finished_indexing** (boolean) - True if the initial indexing is complete, False otherwise. - **indexed_blocks_ratio** (string) - The ratio of indexed blocks to total blocks. - **indexed_internal_transactions_ratio** (string) - The ratio of indexed internal transactions to total internal transactions. #### Response Example ```json { "finished_indexing": false, "indexed_blocks_ratio": "0.985", "indexed_internal_transactions_ratio": "0.972" } ``` ``` -------------------------------- ### Get Transaction Token Transfers (Bash) Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Lists all token transfers associated with a specific transaction. It sends a GET request to the /api/v2/transactions/{hash}/token-transfers endpoint and returns a JSON array of token transfer objects. ```bash # Get token transfers for a transaction curl -X GET "https://explorer.etherlink.com/api/v2/transactions/0x123abc/token-transfers" \ -H "Accept: application/json" ``` -------------------------------- ### Get Token Holders Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Lists all addresses holding a specific token, along with their balances. ```APIDOC ## GET /api/v2/tokens/{tokenAddress}/holders ### Description Lists addresses holding a specific token. ### Method GET ### Endpoint `/api/v2/tokens/{tokenAddress}/holders` ### Parameters #### Path Parameters - **tokenAddress** (string) - Required - The contract address of the token. #### Query Parameters - **page** (integer) - Optional - Page number for pagination. - **limit** (integer) - Optional - Number of items per page. ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/tokens/0xtoken123/holders?page=1" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **items** (array) - An array of holder objects. - **address** (object) - Holder address details. - **hash** (string) - The address hash. - **name** (string) - Optional name of the address. - **value** (string) - The amount of the token held. - **token_id** (string) - The token ID for NFTs (null for fungible tokens). - **next_page_params** (object) - Parameters for fetching the next page. #### Response Example ```json { "items": [ { "address": {"hash": "0xholder123", "name": "Whale Account"}, "value": "50000000000", "token_id": null }, { "address": {"hash": "0xholder456"}, "value": "25000000000", "token_id": null } ], "next_page_params": {"value": 10000000000, "id": 12345} } ``` ``` -------------------------------- ### Get smart contract details Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieve comprehensive details for a specific smart contract, including its source code, ABI, and implementation details for proxy contracts. ```APIDOC ## GET /api/v2/smart-contracts/:contractAddress ### Description Retrieve complete smart contract information including source code. ### Method GET ### Endpoint `/api/v2/smart-contracts/:contractAddress` ### Parameters #### Path Parameters - **contractAddress** (string) - Required - The address of the smart contract. ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/smart-contracts/0xcontract123" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **name** (string) - The name of the smart contract. - **compiler_version** (string) - The version of the compiler used. - **optimization_enabled** (boolean) - Whether optimization was enabled during compilation. - **optimization_runs** (integer, optional) - The number of runs if optimization was enabled. - **evm_version** (string, optional) - The EVM version targeted. - **verified_at** (string) - The timestamp when the contract was verified. - **source_code** (string, optional) - The source code of the contract. - **abi** (array, optional) - The Application Binary Interface (ABI) of the contract. - **constructor_args** (string, optional) - The constructor arguments in hexadecimal format. - **external_libraries** (array, optional) - Information about external libraries used by the contract. - **name** (string) - The name of the library. - **address** (string) - The address of the library. - **is_vyper_contract** (boolean) - True if the contract was written in Vyper. - **proxy_type** (string, optional) - The type of proxy pattern used (e.g., "eip1967"). - **implementations** (array, optional) - List of implementation addresses for proxy contracts. - **address** (string) - The address of the implementation. - **name** (string, optional) - The name of the implementation. #### Response Example ```json { "name": "UniswapV3Pool", "compiler_version": "0.8.19", "optimization_enabled": true, "optimization_runs": 200, "evm_version": "paris", "verified_at": "2024-09-01T12:00:00Z", "source_code": "pragma solidity ^0.8.19;\n\ncontract UniswapV3Pool {...}", "abi": [...], "constructor_args": "0x000000...", "external_libraries": [ { "name": "SafeMath", "address": "0lib123" } ], "is_vyper_contract": false, "proxy_type": "eip1967", "implementations": [ {"address": "0ximpl456", "name": "Implementation"} ] } ``` ``` -------------------------------- ### Get Transaction Logs (Bash) Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves event logs emitted during the execution of a specific transaction. It sends a GET request to the /api/v2/transactions/{hash}/logs endpoint and returns a JSON array of log objects, including decoded data if available. ```bash # Get transaction logs/events curl -X GET "https://explorer.etherlink.com/api/v2/transactions/0x123abc/logs" \ -H "Accept: application/json" ``` -------------------------------- ### GET /api/v2/transactions/{txHash}/raw-trace Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves the raw trace of a specific transaction, detailing its execution steps. ```APIDOC ## GET /api/v2/transactions/{txHash}/raw-trace ### Description Retrieves the raw trace of a specific transaction, detailing its execution steps. ### Method GET ### Endpoint `/api/v2/transactions/{txHash}/raw-trace` ### Parameters #### Path Parameters - **txHash** (string) - Required - The hash of the transaction. ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/transactions/0x123abc/raw-trace" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **type** (string) - The type of the trace step (e.g., 'call'). - **call_type** (string) - The type of call (e.g., 'call'). - **from** (string) - The originating address. - **to** (string) - The destination address. - **gas** (string) - The total gas allocated for the call. - **gas_used** (string) - The gas used by the call. - **input** (string) - The input data for the call. - **output** (string) - The output data from the call. - **value** (string) - The value transferred in the call. #### Response Example ```json [ { "type": "call", "call_type": "call", "from": "0xcaller123", "to": "0xcontract456", "gas": "100000", "gas_used": "45000", "input": "0xa9059cbb...", "output": "0x0000000000000000000000000000000000000000000000000000000000000001", "value": "0" } ] ``` ``` -------------------------------- ### Get Tokens List Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves a paginated list of tokens on the network, with options for filtering by type and sorting. ```APIDOC ## GET /api/v2/tokens ### Description Retrieves a paginated list of tokens with optional filtering. ### Method GET ### Endpoint `/api/v2/tokens` ### Parameters #### Query Parameters - **type** (string) - Optional - Filters tokens by type (e.g., 'ERC-20', 'ERC-721'). - **page** (integer) - Optional - Page number for pagination. - **limit** (integer) - Optional - Number of items per page. ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/tokens?type=ERC-20&page=1&limit=50" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **items** (array) - An array of token objects. - **address** (string) - Token contract address. - **name** (string) - Token name. - **symbol** (string) - Token symbol. - **decimals** (string) - Token decimals. - **type** (string) - Token type. - **holders** (string) - Number of token holders. - **exchange_rate** (string) - Current exchange rate. - **total_supply** (string) - Total supply of the token. - **icon_url** (string) - URL of the token icon. - **next_page_params** (object) - Parameters for fetching the next page. #### Response Example ```json { "items": [ { "address": "0xtoken123", "name": "USD Coin", "symbol": "USDC", "decimals": "6", "type": "ERC-20", "holders": "125000", "exchange_rate": "1.00", "total_supply": "1000000000000000", "icon_url": "https://..." } ], "next_page_params": {"holder_count": 124999, "name": "Tether"} } ``` ``` -------------------------------- ### Get Transaction Summary (API) Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves a human-readable summary of a transaction, interpreting the actions performed. This is useful for displaying transaction details in a user-friendly format. ```shell curl -X GET "https://explorer.etherlink.com/api/v2/transactions/0x123abc/summary" \ -H "Accept: application/json" ``` -------------------------------- ### GET /api/v2/addresses/{addressHash} Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves detailed information about a specific address or smart contract. ```APIDOC ## GET /api/v2/addresses/{addressHash} ### Description Retrieves detailed information about a specific address or smart contract. ### Method GET ### Endpoint `/api/v2/addresses/{addressHash}` ### Parameters #### Path Parameters - **addressHash** (string) - Required - The hash of the address. ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/addresses/0x1234567890abcdef" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **hash** (string) - The address hash. - **is_contract** (boolean) - Indicates if the address is a contract. - **is_verified** (boolean) - Indicates if the contract code is verified. - **name** (string) - The name of the address or contract (if available). - **creator_address_hash** (string) - The address that created this contract. - **creation_tx_hash** (string) - The hash of the transaction that created this contract. - **token** (object/null) - Token information if the address is a token contract. - **coin_balance** (string) - The native coin balance of the address. - **exchange_rate** (string) - The exchange rate of the native coin (if applicable). - **implementation_address** (string) - The implementation contract address for proxy contracts. - **block_number_balance_updated_at** (integer) - The block number when the balance was last updated. - **has_tokens** (boolean) - Indicates if the address holds any tokens. - **has_token_transfers** (boolean) - Indicates if the address has participated in token transfers. #### Response Example ```json { "hash": "0x1234567890abcdef", "is_contract": true, "is_verified": true, "name": "Uniswap V3 Router", "creator_address_hash": "0xcreator123", "creation_tx_hash": "0xcreation456", "token": null, "coin_balance": "5000000000000000000", "exchange_rate": "0.688662", "implementation_address": "0ximpl789", "block_number_balance_updated_at": 1234567, "has_tokens": true, "has_token_transfers": true } ``` ``` -------------------------------- ### Get Address Information (API) Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves detailed information about an address or smart contract. This includes its balance, contract status, and token information. ```shell curl -X GET "https://explorer.etherlink.com/api/v2/addresses/0x1234567890abcdef" \ -H "Accept: application/json" ``` -------------------------------- ### Get verified contracts counters Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieve statistics and counters related to verified smart contracts on the network. ```APIDOC ## GET /api/v2/smart-contracts/counters ### Description Retrieve statistics about verified smart contracts. ### Method GET ### Endpoint `/api/v2/smart-contracts/counters` ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/smart-contracts/counters" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **smart_contracts** (string) - The total number of smart contracts. - **verified_smart_contracts** (string) - The total number of verified smart contracts. - **new_smart_contracts_24h** (string) - The number of new smart contracts added in the last 24 hours. - **new_verified_smart_contracts_24h** (string) - The number of new verified smart contracts added in the last 24 hours. #### Response Example ```json { "smart_contracts": "12543", "verified_smart_contracts": "8234", "new_smart_contracts_24h": "45", "new_verified_smart_contracts_24h": "23" } ``` ``` -------------------------------- ### Get NFT instance details Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieve detailed information about a specific NFT instance, including its token details, owner, and metadata. ```APIDOC ## GET /api/v2/tokens/:tokenAddress/instances/:instanceId ### Description Retrieve detailed information about a specific NFT instance. ### Method GET ### Endpoint `/api/v2/tokens/:tokenAddress/instances/:instanceId` ### Parameters #### Path Parameters - **tokenAddress** (string) - Required - The contract address of the NFT token. - **instanceId** (string) - Required - The unique identifier of the NFT instance. ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/tokens/0xnft123/instances/5678" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **id** (string) - The instance ID of the NFT. - **token** (object) - Details about the NFT token. - **address** (string) - The contract address of the token. - **name** (string) - The name of the token. - **symbol** (string) - The symbol of the token. - **type** (string) - The token standard (e.g., ERC-721). - **owner** (object) - Information about the owner of the NFT. - **hash** (string) - The address of the owner. - **name** (string, optional) - The name associated with the owner's address. - **metadata** (object) - Metadata associated with the NFT instance. - **name** (string) - The name of the NFT instance. - **description** (string) - A description of the NFT instance. - **image** (string) - URL to the NFT's image. - **external_url** (string, optional) - An external URL for more information. - **attributes** (array) - An array of trait objects. - **trait_type** (string) - The name of the trait. - **value** (string) - The value of the trait. - **is_unique** (boolean) - Indicates if the NFT instance is unique. - **external_app_url** (string, optional) - A URL to the NFT on an external marketplace. #### Response Example ```json { "id": "5678", "token": { "address": "0xnft123", "name": "Bored Ape Yacht Club", "symbol": "BAYC", "type": "ERC-721" }, "owner": { "hash": "0xowner456", "name": "Collector" }, "metadata": { "name": "Bored Ape #5678", "description": "A unique ape", "image": "ipfs://...", "external_url": "https://...", "attributes": [ {"trait_type": "Background", "value": "Blue"}, {"trait_type": "Fur", "value": "Golden"} ] }, "is_unique": true, "external_app_url": "https://opensea.io/assets/..." } ``` ``` -------------------------------- ### Get Token Details Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves detailed information about a specific token, including its supply, holders, and market data. ```APIDOC ## GET /api/v2/tokens/{tokenAddress} ### Description Retrieves detailed information about a specific token. ### Method GET ### Endpoint `/api/v2/tokens/{tokenAddress}` ### Parameters #### Path Parameters - **tokenAddress** (string) - Required - The contract address of the token. ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/tokens/0xtoken123" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **address** (string) - Token contract address. - **name** (string) - Token name. - **symbol** (string) - Token symbol. - **decimals** (string) - Token decimals. - **type** (string) - Token type. - **holders** (string) - Number of token holders. - **exchange_rate** (string) - Current exchange rate. - **total_supply** (string) - Total supply of the token. - **circulating_market_cap** (string) - Circulating market cap. - **icon_url** (string) - URL of the token icon. - **volume_24h** (string) - Trading volume in the last 24 hours. #### Response Example ```json { "address": "0xtoken123", "name": "USD Coin", "symbol": "USDC", "decimals": "6", "type": "ERC-20", "holders": "125000", "exchange_rate": "1.00", "total_supply": "1000000000000000", "circulating_market_cap": "1000000000", "icon_url": "https://...", "volume_24h": "50000000" } ``` ``` -------------------------------- ### Get Market Chart Data Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves historical market data, including closing price and market capitalization. The response includes daily market data points and the available supply. ```bash curl -X GET "https://explorer.etherlink.com/api/v2/stats/charts/market" \ -H "Accept: application/json" ``` -------------------------------- ### Get NFT Instances Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Lists specific NFT token instances for a given ERC-721 or ERC-1155 collection. ```APIDOC ## GET /api/v2/tokens/{tokenAddress}/instances ### Description Lists NFT token instances for a given collection. ### Method GET ### Endpoint `/api/v2/tokens/{tokenAddress}/instances` ### Parameters #### Path Parameters - **tokenAddress** (string) - Required - The contract address of the NFT collection. #### Query Parameters - **page** (integer) - Optional - Page number for pagination. - **limit** (integer) - Optional - Number of items per page. ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/tokens/0xnft123/instances?page=1&limit=24" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **items** (array) - An array of NFT instance objects. - **id** (string) - The token ID of the NFT instance. - **metadata** (object) - Metadata for the NFT instance. - **name** (string) - Name of the NFT. - **image** (string) - URL of the NFT image. - **next_page_params** (object) - Parameters for fetching the next page. #### Response Example ```json { "items": [ { "id": "1234", "metadata": { "name": "Punk #1234", "image": "https://..." } } ], "next_page_params": {} } ``` ``` -------------------------------- ### Get Raw Transaction Trace (API) Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves the raw execution trace of a given transaction. This can be useful for debugging and understanding the low-level execution flow of a transaction. ```shell curl -X GET "https://explorer.etherlink.com/api/v2/transactions/0x123abc/raw-trace" \ -H "Accept: application/json" ``` -------------------------------- ### Get Blocks List (API) Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves a paginated list of recent blocks. This endpoint is useful for monitoring network activity and retrieving block data. ```shell curl -X GET "https://explorer.etherlink.com/api/v2/blocks?page=1&limit=25" \ -H "Accept: application/json" ``` -------------------------------- ### Get Indexing Status using cURL Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Checks the current progress of the blockchain indexing service. Provides a boolean indicating if indexing is finished and the ratio of indexed blocks and internal transactions. ```bash # Get indexing status curl -X GET "https://explorer.etherlink.com/api/v2/main-page/indexing-status" \ -H "Accept: application/json" ``` -------------------------------- ### Get Block Details (API) Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves detailed information about a specific block, identified by its number or hash. This includes block header information, gas usage, and transaction count. ```shell curl -X GET "https://explorer.etherlink.com/api/v2/blocks/1234567" \ -H "Accept: application/json" ``` -------------------------------- ### List Available Line Charts Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Lists the available line chart configurations that can be queried. This endpoint provides a structured overview of different data series available for charting, categorized by sections like accounts and transactions. ```bash curl -X GET "https://explorer.etherlink.com/api/v1/lines" \ -H "Accept: application/json" ``` -------------------------------- ### List Available Line Charts Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Lists all available line chart configurations, categorized by sections like accounts and transactions. ```APIDOC ## GET /api/v1/lines ### Description Lists available line chart configurations. ### Method GET ### Endpoint `https://explorer.etherlink.com/api/v1/lines` ### Parameters #### Query Parameters None #### Request Body None ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v1/lines" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **sections** (array) - An array of objects, each representing a section of charts. - **id** (string) - Unique identifier for the section. - **title** (string) - Human-readable title for the section. - **charts** (array) - An array of chart objects within the section. - **id** (string) - Unique identifier for the chart. - **title** (string) - Human-readable title for the chart. - **description** (string, optional) - Description of the chart data. - **units** (string) - Units of the chart's data values. #### Response Example ```json { "sections": [ { "id": "accounts", "title": "Accounts", "charts": [ { "id": "active_accounts", "title": "Active accounts", "description": "Number of active accounts", "units": "" } ] }, { "id": "transactions", "title": "Transactions", "charts": [ { "id": "average_txn_fee", "title": "Average transaction fee", "units": "XTZ" } ] } ] } ``` ``` -------------------------------- ### Get Verified Smart Contracts using cURL Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Lists verified smart contracts on the EtherLink network. Supports filtering by language (e.g., 'vyper') and pagination. The response includes contract addresses, compiler versions, and verification timestamps. ```bash # Get verified contracts curl -X GET "https://explorer.etherlink.com/api/v2/smart-contracts?filter=vyper&page=1" \ -H "Accept: application/json" ``` -------------------------------- ### Smart Contracts API Source: https://explorer.etherlink.com/api-docs/index Endpoints for retrieving information about verified smart contracts. ```APIDOC ## GET /smart-contracts ### Description Get a list of verified smart contracts. ### Method GET ### Endpoint /smart-contracts ### Parameters ### Request Example ### Response #### Success Response (200) #### Response Example ``` ```APIDOC ## GET /smart-contracts/counters ### Description Get counters for verified smart contracts. ### Method GET ### Endpoint /smart-contracts/counters ### Parameters ### Request Example ### Response #### Success Response (200) #### Response Example ``` ```APIDOC ## GET /smart-contracts/{address_hash} ### Description Get information about a specific verified smart contract. ### Method GET ### Endpoint /smart-contracts/{address_hash} ### Parameters #### Path Parameters - **address_hash** (string) - Required - The hash of the smart contract address. ### Request Example ### Response #### Success Response (200) #### Response Example ``` -------------------------------- ### Get Smart Contract Details using cURL Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves detailed information for a specific verified smart contract, including its source code, ABI, and constructor arguments. Requires the contract's address. Useful for auditing and analysis. ```bash # Get smart contract details curl -X GET "https://explorer.etherlink.com/api/v2/smart-contracts/0xcontract123" \ -H "Accept: application/json" ``` -------------------------------- ### Main Page API Source: https://explorer.etherlink.com/api-docs/index Endpoints for retrieving data relevant to the main page of the explorer. ```APIDOC ## GET /main-page/transactions ### Description Get transactions for the main page. ### Method GET ### Endpoint /main-page/transactions ### Parameters ### Request Example ### Response #### Success Response (200) #### Response Example ``` ```APIDOC ## GET /main-page/blocks ### Description Get blocks for the main page. ### Method GET ### Endpoint /main-page/blocks ### Parameters ### Request Example ### Response #### Success Response (200) #### Response Example ``` ```APIDOC ## GET /main-page/indexing-status ### Description Get the indexing status for the main page. ### Method GET ### Endpoint /main-page/indexing-status ### Parameters ### Request Example ### Response #### Success Response (200) #### Response Example ``` -------------------------------- ### Get NFT Instances via API Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves a paginated list of individual NFT token instances for a given ERC-721 or ERC-1155 token contract. This endpoint allows fetching NFTs by collection address and specifying the page size. ```shell # Get NFT instances for a collection curl -X GET "https://explorer.etherlink.com/api/v2/tokens/0xnft123/instances?page=1&limit=24" \ -H "Accept: application/json" ``` -------------------------------- ### GET /api/v2/blocks/{blockIdentifier}/transactions Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves a list of all transactions included in a specific block. ```APIDOC ## GET /api/v2/blocks/{blockIdentifier}/transactions ### Description Retrieves a list of all transactions included in a specific block. ### Method GET ### Endpoint `/api/v2/blocks/{blockIdentifier}/transactions` ### Parameters #### Path Parameters - **blockIdentifier** (string or integer) - Required - The block number or block hash. ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/blocks/1234567/transactions" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **items** (array) - A list of transaction objects. - **hash** (string) - The transaction hash. - **from** (object) - The sender address. - **hash** (string) - The sender's address hash. - **to** (object) - The recipient address. - **hash** (string) - The recipient's address hash. - **value** (string) - The value transferred in the transaction. - **method** (string) - The method called (if applicable). - **status** (string) - The status of the transaction (e.g., 'ok'). - **gas_used** (string) - The gas used by the transaction. - **next_page_params** (object/null) - Parameters for fetching the next page, or null if no more pages. #### Response Example ```json { "items": [ { "hash": "0xtx123", "from": {"hash": "0xfrom123"}, "to": {"hash": "0xto456"}, "value": "1000000000000000000", "method": "transfer", "status": "ok", "gas_used": "21000" } ], "next_page_params": null } ``` ``` -------------------------------- ### Account Abstraction API Source: https://explorer.etherlink.com/api-docs/index Endpoint for checking the status of account abstraction indexing. ```APIDOC ## GET /proxy/account-abstraction/status ### Description Get the account abstraction indexing status. ### Method GET ### Endpoint /proxy/account-abstraction/status ### Parameters ### Request Example ### Response #### Success Response (200) #### Response Example ``` -------------------------------- ### GET /api/v2/blocks/{blockIdentifier} Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves detailed information about a specific block using its number or hash. ```APIDOC ## GET /api/v2/blocks/{blockIdentifier} ### Description Retrieves detailed information about a specific block using its number or hash. ### Method GET ### Endpoint `/api/v2/blocks/{blockIdentifier}` ### Parameters #### Path Parameters - **blockIdentifier** (string or integer) - Required - The block number or block hash. ### Request Example ```bash curl -X GET "https://explorer.etherlink.com/api/v2/blocks/1234567" \ -H "Accept: application/json" ``` ### Response #### Success Response (200) - **height** (integer) - The block height. - **hash** (string) - The block hash. - **parent_hash** (string) - The hash of the parent block. - **timestamp** (string) - The block timestamp. - **miner** (object) - Information about the block miner. - **hash** (string) - The miner's address hash. - **name** (string) - The miner's name (if available). - **gas_used** (string) - The amount of gas used in the block. - **gas_limit** (string) - The gas limit for the block. - **gas_target_percentage** (number) - The gas target percentage. - **burnt_fees** (string) - The amount of burnt fees in the block. - **tx_count** (integer) - The number of transactions in the block. - **tx_fees** (string) - The total transaction fees in the block. - **total_difficulty** (string) - The total difficulty of the chain up to this block. - **size** (integer) - The size of the block in bytes. - **nonce** (string) - The nonce of the block. #### Response Example ```json { "height": 1234567, "hash": "0xblock123abc", "parent_hash": "0xblock122abc", "timestamp": "2025-10-07T12:30:45Z", "miner": { "hash": "0xminer123", "name": "Mining Pool" }, "gas_used": "12500000", "gas_limit": "30000000", "gas_target_percentage": 41.67, "burnt_fees": "125000000000000000", "tx_count": 150, "tx_fees": "250000000000000000", "total_difficulty": "58750003716598352816469", "size": 45678, "nonce": "0x1234567890abcdef" } ``` ``` -------------------------------- ### Get Tokens List via API Source: https://context7.com/context7/explorer_etherlink_api-docs/llms.txt Retrieves a paginated list of all tokens on the network, with support for filtering by token type (e.g., 'ERC-20') and controlling the number of results per page. Each token entry includes its basic details and market information. ```shell # Get tokens list with ERC-20 filter curl -X GET "https://explorer.etherlink.com/api/v2/tokens?type=ERC-20&page=1&limit=50" \ -H "Accept: application/json" ```