# Table of Contents - [Overview - Chainbase Docs](#overview-chainbase-docs) - [Json Web Token(JWT) - Chainbase Docs](#json-web-token-jwt-chainbase-docs) - [Data Cloud SQL Query (Classic) - Chainbase Docs](#data-cloud-sql-query-classic-chainbase-docs) - [Get Query Status (Alpha) - Chainbase Docs](#get-query-status-alpha-chainbase-docs) - [Execute Queries (Alpha) - Chainbase Docs](#execute-queries-alpha-chainbase-docs) - [Get NFTs owned by address - Chainbase Docs](#get-nfts-owned-by-address-chainbase-docs) - [API Status Code - Chainbase Docs](#api-status-code-chainbase-docs) - [Get Query Results (Alpha) - Chainbase Docs](#get-query-results-alpha-chainbase-docs) - [Get block by number - Chainbase Docs](#get-block-by-number-chainbase-docs) - [Get ERC20 token balances - Chainbase Docs](#get-erc20-token-balances-chainbase-docs) - [Address labels - Chainbase Docs](#address-labels-chainbase-docs) - [Get native token balances - Chainbase Docs](#get-native-token-balances-chainbase-docs) - [Overview - Chainbase Docs](#overview-chainbase-docs) - [Get latest block number - Chainbase Docs](#get-latest-block-number-chainbase-docs) - [Get transaction - Chainbase Docs](#get-transaction-chainbase-docs) - [Resolve ENS domain - Chainbase Docs](#resolve-ens-domain-chainbase-docs) - [Get ENS domains - Chainbase Docs](#get-ens-domains-chainbase-docs) - [Get transactions by account - Chainbase Docs](#get-transactions-by-account-chainbase-docs) - [Get NFT collection metadata - Chainbase Docs](#get-nft-collection-metadata-chainbase-docs) - [Get NFT collection items - Chainbase Docs](#get-nft-collection-items-chainbase-docs) - [Reverse resolve ENS domain - Chainbase Docs](#reverse-resolve-ens-domain-chainbase-docs) - [Contract call - Chainbase Docs](#contract-call-chainbase-docs) - [Get NFT rarity - Chainbase Docs](#get-nft-rarity-chainbase-docs) - [Get top token holders - Chainbase Docs](#get-top-token-holders-chainbase-docs) - [Get NFT owners by collection - Chainbase Docs](#get-nft-owners-by-collection-chainbase-docs) - [Get token holders - Chainbase Docs](#get-token-holders-chainbase-docs) - [Get NFT metadata - Chainbase Docs](#get-nft-metadata-chainbase-docs) - [Get token price - Chainbase Docs](#get-token-price-chainbase-docs) - [Get NFT owner by token - Chainbase Docs](#get-nft-owner-by-token-chainbase-docs) - [Get NFT transfers by collection - Chainbase Docs](#get-nft-transfers-by-collection-chainbase-docs) - [☆ Overview - Chainbase Docs](#-overview-chainbase-docs) - [Get token metadata - Chainbase Docs](#get-token-metadata-chainbase-docs) - [Get token price history - Chainbase Docs](#get-token-price-history-chainbase-docs) - [☆ Overview - Chainbase Docs](#-overview-chainbase-docs) - [Abstracted - Chainbase Docs](#abstracted-chainbase-docs) - [Get NFT owner history by token - Chainbase Docs](#get-nft-owner-history-by-token-chainbase-docs) - [Abstracted - Chainbase Docs](#abstracted-chainbase-docs) - [Abstracted - Chainbase Docs](#abstracted-chainbase-docs) - [Abstracted - Chainbase Docs](#abstracted-chainbase-docs) - [☆ Overview - Chainbase Docs](#-overview-chainbase-docs) - [☆ Overview - Chainbase Docs](#-overview-chainbase-docs) - [☆ Overview - Chainbase Docs](#-overview-chainbase-docs) - [Get token transfers by contract - Chainbase Docs](#get-token-transfers-by-contract-chainbase-docs) - [Raw - Chainbase Docs](#raw-chainbase-docs) - [Abstracted - Chainbase Docs](#abstracted-chainbase-docs) - [☆ Overview - Chainbase Docs](#-overview-chainbase-docs) - [☆ Overview - Chainbase Docs](#-overview-chainbase-docs) - [Abstracted - Chainbase Docs](#abstracted-chainbase-docs) - [☆ Overview - Chainbase Docs](#-overview-chainbase-docs) - [☆ Overview - Chainbase Docs](#-overview-chainbase-docs) - [☆ Overview - Chainbase Docs](#-overview-chainbase-docs) - [Raw - Chainbase Docs](#raw-chainbase-docs) - [Abstracted - Chainbase Docs](#abstracted-chainbase-docs) - [Raw - Chainbase Docs](#raw-chainbase-docs) - [Raw - Chainbase Docs](#raw-chainbase-docs) - [Abstracted - Chainbase Docs](#abstracted-chainbase-docs) - [Raw - Chainbase Docs](#raw-chainbase-docs) - [Raw - Chainbase Docs](#raw-chainbase-docs) - [Raw - Chainbase Docs](#raw-chainbase-docs) - [Welcome - Chainbase Docs](#welcome-chainbase-docs) - [Theia - Chainbase Docs](#theia-chainbase-docs) - [Overview - Chainbase Docs](#overview-chainbase-docs) - [How to Create Task Models - Chainbase Docs](#how-to-create-task-models-chainbase-docs) - [Task Models - Chainbase Docs](#task-models-chainbase-docs) - [Features - Chainbase Docs](#features-chainbase-docs) - [Open APIs - Chainbase Docs](#open-apis-chainbase-docs) - [Thesis - Chainbase Docs](#thesis-chainbase-docs) - [FAQs - Chainbase Docs](#faqs-chainbase-docs) - [Roadmap - Chainbase Docs](#roadmap-chainbase-docs) - [Decentralized DORA Tuning - Chainbase Docs](#decentralized-dora-tuning-chainbase-docs) - [Generate to Defend (G2D) - Chainbase Docs](#generate-to-defend-g2d-chainbase-docs) --- # Overview - Chainbase Docs [Skip to main content](https://docs.chainbase.com/platform/overview#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Data Platform Overview [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [What is Chainbase Data Platform?](https://docs.chainbase.com/platform/overview#what-is-chainbase-data-platform) * [Products & Features](https://docs.chainbase.com/platform/overview#products-%26-features) * [API - Indexed Data](https://docs.chainbase.com/platform/overview#api-indexed-data) * [Datasets](https://docs.chainbase.com/platform/overview#datasets) * [Data Cloud](https://docs.chainbase.com/platform/overview#data-cloud) * [Data Sync - Stream data to your backend](https://docs.chainbase.com/platform/overview#data-sync-stream-data-to-your-backend) Welcome to Chainbase Data Platform docs. All-in-one web3 data infrastructure for indexing, transforming, and utilizing large-scale on-chain data. [​](https://docs.chainbase.com/platform/overview#what-is-chainbase-data-platform) What is Chainbase Data Platform? --------------------------------------------------------------------------------------------------------------------- Chainbase Data Platform is an all-in-one data infrastructure for Web3 that allows you to index, transform, and utilize large-scale on-chain data. It is a platform that provides a suite of tools and services to help you build, manage, and scale your Web3 applications. By leveraging enriched on-chain data and streaming computing technologies across one data infrastructure, Chainbase Data Platform automates the indexing and querying of blockchain data, enabling developers to accomplish complex data tasks with ease. [​](https://docs.chainbase.com/platform/overview#products-&-features) Products & Features -------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/platform/overview#api-indexed-data) API - Indexed Data Chainbase Data Platform provides a powerful API that allows you to access indexed data from the blockchain. The API is designed to be easy to use and provides a wide range of features to help you get the data you need. ### [​](https://docs.chainbase.com/platform/overview#datasets) Datasets Chainbase Data Platform supports a wide range of raw, decoded, and abstracted datasets for you to build next-level apps with cutting-edge protocols today and tomorrow. ### [​](https://docs.chainbase.com/platform/overview#data-cloud) Data Cloud Data Cloud lets you run your low-latency queries through an endpoint to leverage all our indexed datasets for your custom needs. ### [​](https://docs.chainbase.com/platform/overview#data-sync-stream-data-to-your-backend) Data Sync - Stream data to your backend With Data Sync, you can stream the data you need into your own infrastructure in real-time, and then use it to build powerful applications. [Supported Networks](https://docs.chainbase.com/platform/supported-networks/supported-networks) ⌘I --- # Json Web Token(JWT) - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/jtw#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation API Reference Json Web Token(JWT) [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [What is a JWT?](https://docs.chainbase.com/api-reference/jtw#what-is-a-jwt) * [How to use JWT in Chainbase?](https://docs.chainbase.com/api-reference/jtw#how-to-use-jwt-in-chainbase) * [Generate your RSA-256 keys](https://docs.chainbase.com/api-reference/jtw#generate-your-rsa-256-keys) * [Add public key to a Chainbase Project](https://docs.chainbase.com/api-reference/jtw#add-public-key-to-a-chainbase-project) * [Enable JWT feature](https://docs.chainbase.com/api-reference/jtw#enable-jwt-feature) * [Generate the JWT](https://docs.chainbase.com/api-reference/jtw#generate-the-jwt) * [Send requests with JWT](https://docs.chainbase.com/api-reference/jtw#send-requests-with-jwt) * [FAQ](https://docs.chainbase.com/api-reference/jtw#faq) [​](https://docs.chainbase.com/api-reference/jtw#what-is-a-jwt) What is a JWT? --------------------------------------------------------------------------------- JSON Web Tokens (JWTs), also known as JOTs, were created to establish a standard and secure method for two parties to communicate. They offer the advantage of stateless session management, eliminating the need for communication between a backend server and an authorization server. JWTs can be transmitted via an HTTP header, URL, or POST parameter, and their compact size contributes to their efficiency. A JWT comprises three parts: a **Header**, **Payload**, and **Signature**, each separated by a period and derived from a JSON object that is encoded into a text string using BASE64. Further information on this standard is available in [RFC-7519](https://tools.ietf.org/html/rfc7519) . [​](https://docs.chainbase.com/api-reference/jtw#how-to-use-jwt-in-chainbase) How to use JWT in Chainbase? ------------------------------------------------------------------------------------------------------------- Chainbase now provides users with the option to safeguard their blockchain nodes using the JWT authentication method. This feature can be utilized either as a stand-alone security measure or in conjunction with other protective methods offered by Chainbase, including IP whitelisting and domain whitelisting. It should be noted that if multiple authentication services are activated on a project, each method must successfully pass its security check, or the user request will result in an error. ### [​](https://docs.chainbase.com/api-reference/jtw#generate-your-rsa-256-keys) Generate your RSA-256 keys Chainbase supports JWTs created from key pairs using the **RS256** algorithm. Generate your own **RSA-256** public and private key with 2048 length. Below is the example using OpenSSL. Copy # generate rsa key openssl genrsa -out jwtRSA256-private.pem 2048 openssl rsa -in jwtRSA256-private.pem -pubout -outform PEM -out jwtRSA256-public.pem ### [​](https://docs.chainbase.com/api-reference/jtw#add-public-key-to-a-chainbase-project) Add public key to a Chainbase Project Step 1: Login -> Dashboard -> Choose a project -> Security (tab) Step 2: Click “Add” button and Input the public key generated in the previous step. Step 3: You will obtain the public key ID after clicking “Create” button. ![](https://files.readme.io/7831acc-image.png) Input the public key ### [​](https://docs.chainbase.com/api-reference/jtw#enable-jwt-feature) Enable JWT feature After enabling the JWT feature, it is mandatory to include the JWT in the header of all subsequent requests. ![](https://files.readme.io/d0ac1f2-image.png) Require JWT for all requests ### [​](https://docs.chainbase.com/api-reference/jtw#generate-the-jwt) Generate the JWT To generate a JWT, the following components are required: **Header**, **Payload**, and **Signature**. An example of how to generate a JWT using [https://jwt.io/](https://jwt.io/) is provided below. ![](https://files.readme.io/bad111d-image.png) Encode and verify JWT using the debugger Step 1: Choose **RS256** algorithm Step 2: Paste the following JSON to the JWT tool to encode the **Header** component. Copy { "alg": "RS256", "typ": "JWT", "kid": "e7af4467-00f1-480e-97d7-6490d7f749b9" } Here are the meanings of the fields: | Field | Description | Example | | --- | --- | --- | | alg | The signing algorithm being used | RS256 | | typ | The type of the token | JWT | | kid | The key id copied from Chainbase | XXX | Step 3: Paste the following JSON to the JWT tool to encode the **Payload** component. Copy { "aud": "chainbase.com", "exp": 1690523501 } Here are the meanings of the fields: | Field | Description | Example | | --- | --- | --- | | aud | The audience of this JWT | chainbase.com | | exp | The expiry time. Unix timestamp format. | 1690523501 | Step 4: Input your private key to generate the **Signature** component. Congrats! Now you get the encoded JWT. You can verify your token by providing your public key to the JWT debugger. ### [​](https://docs.chainbase.com/api-reference/jtw#send-requests-with-jwt) Send requests with JWT After generating the JWT, you would need to add the JWT as a part of your request header `-H "Authorization: Bearer` entry. Copy curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer " \ --data '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}' \ "https://ethereum-mainnet.s.chainbase.online/v1/" In the event that the JWT feature has been activated but requests are sent without a JWT or with an invalid JWT, an HTTP **401** error status code will be returned along with the following response. [​](https://docs.chainbase.com/api-reference/jtw#faq) FAQ ------------------------------------------------------------ > Q: Which APIs are JWT supported on? A: JWT is supported on all Chainbase API services. > Q: How do I discard a JWT before it expires? A: If your JWT might have been exposed and you want to prevent it from being used, you can remove the public key from the security tab. > Q: Can I add multiple JWTs to a project? A: Yes. If multiple JWTs are active, the request should only match one of the available keys to succeed. Chainbase now supports up to 3 keys. > Q: Which cipher does Chanbase support? A: RSA 256 (RS256) is supported at this time. > Q: What expiration date should I choose? A: You can set any expiration date in the future you’d like. Generally, the shorter the expiration time, the more secure your JWT is. [API Status Code](https://docs.chainbase.com/api-reference/status-code) [Get latest block number](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-latest-block-number) ⌘I --- # Data Cloud SQL Query (Classic) - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/sql-api/data-cloud-sql-query#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Classic(Deprecated) Data Cloud SQL Query (Classic) [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) cURL cURL Copy curl --request POST \ --url https://api.chainbase.com/api/v1/dw/query \ --header 'Content-Type: ' \ --header 'X-API-KEY: ' \ --data ' { "query": "select number, transactions_count from ethereum.blocks order by number desc limit 3000;" } ' 400 Copy { "message": "sql is empty", "code": 1001, "data": [] } POST / dw / query Try it cURL cURL Copy curl --request POST \ --url https://api.chainbase.com/api/v1/dw/query \ --header 'Content-Type: ' \ --header 'X-API-KEY: ' \ --data ' { "query": "select number, transactions_count from ethereum.blocks order by number desc limit 3000;" } ' 400 Copy { "message": "sql is empty", "code": 1001, "data": [] } [​](https://docs.chainbase.com/api-reference/sql-api/data-cloud-sql-query#example) Example --------------------------------------------------------------------------------------------- Query the hashes of the last 3,000 blocks in Ethereum and the number of transactions in each block: Copy curl -X "POST" "https://api.chainbase.online/v1/dw/query" \ -H 'X-API-KEY: YOUR-API-KEY ' \ -H 'Content-Type: application/json; charset=utf-8' \ -d $'{ "query": "select number, transactions_count from ethereum.blocks order by number desc limit 3000;" }' If there are more than 1000 rows, you need to paginate through the`task_id` and `page` to get all the results: Copy curl -X "POST" "https://api.chainbase.online/v1/dw/query" \ -H 'X-API-KEY: YOUR-API-KEY ' \ -H 'Content-Type: application/json; charset=utf-8' \ -d $'{ "task_id": "xxxxxxxxxxxxxxxxxxxxx", "page": 2 }' 🚧 Note 1. When `quey_id` is passed in, the content of query will be ignored 2. The executed request generates a `task_id`, which is valid for 1 hour 3. A maximum of 100,000 pieces of data are allowed to be obtained from the request, and 1,000 results are paginated per page #### Headers [​](https://docs.chainbase.com/api-reference/sql-api/data-cloud-sql-query#parameter-x-api-key) X-API-KEY string required [​](https://docs.chainbase.com/api-reference/sql-api/data-cloud-sql-query#parameter-content-type) Content-Type string required Example: `"application/json"` #### Body application/json [​](https://docs.chainbase.com/api-reference/sql-api/data-cloud-sql-query#body-query) query string Example: `"select number, transactions_count from ethereum.blocks order by number desc limit 3000;"` #### Response 200 OK [Get Query Results (Alpha)](https://docs.chainbase.com/api-reference/sql-api/get-query-results) ⌘I --- # Get Query Status (Alpha) - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/sql-api/get-query-status#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Alpha Get Query Status (Alpha) [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) cURL cURL Copy curl --request GET \ --url https://api.chainbase.com/api/v1/execution/{execution_id}/status \ --header 'Content-Type: ' \ --header 'X-API-KEY: ' 200 400 Copy { "code": 200, "data": [\ {\ "executionId": "4676570409dea44d1d9f8414508b7744",\ "status": "FINISHED",\ "queryId": 0,\ "message": "",\ "progress": 100,\ "submittedAt": "2023-12-01T08:48:30.486Z",\ "expiresAt": "2023-12-01T09:18:31.030Z",\ "executionStartedAt": "2023-12-01T08:48:31.014Z",\ "executionEndedAt": "2023-12-01T08:48:31.030Z"\ }\ ], "message": "success" } GET / execution / {execution\_id} / status Try it cURL cURL Copy curl --request GET \ --url https://api.chainbase.com/api/v1/execution/{execution_id}/status \ --header 'Content-Type: ' \ --header 'X-API-KEY: ' 200 400 Copy { "code": 200, "data": [\ {\ "executionId": "4676570409dea44d1d9f8414508b7744",\ "status": "FINISHED",\ "queryId": 0,\ "message": "",\ "progress": 100,\ "submittedAt": "2023-12-01T08:48:30.486Z",\ "expiresAt": "2023-12-01T09:18:31.030Z",\ "executionStartedAt": "2023-12-01T08:48:31.014Z",\ "executionEndedAt": "2023-12-01T08:48:31.030Z"\ }\ ], "message": "success" } #### Headers [​](https://docs.chainbase.com/api-reference/sql-api/get-query-status#parameter-x-api-key) X-API-KEY string required [​](https://docs.chainbase.com/api-reference/sql-api/get-query-status#parameter-content-type) Content-Type string required Example: `"application/json"` #### Path Parameters [​](https://docs.chainbase.com/api-reference/sql-api/get-query-status#parameter-execution-id) execution\_id string required The ID of the execution #### Response 200 application/json OK [​](https://docs.chainbase.com/api-reference/sql-api/get-query-status#response-code) code integer Example: `200` [​](https://docs.chainbase.com/api-reference/sql-api/get-query-status#response-data) data object\[\] Show child attributes [​](https://docs.chainbase.com/api-reference/sql-api/get-query-status#response-message) message string Example: `"success"` [Execute Queries (Alpha)](https://docs.chainbase.com/api-reference/sql-api/execute-queries) [Get Query Results (Alpha)](https://docs.chainbase.com/api-reference/sql-api/get-query-results) ⌘I --- # Execute Queries (Alpha) - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/sql-api/execute-queries#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Alpha Execute Queries (Alpha) [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) cURL cURL Copy curl --request POST \ --url https://api.chainbase.com/api/v1/query/execute \ --header 'Content-Type: ' \ --header 'X-API-KEY: ' \ --data ' { "sql": "SELECT * FROM ethereum.blocks LIMIT 10" } ' 400 Copy { "message": "sql is empty", "code": 1001, "data": [] } POST / query / execute Try it cURL cURL Copy curl --request POST \ --url https://api.chainbase.com/api/v1/query/execute \ --header 'Content-Type: ' \ --header 'X-API-KEY: ' \ --data ' { "sql": "SELECT * FROM ethereum.blocks LIMIT 10" } ' 400 Copy { "message": "sql is empty", "code": 1001, "data": [] } #### Headers [​](https://docs.chainbase.com/api-reference/sql-api/execute-queries#parameter-x-api-key) X-API-KEY string required [​](https://docs.chainbase.com/api-reference/sql-api/execute-queries#parameter-content-type) Content-Type string required Example: `"application/json"` #### Body application/json [​](https://docs.chainbase.com/api-reference/sql-api/execute-queries#body-sql) sql string Example: `"SELECT * FROM ethereum.blocks LIMIT 10"` #### Response 200 OK [Address labels](https://docs.chainbase.com/api-reference/web3-api/basic/labels/get-address-labels) [Get Query Status (Alpha)](https://docs.chainbase.com/api-reference/sql-api/get-query-status) ⌘I --- # Get NFTs owned by address - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/balance/nft-balances/get-nfts-owned-by-address#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Balance API Get NFTs owned by address [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get NFTs owned by address cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/account/nfts \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": [\ {\ "contract_address": "",\ "erc_type": "",\ "mint_time": "2023-11-07T05:31:56Z",\ "mint_transaction_hash": "",\ "name": "",\ "owner": "",\ "symbol": "",\ "token_id": "",\ "token_uri": "",\ "image_uri": "",\ "total": 123,\ "total_string": "",\ "metadata": {},\ "traits": "",\ "rarity_score": 123,\ "rarity_rank": 123,\ "floor_prices": [\ {\ "value": "",\ "symbol": "",\ "address": ""\ }\ ]\ }\ ], "next_page": 123, "count": 123 } GET / v1 / account / nfts Try it Get NFTs owned by address cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/account/nfts \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": [\ {\ "contract_address": "",\ "erc_type": "",\ "mint_time": "2023-11-07T05:31:56Z",\ "mint_transaction_hash": "",\ "name": "",\ "owner": "",\ "symbol": "",\ "token_id": "",\ "token_uri": "",\ "image_uri": "",\ "total": 123,\ "total_string": "",\ "metadata": {},\ "traits": "",\ "rarity_score": 123,\ "rarity_rank": 123,\ "floor_prices": [\ {\ "value": "",\ "symbol": "",\ "address": ""\ }\ ]\ }\ ], "next_page": 123, "count": 123 } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/balance/nft-balances/get-nfts-owned-by-address#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/balance/nft-balances/get-nfts-owned-by-address#parameter-chain-id) chain\_id string required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/balance/nft-balances/get-nfts-owned-by-address#parameter-address) address string required A hex string referencing a wallet address [​](https://docs.chainbase.com/api-reference/web3-api/balance/nft-balances/get-nfts-owned-by-address#parameter-contract-address) contract\_address string The address of the NFT contract, or filter multiple addresses, (max 100), eg:contract\_address=0xed5af388653567af2f388e6224dc7c4b3241c544,0x1a92f7381b9f03921564a437210bb9396471050c The address of the NFT contract, or filter multiple addresses, (max 100), eg:contract\_address=0xed5af388653567af2f388e6224dc7c4b3241c545,0x1a92f7381b9f03921564a437210bb9396471050c [​](https://docs.chainbase.com/api-reference/web3-api/balance/nft-balances/get-nfts-owned-by-address#parameter-page) page integer default:1 The page offset Required range: `x >= 1` [​](https://docs.chainbase.com/api-reference/web3-api/balance/nft-balances/get-nfts-owned-by-address#parameter-limit) limit integer default:20 The desired page size limit. Less or equal than 100 Required range: `1 <= x <= 100` #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/balance/nft-balances/get-nfts-owned-by-address#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/balance/nft-balances/get-nfts-owned-by-address#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/balance/nft-balances/get-nfts-owned-by-address#response-data) data NFTDetail · object\[\] Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/balance/nft-balances/get-nfts-owned-by-address#response-next-page) next\_page integer [​](https://docs.chainbase.com/api-reference/web3-api/balance/nft-balances/get-nfts-owned-by-address#response-count) count integer [Get ERC20 token balances](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-erc20-token-balances) [Get native token balances](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-native-token-balances) ⌘I --- # API Status Code - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/status-code#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation API Reference API Status Code [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [JSON-RPC API](https://docs.chainbase.com/api-reference/status-code#json-rpc-api) * [HTTP API](https://docs.chainbase.com/api-reference/status-code#http-api) [​](https://docs.chainbase.com/api-reference/status-code#json-rpc-api) JSON-RPC API -------------------------------------------------------------------------------------- | Status Code | Description | Message | | --- | --- | --- | | \-32000 | Error code flag for backward compatibility. | Something happened, Please try again Later | | \-32600 | This is an invalid request, check the request package. | Invalid Request | | \-32601 | The corresponding method is not found. You need to check whether this is the interface supported by the client standard. | Method not found | | \-32602 | This method uses the wrong parameter. (Check to see if the parameter is forgotten or too many.) | Invalid params | | \-32603 | There may be a network voice fault. Try again later. | Internal error | | \-32700 | The parsing process sounds an error. | Parse error | [​](https://docs.chainbase.com/api-reference/status-code#http-api) HTTP API ------------------------------------------------------------------------------ | Status Code | Message | Description | | --- | --- | --- | | 200 | OK | Everything worked as expected. | | 400 | Bad Request | The request was unacceptable, often due to missing a required parameter. | | 401 | Unauthorized | The request requires authentication. After logging in, the server may return this response to the page. | | 402 | Request Failed | The parameters were valid but the request failed. | | 403 | Forbidden | The server rejects the request. | | 404 | Not Found | The requested resource doesn’t exist. | | 429 | Too Many Requests | Too many requests hit the API request rate limit. | | 500, 502, 503, 504 | Server Errors | Something went wrong on Chainbase’s end. (These are rare.) | [Overview](https://docs.chainbase.com/api-reference/overview) [Json Web Token(JWT)](https://docs.chainbase.com/api-reference/jtw) ⌘I --- # Get Query Results (Alpha) - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/sql-api/get-query-results#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Alpha Get Query Results (Alpha) [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) cURL cURL Copy curl --request GET \ --url https://api.chainbase.com/api/v1/execution/{execution_id}/results \ --header 'Content-Type: ' \ --header 'X-API-KEY: ' GET / execution / {execution\_id} / results Try it cURL cURL Copy curl --request GET \ --url https://api.chainbase.com/api/v1/execution/{execution_id}/results \ --header 'Content-Type: ' \ --header 'X-API-KEY: ' #### Headers [​](https://docs.chainbase.com/api-reference/sql-api/get-query-results#parameter-x-api-key) X-API-KEY string required [​](https://docs.chainbase.com/api-reference/sql-api/get-query-results#parameter-content-type) Content-Type string required Example: `"application/json"` #### Path Parameters [​](https://docs.chainbase.com/api-reference/sql-api/get-query-results#parameter-execution-id) execution\_id string required The ID of the execution #### Response 200 OK [Get Query Status (Alpha)](https://docs.chainbase.com/api-reference/sql-api/get-query-status) [Data Cloud SQL Query (Classic)](https://docs.chainbase.com/api-reference/sql-api/data-cloud-sql-query) ⌘I --- # Get block by number - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-block-by-number#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Basic API Get block by number [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get block by number cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/block/detail \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": { "number": 123, "hash": "", "parent_hash": "", "timestamp": "", "difficulty": "", "extra_data": "", "gas_limit": 123, "gas_used": 123, "base_fee_per_gas": 123, "miner": "", "mix_hash": "", "nonce": "", "receipts_root": "", "sha3_uncles": "", "size": 123, "state_root": "", "transactions_root": "", "transactions_count": 123, "uncles_count": 123, "withdrawals_count": 123 }, "code": 0, "message": "ok" } GET / v1 / block / detail Try it Get block by number cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/block/detail \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": { "number": 123, "hash": "", "parent_hash": "", "timestamp": "", "difficulty": "", "extra_data": "", "gas_limit": 123, "gas_used": 123, "base_fee_per_gas": 123, "miner": "", "mix_hash": "", "nonce": "", "receipts_root": "", "sha3_uncles": "", "size": 123, "state_root": "", "transactions_root": "", "transactions_count": 123, "uncles_count": 123, "withdrawals_count": 123 }, "code": 0, "message": "ok" } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-block-by-number#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-block-by-number#parameter-chain-id) chain\_id integer required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-block-by-number#parameter-number) number string required Block number #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-block-by-number#response-data) data BlockDetail · object required Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-block-by-number#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-block-by-number#response-message) message string default:ok [Get latest block number](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-latest-block-number) [Get transaction](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transaction) ⌘I --- # Get ERC20 token balances - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-erc20-token-balances#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Balance API Get ERC20 token balances [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get ERC20 token balances cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/account/tokens \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": [\ {\ "contract_address": "",\ "decimals": 123,\ "name": "",\ "symbol": "",\ "balance": "",\ "total_supply": "",\ "logos": [\ {\ "uri": "",\ "width": 123,\ "height": 123\ }\ ],\ "urls": [\ {\ "name": "",\ "url": ""\ }\ ],\ "current_usd_price": 123\ }\ ], "next_page": 123, "count": 123 } GET / v1 / account / tokens Try it Get ERC20 token balances cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/account/tokens \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": [\ {\ "contract_address": "",\ "decimals": 123,\ "name": "",\ "symbol": "",\ "balance": "",\ "total_supply": "",\ "logos": [\ {\ "uri": "",\ "width": 123,\ "height": 123\ }\ ],\ "urls": [\ {\ "name": "",\ "url": ""\ }\ ],\ "current_usd_price": 123\ }\ ], "next_page": 123, "count": 123 } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-erc20-token-balances#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-erc20-token-balances#parameter-chain-id) chain\_id string required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-erc20-token-balances#parameter-address) address string required A hex string referencing a wallet address [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-erc20-token-balances#parameter-contract-address) contract\_address string The address of the token contract, or filter multiple addresses, (max 100), eg:contract\_address=0xdac17f958d2ee523a2206206994597c13d831ec7,0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-erc20-token-balances#parameter-limit) limit integer default:20 The desired page size limit. Less or equal than 100 Required range: `1 <= x <= 100` [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-erc20-token-balances#parameter-page) page integer default:1 The page offset Required range: `x >= 1` #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-erc20-token-balances#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-erc20-token-balances#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-erc20-token-balances#response-data) data TokenMeta · object\[\] Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-erc20-token-balances#response-next-page) next\_page integer [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-erc20-token-balances#response-count) count integer [Contract call](https://docs.chainbase.com/api-reference/web3-api/basic/contract/contract-call) [Get NFTs owned by address](https://docs.chainbase.com/api-reference/web3-api/balance/nft-balances/get-nfts-owned-by-address) ⌘I --- # Address labels - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/basic/labels/get-address-labels#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Label API Address labels [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Address labels cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/address/labels \ --header 'x-api-key: ' 200 400 500 Copy { "data": { "address": [\ {\ "category": "social"\ },\ {\ "tags": [\ "a"\ ]\ }\ ] }, "code": 0, "message": "ok" } GET / v1 / address / labels Try it Address labels cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/address/labels \ --header 'x-api-key: ' 200 400 500 Copy { "data": { "address": [\ {\ "category": "social"\ },\ {\ "tags": [\ "a"\ ]\ }\ ] }, "code": 0, "message": "ok" } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/basic/labels/get-address-labels#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/basic/labels/get-address-labels#parameter-chain-id) chain\_id integer required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/basic/labels/get-address-labels#parameter-address) address string required A hex string referencing a wallet address #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/basic/labels/get-address-labels#response-data) data object required Show child attributes Example: { "address": [{ "category": "social" }, { "tags": ["a"] }]} [​](https://docs.chainbase.com/api-reference/web3-api/basic/labels/get-address-labels#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/basic/labels/get-address-labels#response-message) message string default:ok [Resolve ENS domain](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/resolve-ens-domain) [Execute Queries (Alpha)](https://docs.chainbase.com/api-reference/sql-api/execute-queries) ⌘I --- # Get native token balances - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-native-token-balances#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Balance API Get native token balances [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get native token balances cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/account/balance \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": "", "code": 0, "message": "ok" } GET / v1 / account / balance Try it Get native token balances cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/account/balance \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": "", "code": 0, "message": "ok" } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-native-token-balances#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-native-token-balances#parameter-chain-id) chain\_id integer required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) Example: `1` [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-native-token-balances#parameter-address) address string required A hex string referencing a wallet address [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-native-token-balances#parameter-to-block) to\_block string block decimal number, hex number or 'latest' #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-native-token-balances#response-data) data string required [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-native-token-balances#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-native-token-balances#response-message) message string default:ok [Get NFTs owned by address](https://docs.chainbase.com/api-reference/web3-api/balance/nft-balances/get-nfts-owned-by-address) [Get token metadata](https://docs.chainbase.com/api-reference/web3-api/token/token-metadata/get-token-metadata) ⌘I --- # Overview - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/overview#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation API Reference Overview [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [Web3 API](https://docs.chainbase.com/api-reference/overview#web3-api) * [Advanced API Suite](https://docs.chainbase.com/api-reference/overview#advanced-api-suite) 📘 Don’t have an API key?Go to [console.chainbase.com](https://console.chainbase.com/) to create an account and a new API key.For demo purposes, you can use the key “demo” to test out the API. [​](https://docs.chainbase.com/api-reference/overview#web3-api) Web3 API --------------------------------------------------------------------------- Web3 API is a suite of **REST** and **Stream** APIs that simplify your web3 development process with seamless access to on-chain and off-chain data. No matter what you’re building, our Web3 API will provide the necessary data support, including balance, transaction history, ownership, and price information. [Basic API\ ---------](https://docs.chainbase.com/api-reference/web3-api/basic) [NFT API\ -------](https://docs.chainbase.com/api-reference/web3-api/nft) [Token API\ ---------](https://docs.chainbase.com/api-reference/web3-api/token) [Balance API\ -----------](https://docs.chainbase.com/api-reference/web3-api/balance) [Domain API\ ----------](https://docs.chainbase.com/api-reference/web3-api/domain) [Inscription API\ ---------------](https://docs.chainbase.com/api-reference/web3-api/inscription) [​](https://docs.chainbase.com/api-reference/overview#advanced-api-suite) Advanced API Suite ----------------------------------------------------------------------------------------------- [Webhook API\ -----------](https://docs.chainbase.com/api-reference/webhook-api) [SQL API\ -------](https://docs.chainbase.com/api-reference/sql-api) [API Status Code](https://docs.chainbase.com/api-reference/status-code) ⌘I --- # Get latest block number - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-latest-block-number#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Basic API Get latest block number [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get latest block number cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/block/number/latest \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": { "number": 123, "hash": "" }, "code": 0, "message": "ok" } GET / v1 / block / number / latest Try it Get latest block number cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/block/number/latest \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": { "number": 123, "hash": "" }, "code": 0, "message": "ok" } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-latest-block-number#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-latest-block-number#parameter-chain-id) chain\_id integer required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-latest-block-number#response-data) data GetLastBlockNumberData · object required Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-latest-block-number#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-latest-block-number#response-message) message string default:ok [Json Web Token(JWT)](https://docs.chainbase.com/api-reference/jtw) [Get block by number](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-block-by-number) ⌘I --- # Get transaction - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transaction#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Basic API Get transaction [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get transaction cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/tx/detail \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": { "type": 123, "status": 123, "block_number": 123, "block_timestamp": "2023-11-07T05:31:56Z", "transaction_hash": "", "transaction_index": 123, "from_address": "", "to_address": "", "value": "", "input": "", "nonce": 123, "contract_address": "", "gas": 123, "gas_price": 123, "gas_used": 123, "effective_gas_price": 123, "cumulative_gas_used": 123, "max_fee_per_gas": 123, "max_priority_fee_per_gas": 123, "tx_fee": 123, "saving_fee": 123, "burnt_fee": 123 }, "code": 0, "message": "ok" } GET / v1 / tx / detail Try it Get transaction cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/tx/detail \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": { "type": 123, "status": 123, "block_number": 123, "block_timestamp": "2023-11-07T05:31:56Z", "transaction_hash": "", "transaction_index": 123, "from_address": "", "to_address": "", "value": "", "input": "", "nonce": 123, "contract_address": "", "gas": 123, "gas_price": 123, "gas_used": 123, "effective_gas_price": 123, "cumulative_gas_used": 123, "max_fee_per_gas": 123, "max_priority_fee_per_gas": 123, "tx_fee": 123, "saving_fee": 123, "burnt_fee": 123 }, "code": 0, "message": "ok" } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transaction#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transaction#parameter-chain-id) chain\_id integer required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transaction#parameter-hash) hash string The transaction hash [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transaction#parameter-block-number) block\_number integer Block number of the transaction [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transaction#parameter-tx-index) tx\_index integer Index of the transaction #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transaction#response-data) data TxDetail · object required Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transaction#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transaction#response-message) message string default:ok [Get block by number](https://docs.chainbase.com/api-reference/web3-api/basic/block/get-block-by-number) [Get transactions by account](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account) ⌘I --- # Resolve ENS domain - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/resolve-ens-domain#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Domain API Resolve ENS domain [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Resolve ENS domain cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/ens/records \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": { "registrant_time": "2023-11-07T05:31:56Z", "expiration_time": "2023-11-07T05:31:56Z", "token_id": "", "text_records": {}, "name": "", "address": "", "registrant": "", "owner": "", "resolver": "" } } GET / v1 / ens / records Try it Resolve ENS domain cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/ens/records \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": { "registrant_time": "2023-11-07T05:31:56Z", "expiration_time": "2023-11-07T05:31:56Z", "token_id": "", "text_records": {}, "name": "", "address": "", "registrant": "", "owner": "", "resolver": "" } } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/resolve-ens-domain#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/resolve-ens-domain#parameter-chain-id) chain\_id integer required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/resolve-ens-domain#parameter-domain) domain string required ENS Domain [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/resolve-ens-domain#parameter-to-block) to\_block string block decimal number, hex number or 'latest' #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/resolve-ens-domain#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/resolve-ens-domain#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/resolve-ens-domain#response-data) data ENS · object Show child attributes [Reverse resolve ENS domain](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/reverse-resolve-ens-domain) [Address labels](https://docs.chainbase.com/api-reference/web3-api/basic/labels/get-address-labels) ⌘I --- # Get ENS domains - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/get-ens-domains#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Domain API Get ENS domains [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get ENS domains cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/account/ens \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": [\ {\ "registrant_time": "2023-11-07T05:31:56Z",\ "expiration_time": "2023-11-07T05:31:56Z",\ "token_id": "",\ "text_records": {},\ "name": "",\ "address": "",\ "registrant": "",\ "owner": "",\ "resolver": ""\ }\ ], "next_page": 123, "count": 123 } GET / v1 / account / ens Try it Get ENS domains cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/account/ens \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": [\ {\ "registrant_time": "2023-11-07T05:31:56Z",\ "expiration_time": "2023-11-07T05:31:56Z",\ "token_id": "",\ "text_records": {},\ "name": "",\ "address": "",\ "registrant": "",\ "owner": "",\ "resolver": ""\ }\ ], "next_page": 123, "count": 123 } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/get-ens-domains#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/get-ens-domains#parameter-chain-id) chain\_id integer required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/get-ens-domains#parameter-address) address string required A hex string referencing a wallet address [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/get-ens-domains#parameter-to-block) to\_block string block decimal number, hex number or 'latest' #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/get-ens-domains#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/get-ens-domains#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/get-ens-domains#response-data) data ENS · object\[\] Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/get-ens-domains#response-next-page) next\_page integer [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/get-ens-domains#response-count) count integer [Get NFT collection metadata](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-metadata) [Reverse resolve ENS domain](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/reverse-resolve-ens-domain) ⌘I --- # Get transactions by account - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Basic API Get transactions by account [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get transactions by account cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/account/txs \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": [\ {\ "type": 123,\ "status": 123,\ "block_number": 123,\ "block_timestamp": "2023-11-07T05:31:56Z",\ "transaction_hash": "",\ "transaction_index": 123,\ "from_address": "",\ "to_address": "",\ "value": "",\ "input": "",\ "nonce": 123,\ "contract_address": "",\ "gas": 123,\ "gas_price": 123,\ "gas_used": 123,\ "effective_gas_price": 123,\ "cumulative_gas_used": 123,\ "max_fee_per_gas": 123,\ "max_priority_fee_per_gas": 123,\ "tx_fee": 123,\ "saving_fee": 123,\ "burnt_fee": 123\ }\ ], "next_page": 123, "count": 123 } GET / v1 / account / txs Try it Get transactions by account cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/account/txs \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": [\ {\ "type": 123,\ "status": 123,\ "block_number": 123,\ "block_timestamp": "2023-11-07T05:31:56Z",\ "transaction_hash": "",\ "transaction_index": 123,\ "from_address": "",\ "to_address": "",\ "value": "",\ "input": "",\ "nonce": 123,\ "contract_address": "",\ "gas": 123,\ "gas_price": 123,\ "gas_used": 123,\ "effective_gas_price": 123,\ "cumulative_gas_used": 123,\ "max_fee_per_gas": 123,\ "max_priority_fee_per_gas": 123,\ "tx_fee": 123,\ "saving_fee": 123,\ "burnt_fee": 123\ }\ ], "next_page": 123, "count": 123 } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#parameter-chain-id) chain\_id string required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#parameter-address) address string required A hex string referencing a wallet address [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#parameter-from-block) from\_block string Inclusive from block number (hex string or int) [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#parameter-to-block) to\_block string Inclusive to block number (hex string, int, or 'latest') [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#parameter-from-timestamp) from\_timestamp integer Inclusive from block number (hex string or int) [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#parameter-end-timestamp) end\_timestamp integer Inclusive end timestamp [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#parameter-page) page integer default:1 The page offset Required range: `x >= 1` [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#parameter-limit) limit integer default:20 The desired page size limit. Less or equal than 100 Required range: `1 <= x <= 100` #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#response-data) data TxDetail · object\[\] Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#response-next-page) next\_page integer [​](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account#response-count) count integer [Get transaction](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transaction) [Contract call](https://docs.chainbase.com/api-reference/web3-api/basic/contract/contract-call) ⌘I --- # Get NFT collection metadata - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-metadata#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation NFT API Get NFT collection metadata [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get NFT collection metadata cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/collection \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": { "contract_address": "", "name": "", "symbol": "", "description": "", "owner": "", "erc_type": "", "banner_image_url": "", "image_url": "", "deploy_block_number": 123, "media_info": "", "traits": "", "floor_prices": [\ {\ "value": "",\ "symbol": "",\ "address": ""\ }\ ] } } GET / v1 / nft / collection Try it Get NFT collection metadata cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/collection \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": { "contract_address": "", "name": "", "symbol": "", "description": "", "owner": "", "erc_type": "", "banner_image_url": "", "image_url": "", "deploy_block_number": 123, "media_info": "", "traits": "", "floor_prices": [\ {\ "value": "",\ "symbol": "",\ "address": ""\ }\ ] } } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-metadata#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-metadata#parameter-chain-id) chain\_id string required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-metadata#parameter-contract-address) contract\_address string required The address of the NFT contract #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-metadata#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-metadata#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-metadata#response-data) data NFTCollection · object Show child attributes [Get NFT collection items](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-items) [Get ENS domains](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/get-ens-domains) ⌘I --- # Get NFT collection items - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-items#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation NFT API Get NFT collection items [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get NFT collection items cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/collection/items \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ {\ "blockchain": "",\ "contract_address": "",\ "token_id": "",\ "erc_type": "",\ "name": "",\ "owner": "",\ "symbol": "",\ "image_uri": "",\ "mint_time": 123,\ "mint_transaction_hash": "",\ "token_uri": "",\ "metadata": "",\ "traits": "",\ "rarity_score": 123,\ "rarity_rank": 123\ }\ ], "code": 0, "message": "ok", "next_page": 123, "count": 123 } GET / v1 / nft / collection / items Try it Get NFT collection items cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/collection/items \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ {\ "blockchain": "",\ "contract_address": "",\ "token_id": "",\ "erc_type": "",\ "name": "",\ "owner": "",\ "symbol": "",\ "image_uri": "",\ "mint_time": 123,\ "mint_transaction_hash": "",\ "token_uri": "",\ "metadata": "",\ "traits": "",\ "rarity_score": 123,\ "rarity_rank": 123\ }\ ], "code": 0, "message": "ok", "next_page": 123, "count": 123 } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-items#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-items#parameter-chain-id) chain\_id string required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-items#parameter-contract-address) contract\_address string required The address of the NFT contract [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-items#parameter-page) page integer default:1 The page offset Required range: `x >= 1` [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-items#parameter-limit) limit integer default:20 The desired page size limit. Less or equal than 100 Required range: `1 <= x <= 100` #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-items#response-data) data NFTAsset · object\[\] required Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-items#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-items#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-items#response-next-page) next\_page integer [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-items#response-count) count integer [Get NFT transfers by collection](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection) [Get NFT collection metadata](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-metadata) ⌘I --- # Reverse resolve ENS domain - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/reverse-resolve-ens-domain#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Domain API Reverse resolve ENS domain [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Reverse resolve ENS domain cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/ens/reverse \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": [\ {\ "registrant_time": "2023-11-07T05:31:56Z",\ "expiration_time": "2023-11-07T05:31:56Z",\ "token_id": "",\ "text_records": {},\ "name": "",\ "address": "",\ "registrant": "",\ "owner": "",\ "resolver": ""\ }\ ] } GET / v1 / ens / reverse Try it Reverse resolve ENS domain cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/ens/reverse \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": [\ {\ "registrant_time": "2023-11-07T05:31:56Z",\ "expiration_time": "2023-11-07T05:31:56Z",\ "token_id": "",\ "text_records": {},\ "name": "",\ "address": "",\ "registrant": "",\ "owner": "",\ "resolver": ""\ }\ ] } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/reverse-resolve-ens-domain#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/reverse-resolve-ens-domain#parameter-chain-id) chain\_id integer required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/reverse-resolve-ens-domain#parameter-address) address string required A hex string referencing a wallet address [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/reverse-resolve-ens-domain#parameter-to-block) to\_block string block decimal number, hex number or 'latest' #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/reverse-resolve-ens-domain#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/reverse-resolve-ens-domain#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/reverse-resolve-ens-domain#response-data) data ENS · object\[\] Show child attributes [Get ENS domains](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/get-ens-domains) [Resolve ENS domain](https://docs.chainbase.com/api-reference/web3-api/domain/ens-domain-endpoints/resolve-ens-domain) ⌘I --- # Contract call - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/basic/contract/contract-call#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Basic API Contract call [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Contract call cURL Copy curl --request POST \ --url https://api.chainbase.online/v1/contract/call \ --header 'Content-Type: application/json' \ --header 'x-api-key: ' \ --data ' { "chain_id": 1, "contract_address": "0xed5af388653567af2f388e6224dc7c4b3241c544", "function_name": "name", "abi": "[\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"maxBatchSize_\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"collectionSize_\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"amountForAuctionAndDev_\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"amountForDevs_\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"constructor\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"owner\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"approved\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"Approval\",\n \"type\": \"event\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"owner\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"operator\",\n \"type\": \"address\"\n },\n {\n \"indexed\": false,\n \"internalType\": \"bool\",\n \"name\": \"approved\",\n \"type\": \"bool\"\n }\n ],\n \"name\": \"ApprovalForAll\",\n \"type\": \"event\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"previousOwner\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"newOwner\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"OwnershipTransferred\",\n \"type\": \"event\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"from\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"to\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"Transfer\",\n \"type\": \"event\"\n },\n {\n \"inputs\": [],\n \"name\": \"AUCTION_DROP_INTERVAL\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"AUCTION_DROP_PER_STEP\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"AUCTION_END_PRICE\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"AUCTION_PRICE_CURVE_LENGTH\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"AUCTION_START_PRICE\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"allowlist\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"allowlistMint\",\n \"outputs\": [],\n \"stateMutability\": \"payable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"amountForAuctionAndDev\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"amountForDevs\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"to\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"approve\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"quantity\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"auctionMint\",\n \"outputs\": [],\n \"stateMutability\": \"payable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"owner\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"balanceOf\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"quantity\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"devMint\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint64\",\n \"name\": \"mintlistPriceWei\",\n \"type\": \"uint64\"\n },\n {\n \"internalType\": \"uint64\",\n \"name\": \"publicPriceWei\",\n \"type\": \"uint64\"\n },\n {\n \"internalType\": \"uint32\",\n \"name\": \"publicSaleStartTime\",\n \"type\": \"uint32\"\n }\n ],\n \"name\": \"endAuctionAndSetupNonAuctionSaleInfo\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"getApproved\",\n \"outputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"\",\n \"type\": \"address\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"_saleStartTime\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"getAuctionPrice\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"getOwnershipData\",\n \"outputs\": [\n {\n \"components\": [\n {\n \"internalType\": \"address\",\n \"name\": \"addr\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint64\",\n \"name\": \"startTimestamp\",\n \"type\": \"uint64\"\n }\n ],\n \"internalType\": \"struct ERC721A.TokenOwnership\",\n \"name\": \"\",\n \"type\": \"tuple\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"owner\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"operator\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"isApprovedForAll\",\n \"outputs\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"\",\n \"type\": \"bool\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"publicPriceWei\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"publicSaleKey\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"publicSaleStartTime\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"isPublicSaleOn\",\n \"outputs\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"\",\n \"type\": \"bool\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"maxPerAddressDuringMint\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"name\",\n \"outputs\": [\n {\n \"internalType\": \"string\",\n \"name\": \"\",\n \"type\": \"string\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"nextOwnerToExplicitlySet\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"owner\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"numberMinted\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"owner\",\n \"outputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"\",\n \"type\": \"address\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"ownerOf\",\n \"outputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"\",\n \"type\": \"address\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"quantity\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"callerPublicSaleKey\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"publicSaleMint\",\n \"outputs\": [],\n \"stateMutability\": \"payable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"renounceOwnership\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"from\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"to\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"safeTransferFrom\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"from\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"to\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"bytes\",\n \"name\": \"_data\",\n \"type\": \"bytes\"\n }\n ],\n \"name\": \"safeTransferFrom\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"saleConfig\",\n \"outputs\": [\n {\n \"internalType\": \"uint32\",\n \"name\": \"auctionSaleStartTime\",\n \"type\": \"uint32\"\n },\n {\n \"internalType\": \"uint32\",\n \"name\": \"publicSaleStartTime\",\n \"type\": \"uint32\"\n },\n {\n \"internalType\": \"uint64\",\n \"name\": \"mintlistPrice\",\n \"type\": \"uint64\"\n },\n {\n \"internalType\": \"uint64\",\n \"name\": \"publicPrice\",\n \"type\": \"uint64\"\n },\n {\n \"internalType\": \"uint32\",\n \"name\": \"publicSaleKey\",\n \"type\": \"uint32\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address[]\",\n \"name\": \"addresses\",\n \"type\": \"address[]\"\n },\n {\n \"internalType\": \"uint256[]\",\n \"name\": \"numSlots\",\n \"type\": \"uint256[]\"\n }\n ],\n \"name\": \"seedAllowlist\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"operator\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"bool\",\n \"name\": \"approved\",\n \"type\": \"bool\"\n }\n ],\n \"name\": \"setApprovalForAll\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint32\",\n \"name\": \"timestamp\",\n \"type\": \"uint32\"\n }\n ],\n \"name\": \"setAuctionSaleStartTime\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"string\",\n \"name\": \"baseURI\",\n \"type\": \"string\"\n }\n ],\n \"name\": \"setBaseURI\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"quantity\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"setOwnersExplicit\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint32\",\n \"name\": \"key\",\n \"type\": \"uint32\"\n }\n ],\n \"name\": \"setPublicSaleKey\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"bytes4\",\n \"name\": \"interfaceId\",\n \"type\": \"bytes4\"\n }\n ],\n \"name\": \"supportsInterface\",\n \"outputs\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"\",\n \"type\": \"bool\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"symbol\",\n \"outputs\": [\n {\n \"internalType\": \"string\",\n \"name\": \"\",\n \"type\": \"string\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"index\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"tokenByIndex\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"owner\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"index\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"tokenOfOwnerByIndex\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"tokenURI\",\n \"outputs\": [\n {\n \"internalType\": \"string\",\n \"name\": \"\",\n \"type\": \"string\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"totalSupply\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"from\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"to\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"transferFrom\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"newOwner\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"transferOwnership\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"withdrawMoney\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n }\n]\n", "to_block": "latest" } ' 200 400 401 403 404 422 500 Copy { "data": [\ ""\ ], "code": 0, "message": "ok" } POST / v1 / contract / call Try it Contract call cURL Copy curl --request POST \ --url https://api.chainbase.online/v1/contract/call \ --header 'Content-Type: application/json' \ --header 'x-api-key: ' \ --data ' { "chain_id": 1, "contract_address": "0xed5af388653567af2f388e6224dc7c4b3241c544", "function_name": "name", "abi": "[\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"maxBatchSize_\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"collectionSize_\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"amountForAuctionAndDev_\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"amountForDevs_\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"constructor\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"owner\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"approved\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"Approval\",\n \"type\": \"event\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"owner\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"operator\",\n \"type\": \"address\"\n },\n {\n \"indexed\": false,\n \"internalType\": \"bool\",\n \"name\": \"approved\",\n \"type\": \"bool\"\n }\n ],\n \"name\": \"ApprovalForAll\",\n \"type\": \"event\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"previousOwner\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"newOwner\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"OwnershipTransferred\",\n \"type\": \"event\"\n },\n {\n \"anonymous\": false,\n \"inputs\": [\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"from\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"address\",\n \"name\": \"to\",\n \"type\": \"address\"\n },\n {\n \"indexed\": true,\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"Transfer\",\n \"type\": \"event\"\n },\n {\n \"inputs\": [],\n \"name\": \"AUCTION_DROP_INTERVAL\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"AUCTION_DROP_PER_STEP\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"AUCTION_END_PRICE\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"AUCTION_PRICE_CURVE_LENGTH\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"AUCTION_START_PRICE\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"allowlist\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"allowlistMint\",\n \"outputs\": [],\n \"stateMutability\": \"payable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"amountForAuctionAndDev\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"amountForDevs\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"to\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"approve\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"quantity\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"auctionMint\",\n \"outputs\": [],\n \"stateMutability\": \"payable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"owner\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"balanceOf\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"quantity\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"devMint\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint64\",\n \"name\": \"mintlistPriceWei\",\n \"type\": \"uint64\"\n },\n {\n \"internalType\": \"uint64\",\n \"name\": \"publicPriceWei\",\n \"type\": \"uint64\"\n },\n {\n \"internalType\": \"uint32\",\n \"name\": \"publicSaleStartTime\",\n \"type\": \"uint32\"\n }\n ],\n \"name\": \"endAuctionAndSetupNonAuctionSaleInfo\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"getApproved\",\n \"outputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"\",\n \"type\": \"address\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"_saleStartTime\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"getAuctionPrice\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"getOwnershipData\",\n \"outputs\": [\n {\n \"components\": [\n {\n \"internalType\": \"address\",\n \"name\": \"addr\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint64\",\n \"name\": \"startTimestamp\",\n \"type\": \"uint64\"\n }\n ],\n \"internalType\": \"struct ERC721A.TokenOwnership\",\n \"name\": \"\",\n \"type\": \"tuple\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"owner\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"operator\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"isApprovedForAll\",\n \"outputs\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"\",\n \"type\": \"bool\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"publicPriceWei\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"publicSaleKey\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"publicSaleStartTime\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"isPublicSaleOn\",\n \"outputs\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"\",\n \"type\": \"bool\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"maxPerAddressDuringMint\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"name\",\n \"outputs\": [\n {\n \"internalType\": \"string\",\n \"name\": \"\",\n \"type\": \"string\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"nextOwnerToExplicitlySet\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"owner\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"numberMinted\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"owner\",\n \"outputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"\",\n \"type\": \"address\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"ownerOf\",\n \"outputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"\",\n \"type\": \"address\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"quantity\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"callerPublicSaleKey\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"publicSaleMint\",\n \"outputs\": [],\n \"stateMutability\": \"payable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"renounceOwnership\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"from\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"to\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"safeTransferFrom\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"from\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"to\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n },\n {\n \"internalType\": \"bytes\",\n \"name\": \"_data\",\n \"type\": \"bytes\"\n }\n ],\n \"name\": \"safeTransferFrom\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"saleConfig\",\n \"outputs\": [\n {\n \"internalType\": \"uint32\",\n \"name\": \"auctionSaleStartTime\",\n \"type\": \"uint32\"\n },\n {\n \"internalType\": \"uint32\",\n \"name\": \"publicSaleStartTime\",\n \"type\": \"uint32\"\n },\n {\n \"internalType\": \"uint64\",\n \"name\": \"mintlistPrice\",\n \"type\": \"uint64\"\n },\n {\n \"internalType\": \"uint64\",\n \"name\": \"publicPrice\",\n \"type\": \"uint64\"\n },\n {\n \"internalType\": \"uint32\",\n \"name\": \"publicSaleKey\",\n \"type\": \"uint32\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address[]\",\n \"name\": \"addresses\",\n \"type\": \"address[]\"\n },\n {\n \"internalType\": \"uint256[]\",\n \"name\": \"numSlots\",\n \"type\": \"uint256[]\"\n }\n ],\n \"name\": \"seedAllowlist\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"operator\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"bool\",\n \"name\": \"approved\",\n \"type\": \"bool\"\n }\n ],\n \"name\": \"setApprovalForAll\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint32\",\n \"name\": \"timestamp\",\n \"type\": \"uint32\"\n }\n ],\n \"name\": \"setAuctionSaleStartTime\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"string\",\n \"name\": \"baseURI\",\n \"type\": \"string\"\n }\n ],\n \"name\": \"setBaseURI\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"quantity\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"setOwnersExplicit\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint32\",\n \"name\": \"key\",\n \"type\": \"uint32\"\n }\n ],\n \"name\": \"setPublicSaleKey\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"bytes4\",\n \"name\": \"interfaceId\",\n \"type\": \"bytes4\"\n }\n ],\n \"name\": \"supportsInterface\",\n \"outputs\": [\n {\n \"internalType\": \"bool\",\n \"name\": \"\",\n \"type\": \"bool\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"symbol\",\n \"outputs\": [\n {\n \"internalType\": \"string\",\n \"name\": \"\",\n \"type\": \"string\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"index\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"tokenByIndex\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"owner\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"index\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"tokenOfOwnerByIndex\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"tokenURI\",\n \"outputs\": [\n {\n \"internalType\": \"string\",\n \"name\": \"\",\n \"type\": \"string\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"totalSupply\",\n \"outputs\": [\n {\n \"internalType\": \"uint256\",\n \"name\": \"\",\n \"type\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"from\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"address\",\n \"name\": \"to\",\n \"type\": \"address\"\n },\n {\n \"internalType\": \"uint256\",\n \"name\": \"tokenId\",\n \"type\": \"uint256\"\n }\n ],\n \"name\": \"transferFrom\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [\n {\n \"internalType\": \"address\",\n \"name\": \"newOwner\",\n \"type\": \"address\"\n }\n ],\n \"name\": \"transferOwnership\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n },\n {\n \"inputs\": [],\n \"name\": \"withdrawMoney\",\n \"outputs\": [],\n \"stateMutability\": \"nonpayable\",\n \"type\": \"function\"\n }\n]\n", "to_block": "latest" } ' 200 400 401 403 404 422 500 Copy { "data": [\ ""\ ], "code": 0, "message": "ok" } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/basic/contract/contract-call#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Body application/json [​](https://docs.chainbase.com/api-reference/web3-api/basic/contract/contract-call#body-chain-id) chain\_id integer required [​](https://docs.chainbase.com/api-reference/web3-api/basic/contract/contract-call#body-contract-address) contract\_address string required [​](https://docs.chainbase.com/api-reference/web3-api/basic/contract/contract-call#body-function-name) function\_name string required [​](https://docs.chainbase.com/api-reference/web3-api/basic/contract/contract-call#body-abi) abi string required [​](https://docs.chainbase.com/api-reference/web3-api/basic/contract/contract-call#body-params) params any\[\] required [​](https://docs.chainbase.com/api-reference/web3-api/basic/contract/contract-call#body-to-block) to\_block string required #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/basic/contract/contract-call#response-data) data any\[\] required [​](https://docs.chainbase.com/api-reference/web3-api/basic/contract/contract-call#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/basic/contract/contract-call#response-message) message string default:ok [Get transactions by account](https://docs.chainbase.com/api-reference/web3-api/basic/transaction/get-transactions-by-account) [Get ERC20 token balances](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-erc20-token-balances) ⌘I --- # Get NFT rarity - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation NFT API Get NFT rarity [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get NFT rarity cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/rarity \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": [\ {\ "token_id": "",\ "rank": 123,\ "rank_share": 123,\ "score": 123,\ "total_supply": 123,\ "properties": [\ {\ "trait_type": "",\ "value": "",\ "rate": 123,\ "total": 123\ }\ ]\ }\ ], "next_page": 123, "count": 123 } GET / v1 / nft / rarity Try it Get NFT rarity cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/rarity \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": [\ {\ "token_id": "",\ "rank": 123,\ "rank_share": 123,\ "score": 123,\ "total_supply": 123,\ "properties": [\ {\ "trait_type": "",\ "value": "",\ "rate": 123,\ "total": 123\ }\ ]\ }\ ], "next_page": 123, "count": 123 } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity#parameter-chain-id) chain\_id string required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity#parameter-contract-address) contract\_address string required The address of the NFT contract [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity#parameter-token-id) token\_id string NFT token id in hex or num string [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity#parameter-rank-min) rank\_min integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity#parameter-rank-max) rank\_max integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity#parameter-page) page integer default:1 The page offset Required range: `x >= 1` [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity#parameter-limit) limit integer default:20 Required range: `1 <= x <= 10000` #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity#response-data) data NFTRarity · object\[\] Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity#response-next-page) next\_page integer [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity#response-count) count integer [Get NFT owner by token](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-by-token) [Get NFT owner history by token](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token) ⌘I --- # Get top token holders - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-top-token-holders#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Token API Get top token holders [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get top token holders cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/token/top-holders \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ {\ "wallet_address": "",\ "original_amount": "",\ "amount": "",\ "usd_value": ""\ }\ ], "code": 0, "message": "ok", "next_page": 123, "count": 123 } GET / v1 / token / top-holders Try it Get top token holders cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/token/top-holders \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ {\ "wallet_address": "",\ "original_amount": "",\ "amount": "",\ "usd_value": ""\ }\ ], "code": 0, "message": "ok", "next_page": 123, "count": 123 } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-top-token-holders#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-top-token-holders#parameter-chain-id) chain\_id string required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-top-token-holders#parameter-contract-address) contract\_address string required The address of the token contract [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-top-token-holders#parameter-page) page integer default:1 The page offset Required range: `x >= 1` [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-top-token-holders#parameter-limit) limit integer default:20 The desired page size limit. Less or equal than 100 Required range: `1 <= x <= 100` #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-top-token-holders#response-data) data Erc20BalanceDTO · object\[\] required Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-top-token-holders#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-top-token-holders#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-top-token-holders#response-next-page) next\_page integer [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-top-token-holders#response-count) count integer [Get token metadata](https://docs.chainbase.com/api-reference/web3-api/token/token-metadata/get-token-metadata) [Get token holders](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-token-holders) ⌘I --- # Get NFT owners by collection - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owners-by-collection#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation NFT API Get NFT owners by collection [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get NFT owners by collection cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/owners \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ {\ "address": "",\ "total": 123\ }\ ], "code": 0, "message": "ok" } GET / v1 / nft / owners Try it Get NFT owners by collection cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/owners \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ {\ "address": "",\ "total": 123\ }\ ], "code": 0, "message": "ok" } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owners-by-collection#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owners-by-collection#parameter-chain-id) chain\_id integer required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owners-by-collection#parameter-contract-address) contract\_address string required The address of the NFT contract [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owners-by-collection#parameter-page) page integer default:1 The page offset Required range: `x >= 1` [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owners-by-collection#parameter-limit) limit integer default:20 The desired page size limit. Less or equal than 100 Required range: `1 <= x <= 100` #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owners-by-collection#response-data) data NFTOwners · object\[\] required Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owners-by-collection#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owners-by-collection#response-message) message string default:ok [Get NFT metadata](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-metadata) [Get NFT owner by token](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-by-token) ⌘I --- # Get token holders - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-token-holders#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Token API Get token holders [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get token holders cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/token/holders \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ ""\ ], "code": 0, "message": "ok", "next_page": 123, "count": 123 } GET / v1 / token / holders Try it Get token holders cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/token/holders \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ ""\ ], "code": 0, "message": "ok", "next_page": 123, "count": 123 } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-token-holders#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-token-holders#parameter-chain-id) chain\_id integer required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-token-holders#parameter-contract-address) contract\_address string required The address of the token contract [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-token-holders#parameter-page) page integer default:1 The page offset Required range: `x >= 1` [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-token-holders#parameter-limit) limit integer default:20 The desired page size limit. Less or equal than 100 Required range: `1 <= x <= 100` #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-token-holders#response-data) data string\[\] required [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-token-holders#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-token-holders#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-token-holders#response-next-page) next\_page integer [​](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-token-holders#response-count) count integer [Get top token holders](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-top-token-holders) [Get token price](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price) ⌘I --- # Get NFT metadata - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-metadata#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation NFT API Get NFT metadata [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get NFT metadata cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/metadata \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": { "blockchain": "", "contract_address": "", "token_id": "", "erc_type": "", "name": "", "owner": "", "symbol": "", "image_uri": "", "mint_time": 123, "mint_transaction_hash": "", "token_uri": "", "metadata": "", "traits": "", "rarity_score": 123, "rarity_rank": 123 } } GET / v1 / nft / metadata Try it Get NFT metadata cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/metadata \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": { "blockchain": "", "contract_address": "", "token_id": "", "erc_type": "", "name": "", "owner": "", "symbol": "", "image_uri": "", "mint_time": 123, "mint_transaction_hash": "", "token_uri": "", "metadata": "", "traits": "", "rarity_score": 123, "rarity_rank": 123 } } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-metadata#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-metadata#parameter-chain-id) chain\_id string required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-metadata#parameter-contract-address) contract\_address string required The address of the NFT contract [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-metadata#parameter-token-id) token\_id string required NFT token id in hex or num string #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-metadata#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-metadata#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-metadata#response-data) data NFTAsset · object Show child attributes [Get token transfers by contract](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract) [Get NFT owners by collection](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owners-by-collection) ⌘I --- # Get token price - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Token API Get token price [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get token price cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/token/price \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": { "price": 123, "symbol": "", "decimals": 123, "updated_at": "2023-11-07T05:31:56Z" } } GET / v1 / token / price Try it Get token price cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/token/price \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": { "price": 123, "symbol": "", "decimals": 123, "updated_at": "2023-11-07T05:31:56Z" } } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price#parameter-chain-id) chain\_id string required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price#parameter-contract-address) contract\_address string required The address of the token contract #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price#response-data) data TokenPrice · object Show child attributes [Get token holders](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-token-holders) [Get token price history](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price-history) ⌘I --- # Get NFT owner by token - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-by-token#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation NFT API Get NFT owner by token [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get NFT owner by token cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/owner \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": "", "code": 0, "message": "ok" } GET / v1 / nft / owner Try it Get NFT owner by token cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/owner \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": "", "code": 0, "message": "ok" } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-by-token#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-by-token#parameter-chain-id) chain\_id integer required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-by-token#parameter-contract-address) contract\_address string required The address of the NFT contract [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-by-token#parameter-token-id) token\_id string required NFT token id in hex or num string [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-by-token#parameter-to-block) to\_block string block decimal number, hex number or 'latest' #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-by-token#response-data) data string required [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-by-token#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-by-token#response-message) message string default:ok [Get NFT owners by collection](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owners-by-collection) [Get NFT rarity](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity) ⌘I --- # Get NFT transfers by collection - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation NFT API Get NFT transfers by collection [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get NFT transfers by collection cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/transfers \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ {\ "block_number": 123,\ "block_timestamp": "",\ "transaction_hash": "",\ "transaction_index": 123,\ "log_index": 123,\ "from_address": "",\ "to_address": "",\ "operator_address": "",\ "token_id": "",\ "value": ""\ }\ ], "code": 0, "message": "ok", "next_page": 123, "count": 123 } GET / v1 / nft / transfers Try it Get NFT transfers by collection cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/transfers \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ {\ "block_number": 123,\ "block_timestamp": "",\ "transaction_hash": "",\ "transaction_index": 123,\ "log_index": 123,\ "from_address": "",\ "to_address": "",\ "operator_address": "",\ "token_id": "",\ "value": ""\ }\ ], "code": 0, "message": "ok", "next_page": 123, "count": 123 } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#parameter-chain-id) chain\_id integer required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#parameter-contract-address) contract\_address string The address of the NFT contract [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#parameter-token-id) token\_id string NFT token id in hex or num string [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#parameter-address) address string A hex string referencing a wallet address [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#parameter-from-block) from\_block string Inclusive from block number (hex string or int) [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#parameter-to-block) to\_block string Inclusive to block number (hex string, int, or 'latest') [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#parameter-from-timestamp) from\_timestamp integer Inclusive start timestamp [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#parameter-end-timestamp) end\_timestamp integer Inclusive end timestamp [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#parameter-page) page integer default:1 The page offset Required range: `x >= 1` [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#parameter-limit) limit integer default:20 The desired page size limit. Less or equal than 100 Required range: `1 <= x <= 100` #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#response-data) data NFTTransfers · object\[\] required Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#response-next-page) next\_page integer [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection#response-count) count integer [Get NFT owner history by token](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token) [Get NFT collection items](https://docs.chainbase.com/api-reference/web3-api/nft/nft-collections/get-nft-collection-items) ⌘I --- # ☆ Overview - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Arbitrum/Overview#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Arbitrum ☆ Overview [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [The Major Features of the Arbitrum Blockchain](https://docs.chainbase.com/catalog/Arbitrum/Overview#the-major-features-of-the-arbitrum-blockchain) Arbitrum is a Layer 2 scaling solution for Ethereum, designed to improve the performance and reduce the costs associated with decentralized applications (DApps) on the Ethereum network. Launched by Offchain Labs, Arbitrum enhances Ethereum’s scalability while maintaining its security and decentralization. By using rollup technology, Arbitrum enables faster and cheaper transactions, making it an attractive platform for developers and users alike. ### [​](https://docs.chainbase.com/catalog/Arbitrum/Overview#the-major-features-of-the-arbitrum-blockchain) The Major Features of the Arbitrum Blockchain 1. **Scalability**: Arbitrum significantly increases the scalability of Ethereum by aggregating multiple transactions into a single batch, which is then processed off-chain before being committed to the Ethereum main chain. This rollup technique reduces the load on the Ethereum network, allowing for thousands of transactions per second while maintaining low latency. 2. **Low Fees**: By processing transactions off-chain and only recording the final state on the Ethereum main chain, Arbitrum drastically reduces transaction fees. This cost efficiency makes it more affordable for users and developers to interact with decentralized applications, fostering greater adoption and usage. 3. **EVM Compatibility**: Arbitrum is fully compatible with the Ethereum Virtual Machine (EVM), enabling developers to deploy their existing Ethereum-based smart contracts and DApps on Arbitrum with minimal modifications. This compatibility ensures a seamless transition for developers and allows them to leverage Ethereum’s extensive ecosystem of tools and libraries. [Raw](https://docs.chainbase.com/catalog/Tron/Raw) [Abstracted](https://docs.chainbase.com/catalog/Arbitrum/Abstracted) ⌘I --- # Get token metadata - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/token/token-metadata/get-token-metadata#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Token API Get token metadata [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get token metadata cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/token/metadata \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": { "contract_address": "", "decimals": 123, "name": "", "symbol": "", "total_supply": "", "logos": [\ {\ "uri": "",\ "width": 123,\ "height": 123\ }\ ], "urls": [\ {\ "name": "",\ "url": ""\ }\ ], "current_usd_price": 123 } } GET / v1 / token / metadata Try it Get token metadata cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/token/metadata \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "code": 0, "message": "ok", "data": { "contract_address": "", "decimals": 123, "name": "", "symbol": "", "total_supply": "", "logos": [\ {\ "uri": "",\ "width": 123,\ "height": 123\ }\ ], "urls": [\ {\ "name": "",\ "url": ""\ }\ ], "current_usd_price": 123 } } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/token/token-metadata/get-token-metadata#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/token/token-metadata/get-token-metadata#parameter-chain-id) chain\_id string required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/token/token-metadata/get-token-metadata#parameter-contract-address) contract\_address string required The address of the token contract #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/token/token-metadata/get-token-metadata#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/token/token-metadata/get-token-metadata#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/token/token-metadata/get-token-metadata#response-data) data TokenMetaBase · object Show child attributes [Get native token balances](https://docs.chainbase.com/api-reference/web3-api/balance/token-balances/get-native-token-balances) [Get top token holders](https://docs.chainbase.com/api-reference/web3-api/token/token-holders/get-top-token-holders) ⌘I --- # Get token price history - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price-history#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Token API Get token price history [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get token price history cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/token/price/history \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ {\ "price": 123,\ "symbol": "",\ "decimals": 123,\ "updated_at": "2023-11-07T05:31:56Z"\ }\ ], "code": 0, "message": "ok" } GET / v1 / token / price / history Try it Get token price history cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/token/price/history \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ {\ "price": 123,\ "symbol": "",\ "decimals": 123,\ "updated_at": "2023-11-07T05:31:56Z"\ }\ ], "code": 0, "message": "ok" } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price-history#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price-history#parameter-chain-id) chain\_id string required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price-history#parameter-contract-address) contract\_address string required The address of the token contract [​](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price-history#parameter-from-timestamp) from\_timestamp integer required Inclusive start timestamp [​](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price-history#parameter-end-timestamp) end\_timestamp integer required Inclusive end timestamp, the interval should not exceed 90 days #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price-history#response-data) data TokenPrice · object\[\] required Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price-history#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price-history#response-message) message string default:ok [Get token price](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price) [Get token transfers by contract](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract) ⌘I --- # ☆ Overview - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Avalanche/Overview#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Avalanche ☆ Overview [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [The Major Features of the Avalanche Blockchain](https://docs.chainbase.com/catalog/Avalanche/Overview#the-major-features-of-the-avalanche-blockchain) Avalanche is a decentralized platform designed to support the creation and deployment of highly scalable and customizable blockchain networks and decentralized applications (DApps). Launched in 2020 by Ava Labs, Avalanche aims to provide high throughput, low latency, and low transaction fees, addressing some of the key limitations faced by earlier blockchain networks. ### [​](https://docs.chainbase.com/catalog/Avalanche/Overview#the-major-features-of-the-avalanche-blockchain) The Major Features of the Avalanche Blockchain 1. **High Throughput and Low Latency**: Avalanche is designed to handle thousands of transactions per second with sub-second finality. This high throughput and low latency make it suitable for a wide range of applications, from financial services to gaming and beyond. Avalanche’s consensus protocol, Avalanche Consensus, is a novel approach that ensures quick and secure agreement among nodes. 2. **Customizable Blockchains**: Avalanche allows developers to create custom blockchain networks, known as subnets, tailored to specific applications and use cases. These subnets can have their own rulesets, virtual machines, and economic models, providing flexibility and customization that cater to the needs of different projects. This modularity enables the creation of highly specialized blockchain networks. 3. **Interoperability**: Avalanche is designed to be highly interoperable, allowing assets and data to move seamlessly between different subnets and external blockchain networks. The Avalanche-X framework provides tools and protocols to facilitate cross-chain communication, ensuring that assets can be transferred securely and efficiently across various blockchain ecosystems. [Raw](https://docs.chainbase.com/catalog/Polygon/Raw) [Abstracted](https://docs.chainbase.com/catalog/Avalanche/Abstracted) ⌘I --- # Abstracted - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Arbitrum/Abstracted#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Arbitrum Abstracted [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1.arbitrum.token\_metas](https://docs.chainbase.com/catalog/Arbitrum/Abstracted#1-arbitrum-token-metas) * [Table Description](https://docs.chainbase.com/catalog/Arbitrum/Abstracted#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/Arbitrum/Abstracted#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/Arbitrum/Abstracted#table-sample) [​](https://docs.chainbase.com/catalog/Arbitrum/Abstracted#1-arbitrum-token-metas) 1.arbitrum.token\_metas ------------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Arbitrum/Abstracted#table-description) Table Description Token metadata in the context of blockchain and cryptocurrencies typically refers to the set of data that describes the characteristics and details of a particular token. This metadata can include information such as the token’s name, symbol, total supply, decimal precision, and other details relevant to its function and identity on the blockchain. It’s essentially the descriptive data that gives context and identity to a token, distinguishing it from other tokens within the same blockchain ecosystem. Metadata is crucial for understanding the nature and purpose of a token, especially in applications like wallets, exchanges, and decentralized applications (dApps) where users interact with various types of tokens. ### [​](https://docs.chainbase.com/catalog/Arbitrum/Abstracted#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Arbitrum/Abstracted#table-sample) Table Sample [☆ Overview](https://docs.chainbase.com/catalog/Arbitrum/Overview) [Raw](https://docs.chainbase.com/catalog/Arbitrum/Raw) ⌘I --- # Get NFT owner history by token - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation NFT API Get NFT owner history by token [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get NFT owner history by token cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/owner/history \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ {\ "block_number": 123,\ "block_timestamp": "",\ "transaction_hash": "",\ "transaction_index": 123,\ "log_index": 123,\ "from_address": "",\ "to_address": "",\ "operator_address": "",\ "token_id": "",\ "value": ""\ }\ ], "code": 0, "message": "ok", "next_page": 123, "count": 123 } GET / v1 / nft / owner / history Try it Get NFT owner history by token cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/nft/owner/history \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ {\ "block_number": 123,\ "block_timestamp": "",\ "transaction_hash": "",\ "transaction_index": 123,\ "log_index": 123,\ "from_address": "",\ "to_address": "",\ "operator_address": "",\ "token_id": "",\ "value": ""\ }\ ], "code": 0, "message": "ok", "next_page": 123, "count": 123 } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#parameter-chain-id) chain\_id integer required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#parameter-contract-address) contract\_address string The address of the NFT contract [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#parameter-token-id) token\_id string NFT token id in hex or num string [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#parameter-from-block) from\_block string Inclusive from block number (hex string or int) [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#parameter-to-block) to\_block string Inclusive to block number (hex string, int, or 'latest') [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#parameter-from-timestamp) from\_timestamp integer Inclusive start timestamp [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#parameter-end-timestamp) end\_timestamp integer Inclusive end timestamp [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#parameter-page) page integer default:1 The page offset Required range: `x >= 1` [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#parameter-limit) limit integer default:20 The desired page size limit. Less or equal than 100 Required range: `1 <= x <= 100` #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#response-data) data NFTTransfers · object\[\] required Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#response-next-page) next\_page integer [​](https://docs.chainbase.com/api-reference/web3-api/nft/nft-ownership/get-nft-owner-history-by-token#response-count) count integer [Get NFT rarity](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-rarity) [Get NFT transfers by collection](https://docs.chainbase.com/api-reference/web3-api/nft/nft-transfers/get-nft-transfers-by-collection) ⌘I --- # Abstracted - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/BSC/Abstracted#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation BSC Abstracted [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [14\. bsc.token\_metas](https://docs.chainbase.com/catalog/BSC/Abstracted#14-bsc-token-metas) * [Table Description](https://docs.chainbase.com/catalog/BSC/Abstracted#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/BSC/Abstracted#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/BSC/Abstracted#table-sample) [​](https://docs.chainbase.com/catalog/BSC/Abstracted#14-bsc-token-metas) 14\. bsc.token\_metas -------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/BSC/Abstracted#table-description) Table Description Token metadata in the context of blockchain and cryptocurrencies typically refers to the set of data that describes the characteristics and details of a particular token. This metadata can include information such as the token’s name, symbol, total supply, decimal precision, and other details relevant to its function and identity on the blockchain. It’s essentially the descriptive data that gives context and identity to a token, distinguishing it from other tokens within the same blockchain ecosystem. Metadata is crucial for understanding the nature and purpose of a token, especially in applications like wallets, exchanges, and decentralized applications (dApps) where users interact with various types of tokens. ### [​](https://docs.chainbase.com/catalog/BSC/Abstracted#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/BSC/Abstracted#table-sample) Table Sample [☆ Overview](https://docs.chainbase.com/catalog/BSC/Overview) [Raw](https://docs.chainbase.com/catalog/BSC/Raw) ⌘I --- # Abstracted - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Avalanche/Abstracted#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Avalanche Abstracted [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1.arbitrum.token\_metas](https://docs.chainbase.com/catalog/Avalanche/Abstracted#1-arbitrum-token-metas) * [Table Description](https://docs.chainbase.com/catalog/Avalanche/Abstracted#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/Avalanche/Abstracted#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/Avalanche/Abstracted#table-sample) [​](https://docs.chainbase.com/catalog/Avalanche/Abstracted#1-arbitrum-token-metas) 1.arbitrum.token\_metas -------------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Avalanche/Abstracted#table-description) Table Description Token metadata in the context of blockchain and cryptocurrencies typically refers to the set of data that describes the characteristics and details of a particular token. This metadata can include information such as the token’s name, symbol, total supply, decimal precision, and other details relevant to its function and identity on the blockchain. It’s essentially the descriptive data that gives context and identity to a token, distinguishing it from other tokens within the same blockchain ecosystem. Metadata is crucial for understanding the nature and purpose of a token, especially in applications like wallets, exchanges, and decentralized applications (dApps) where users interact with various types of tokens. ### [​](https://docs.chainbase.com/catalog/Avalanche/Abstracted#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Avalanche/Abstracted#table-sample) Table Sample [☆ Overview](https://docs.chainbase.com/catalog/Avalanche/Overview) [Raw](https://docs.chainbase.com/catalog/Avalanche/Raw) ⌘I --- # Abstracted - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Labels/Abstracted#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation addresses Abstracted [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1.labels.addresses](https://docs.chainbase.com/catalog/Labels/Abstracted#1-labels-addresses) * [Table Description](https://docs.chainbase.com/catalog/Labels/Abstracted#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/Labels/Abstracted#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/Labels/Abstracted#table-sample) [​](https://docs.chainbase.com/catalog/Labels/Abstracted#1-labels-addresses) 1.labels.addresses -------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Labels/Abstracted#table-description) Table Description Labels datasets attaches rich address and entity metadata to every address you query. No more blind spots—just clean, structured, and instantly usable identity data for your dApps, dashboards, and analytics tools. ### [​](https://docs.chainbase.com/catalog/Labels/Abstracted#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Labels/Abstracted#table-sample) Table Sample [☆ Overview](https://docs.chainbase.com/catalog/Labels/Overview) ⌘I --- # ☆ Overview - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/BSC/Overview#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation BSC ☆ Overview [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [The Major Features of the Ethereum Blockchain](https://docs.chainbase.com/catalog/BSC/Overview#the-major-features-of-the-ethereum-blockchain) Polygon, formerly known as Matic Network, is a decentralized platform designed to improve the scalability and usability of Ethereum while retaining its core values of decentralization and security. Launched in 2017, Polygon offers a framework for building and connecting Ethereum-compatible blockchain networks, providing solutions for scalability issues through sidechains and Layer 2 solutions. ### [​](https://docs.chainbase.com/catalog/BSC/Overview#the-major-features-of-the-ethereum-blockchain) The Major Features of the Ethereum Blockchain 1. **Smart Contracts**: Smart contracts on BSC are self-executing contracts with predefined rules and conditions, running on the blockchain. Once the conditions are met, the contract’s execution is irreversible, ensuring transparency and trust. Smart contracts facilitate complex decentralized applications, such as decentralized finance (DeFi) platforms and non-fungible token (NFT) marketplaces. The automation and immutability of these contracts provide significant advantages in terms of security and efficiency. 2. **Decentralized Applications (DApps)**: BSC supports the development and deployment of decentralized applications, which operate on the blockchain without being controlled by a single entity. This decentralized nature enhances transparency and security, reducing the risk of single points of failure. Developers can utilize BSC’s robust infrastructure and tools to create innovative decentralized solutions. The applications of DApps on BSC are diverse, spanning financial services, gaming, supply chain management, and identity verification, demonstrating the platform’s versatility and potential for innovation. 3. **Cross-Chain Compatibility**: BSC offers cross-chain compatibility with Binance Chain, enabling seamless transfer of assets between the two chains. This interoperability allows users to benefit from the fast trading capabilities of Binance Chain while leveraging the powerful smart contract functionality of BSC. The dual-chain architecture provides flexibility and enhances the overall user experience. 4. **High Performance and Low Fees**: BSC is known for its high performance, with a block time of around 3 seconds, and significantly lower transaction fees compared to Ethereum. These features make BSC an attractive option for developers and users seeking cost-effective and efficient blockchain solutions. [Raw](https://docs.chainbase.com/catalog/Ethereum/Raw) [Abstracted](https://docs.chainbase.com/catalog/BSC/Abstracted) ⌘I --- # ☆ Overview - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Ethereum/Overview#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Ethereum ☆ Overview [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [The Major Features of the Ethereum Blockchain](https://docs.chainbase.com/catalog/Ethereum/Overview#the-major-features-of-the-ethereum-blockchain) Ethereum blockchain is a decentralized platform capable of executing smart contracts and decentralized applications (DApps). It was introduced by Vitalik Buterin in 2015 and is more general and flexible compared to Bitcoin’s blockchain. The core of Ethereum is its virtual machine, the Ethereum Virtual Machine (EVM), which can execute Turing-complete scripts, allowing developers to create and deploy smart contracts. ### [​](https://docs.chainbase.com/catalog/Ethereum/Overview#the-major-features-of-the-ethereum-blockchain) The Major Features of the Ethereum Blockchain 1. **Smart Contracts**: Smart contracts are self-executing contracts with predefined rules and conditions, running on the Ethereum blockchain. Once the conditions are met, the contract’s execution is irreversible, ensuring transparency and trust. Smart contracts enable complex decentralized applications, such as decentralized finance (DeFi) platforms and non-fungible token (NFT) marketplaces. The automation and immutability of these contracts are core advantages of blockchain applications. 2. **Decentralized Applications (DApps)**: Ethereum supports the development and deployment of decentralized applications, which run on the blockchain without being controlled by a single entity. This makes applications more transparent and secure, while also reducing the risk of single points of failure due to centralized control. Developers can leverage Ethereum’s tools and frameworks to create innovative decentralized solutions. The widespread application of DApps spans various sectors, including financial services, supply chain management, and identity verification, showcasing the versatility and innovative potential of the Ethereum platform. [Overview](https://docs.chainbase.com/catalog/overview) [Abstracted](https://docs.chainbase.com/catalog/Ethereum/Abstracted) ⌘I --- # ☆ Overview - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Fantom/Overview#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Fantom ☆ Overview [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [The Major Features of the Fantom Blockchain](https://docs.chainbase.com/catalog/Fantom/Overview#the-major-features-of-the-fantom-blockchain) * [Data catalog](https://docs.chainbase.com/catalog/Fantom/Overview#data-catalog) Fantom is a decentralized, high-performance blockchain platform designed to overcome the limitations of previous generations of blockchain networks. Launched in 2019 by the Fantom Foundation, Fantom aims to provide a scalable, secure, and efficient environment for decentralized applications (DApps) and enterprise use cases. ### [​](https://docs.chainbase.com/catalog/Fantom/Overview#the-major-features-of-the-fantom-blockchain) The Major Features of the Fantom Blockchain 1. **High Performance**: Fantom boasts high throughput and fast transaction finality, processing thousands of transactions per second with confirmation times of around 1 second. This performance is enabled by its unique consensus mechanism, Lachesis, a leaderless, asynchronous Byzantine Fault Tolerant (aBFT) protocol that ensures fast and secure consensus without compromising decentralization. 2. **Scalability**: Fantom is designed to be highly scalable, capable of supporting a large number of transactions and users without network congestion. Its architecture allows for the creation of multiple blockchains, each with its own specific use case and ruleset, which can interact with each other seamlessly. This modularity provides a scalable environment for diverse applications. 3. **Interoperability**: Fantom supports interoperability with other blockchain networks, enabling seamless asset and data transfer between Fantom and external blockchains. This is facilitated by Fantom’s cross-chain bridges and standardized communication protocols, ensuring efficient and secure interactions between different blockchain ecosystems. ### [​](https://docs.chainbase.com/catalog/Fantom/Overview#data-catalog) Data catalog [Raw\ ---\ \ Fantom Raw, unprocessed data on the Fantom chain, including blocks, transactions, and logs.](https://docs.chainbase.com/catalog/Fantom/Raw) [Raw](https://docs.chainbase.com/catalog/Avalanche/Raw) [Raw](https://docs.chainbase.com/catalog/Fantom/Raw) ⌘I --- # Get token transfers by contract - Chainbase Docs [Skip to main content](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Token API Get token transfers by contract [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) Get token transfers by contract cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/token/transfers \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ {\ "block_number": 123,\ "block_timestamp": "",\ "transaction_index": 123,\ "log_index": 123,\ "transaction_hash": "",\ "from_address": "",\ "to_address": "",\ "value": ""\ }\ ], "code": 0, "message": "ok", "next_page": 123, "count": 123 } GET / v1 / token / transfers Try it Get token transfers by contract cURL Copy curl --request GET \ --url https://api.chainbase.online/v1/token/transfers \ --header 'x-api-key: ' 200 400 401 403 404 422 500 Copy { "data": [\ {\ "block_number": 123,\ "block_timestamp": "",\ "transaction_index": 123,\ "log_index": 123,\ "transaction_hash": "",\ "from_address": "",\ "to_address": "",\ "value": ""\ }\ ], "code": 0, "message": "ok", "next_page": 123, "count": 123 } #### Headers [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#parameter-x-api-key) x-api-key string required Example: `"demo"` #### Query Parameters [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#parameter-chain-id) chain\_id integer required chain network id, see [list of details](https://docs.chainbase.com/platform/features/api/web3-api) [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#parameter-contract-address) contract\_address string The address of the token contract [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#parameter-address) address string A hex string referencing a wallet address [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#parameter-from-block) from\_block string Inclusive from block number (hex string or int) [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#parameter-to-block) to\_block string Inclusive to block number (hex string, int, or 'latest') [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#parameter-from-timestamp) from\_timestamp integer Inclusive start timestamp [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#parameter-end-timestamp) end\_timestamp integer Inclusive end timestamp [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#parameter-page) page integer default:1 The page offset Required range: `x >= 1` [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#parameter-limit) limit integer default:20 The desired page size limit. Less or equal than 100 Required range: `1 <= x <= 100` #### Response 200 application/json Successful Response [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#response-data) data TokenTransfer · object\[\] required Show child attributes [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#response-code) code integer default:0 [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#response-message) message string default:ok [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#response-next-page) next\_page integer [​](https://docs.chainbase.com/api-reference/web3-api/token/token-transfers/get-token-transfers-by-contract#response-count) count integer [Get token price history](https://docs.chainbase.com/api-reference/web3-api/token/market-data/get-token-price-history) [Get NFT metadata](https://docs.chainbase.com/api-reference/web3-api/nft/nft-metadata/get-nft-metadata) ⌘I --- # Raw - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Blast/Raw#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Blast Raw [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1\. blast.blocks](https://docs.chainbase.com/catalog/Blast/Raw#1-blast-blocks) * [Table Description](https://docs.chainbase.com/catalog/Blast/Raw#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/Blast/Raw#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/Blast/Raw#table-sample) * [2\. blast.transaction\_logs](https://docs.chainbase.com/catalog/Blast/Raw#2-blast-transaction-logs) * [Table Description](https://docs.chainbase.com/catalog/Blast/Raw#table-description-2) * [Column Descriptions](https://docs.chainbase.com/catalog/Blast/Raw#column-descriptions-2) * [Table Sample](https://docs.chainbase.com/catalog/Blast/Raw#table-sample-2) * [3\. blast.transactions](https://docs.chainbase.com/catalog/Blast/Raw#3-blast-transactions) * [Table Description](https://docs.chainbase.com/catalog/Blast/Raw#table-description-3) * [Column Descriptions](https://docs.chainbase.com/catalog/Blast/Raw#column-descriptions-3) * [Table Sample](https://docs.chainbase.com/catalog/Blast/Raw#table-sample-3) [​](https://docs.chainbase.com/catalog/Blast/Raw#1-blast-blocks) 1\. blast.blocks ------------------------------------------------------------------------------------ ### [​](https://docs.chainbase.com/catalog/Blast/Raw#table-description) Table Description The blast.blocks table stores crucial data about the Ethereum blockchain’s block structure. Each block in the Ethereum blockchain contains a unique set of data that ensures the integrity and chronological order of transactions. Blocks are the building blocks of the Ethereum blockchain, and they contain several key components: 1. Block Header: This includes metadata such as the block number, timestamp, parent block hash, and nonce. The header is essential for maintaining the blockchain’s integrity and linking blocks together in a chain. 2. Transactions: Each block includes a list of transactions that have been validated and added to the blockchain. These transactions consist of various operations, such as transfers of Ether, execution of smart contracts, and other state changes. 3. Uncle Blocks (Ommer Blocks): These are blocks that were mined but not included in the main chain. They are referenced in the block to improve the chain’s security and reward miners for their efforts. 4. State Root: This is a cryptographic hash representing the state of the entire Ethereum network at the time the block was mined. It includes account balances, storage, and other state data. 5. Receipts Root: This is a hash of the receipts of all transactions included in the block. Receipts contain information about the execution of transactions, such as gas used and logs generated. The blast.blocks table provides a detailed and organized view of the blockchain’s structure, allowing for efficient retrieval and analysis of blockchain data. This information is crucial for developers, researchers, and analysts working with the Ethereum blockchain, as it enables them to understand the state and evolution of the network. ### [​](https://docs.chainbase.com/catalog/Blast/Raw#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Blast/Raw#table-sample) Table Sample [​](https://docs.chainbase.com/catalog/Blast/Raw#2-blast-transaction-logs) 2\. blast.transaction\_logs --------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Blast/Raw#table-description-2) Table Description This dataset holds detailed logs emitted during transactions by smart contract events. These logs are pivotal for tracking activities such as token transfers, contract updates, and custom event notifications set by contract developers. For instance, when a user transfers ERC-20 tokens, the transaction log would capture the ‘Transfer’ event with details like the sender’s address, recipient’s address, and the amount transferred. This information is crucial for applications that need to monitor and respond to specific contract activities. ### [​](https://docs.chainbase.com/catalog/Blast/Raw#column-descriptions-2) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Blast/Raw#table-sample-2) Table Sample [​](https://docs.chainbase.com/catalog/Blast/Raw#3-blast-transactions) 3\. blast.transactions ------------------------------------------------------------------------------------------------ ### [​](https://docs.chainbase.com/catalog/Blast/Raw#table-description-3) Table Description The dataset encompasses comprehensive details of all transactions on the network. It includes the initiating account, destination address, value transferred, gas used, and the data payload. For example, when a user sends Ether to another user, the transaction record would include the sender’s and receiver’s addresses, the amount of Ether sent, and the gas price paid for the transaction. Additionally, it also captures the nonce, which is the transaction count of the sender, helping in preventing double-spending and replay attacks. ### [​](https://docs.chainbase.com/catalog/Blast/Raw#column-descriptions-3) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Blast/Raw#table-sample-3) Table Sample [☆ Overview](https://docs.chainbase.com/catalog/Blast/Overview) [☆ Overview](https://docs.chainbase.com/catalog/zkSync/Overview) ⌘I --- # Abstracted - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Base/Abstracted#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Base Abstracted [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1.base.token\_metas](https://docs.chainbase.com/catalog/Base/Abstracted#1-base-token-metas) * [Table Description](https://docs.chainbase.com/catalog/Base/Abstracted#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/Base/Abstracted#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/Base/Abstracted#table-sample) [​](https://docs.chainbase.com/catalog/Base/Abstracted#1-base-token-metas) 1.base.token\_metas ------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Base/Abstracted#table-description) Table Description Token metadata in the context of blockchain and cryptocurrencies typically refers to the set of data that describes the characteristics and details of a particular token. This metadata can include information such as the token’s name, symbol, total supply, decimal precision, and other details relevant to its function and identity on the blockchain. It’s essentially the descriptive data that gives context and identity to a token, distinguishing it from other tokens within the same blockchain ecosystem. Metadata is crucial for understanding the nature and purpose of a token, especially in applications like wallets, exchanges, and decentralized applications (dApps) where users interact with various types of tokens. ### [​](https://docs.chainbase.com/catalog/Base/Abstracted#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Base/Abstracted#table-sample) Table Sample [☆ Overview](https://docs.chainbase.com/catalog/Base/Overview) [Raw](https://docs.chainbase.com/catalog/Base/Raw) ⌘I --- # ☆ Overview - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Blast/Overview#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Blast ☆ Overview [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [The Major Features of the Blast Blockchain](https://docs.chainbase.com/catalog/Blast/Overview#the-major-features-of-the-blast-blockchain) Blast is a decentralized blockchain platform designed to offer high scalability, security, and low transaction costs, making it an ideal environment for developing and deploying decentralized applications (DApps). Leveraging advanced consensus mechanisms and innovative architecture, Blast aims to overcome the limitations of traditional blockchain networks while providing a seamless and efficient user experience. ### [​](https://docs.chainbase.com/catalog/Blast/Overview#the-major-features-of-the-blast-blockchain) The Major Features of the Blast Blockchain 1. **High Scalability**: Blast is built to handle a large volume of transactions with high throughput, enabling it to process thousands of transactions per second. This scalability ensures that the network can support a growing number of users and applications without experiencing congestion or delays. 2. **Low Fees**: One of Blast’s key advantages is its low transaction fees. By optimizing its consensus protocol and network architecture, Blast minimizes the cost of transactions, making it more accessible for users and developers. This cost efficiency encourages broader adoption and usage of decentralized applications on the Blast network. 3. **Interoperability**: Blast supports interoperability with other blockchain networks, allowing for seamless asset transfers and data sharing across different chains. This cross-chain compatibility enhances the functionality of the Blast ecosystem, providing users with a more integrated and versatile blockchain experience. [Raw](https://docs.chainbase.com/catalog/Base/Raw) [Raw](https://docs.chainbase.com/catalog/Blast/Raw) ⌘I --- # ☆ Overview - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Labels/Overview#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation addresses ☆ Overview [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [The Major Features of the Labels](https://docs.chainbase.com/catalog/Labels/Overview#the-major-features-of-the-labels) * [Supported Chains](https://docs.chainbase.com/catalog/Labels/Overview#supported-chains) Labels datasets attaches rich address and entity metadata to every address you query. No more blind spots—just clean, structured, and instantly usable identity data for your dApps, dashboards, and analytics tools. ### [​](https://docs.chainbase.com/catalog/Labels/Overview#the-major-features-of-the-labels) The Major Features of the Labels 1. **Decode counterparties on the fly**: Enrich every transaction with who’s behind the address. 2. **Avoid costly mistakes**: Labels help users avoid sending funds to shady or incorrect addresses. 3. **Faster builds**: Whether you’re creating explorers, dashboards, or DeFi monitors, this saves hours of manual mapping. 4. **Plug-and-play**: Query once, get labeled data instantly—no need to build your own tagging system. [​](https://docs.chainbase.com/catalog/Labels/Overview#supported-chains) Supported Chains -------------------------------------------------------------------------------------------- | Chain | | --- | | Blast | | Fantom | | Avalanche | | Flare | | Bnb | | Base | | Bsc | | Mantle | | Linea | | Solana | | Arbitrum | | Optimism | | Tron | | Bitcoin | | Polygon | | Gnosis | [Abstracted](https://docs.chainbase.com/catalog/Price/Abstracted) [Abstracted](https://docs.chainbase.com/catalog/Labels/Abstracted) ⌘I --- # Abstracted - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Bitcoin Abstracted [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1\. brc20\_token\_activities](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#1-brc20-token-activities) * [Table Description](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-sample) * [2\. brc20\_token\_balances](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#2-brc20-token-balances) * [Table Description](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-description-2) * [Column Descriptions](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#column-descriptions-2) * [Table Sample](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-sample-2) * [3\. brc20\_token\_info](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#3-brc20-token-info) * [Table Description](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-description-3) * [Column Descriptions](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#column-descriptions-3) * [Table Sample](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-sample-3) * [4\. pipe\_token\_activities](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#4-pipe-token-activities) * [Table Description](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-description-4) * [Column Descriptions](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#column-descriptions-4) * [Table Sample](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-sample-4) * [5\. pipe\_token\_balances](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#5-pipe-token-balances) * [Table Description](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-description-5) * [Column Descriptions](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#column-descriptions-5) * [Table Sample](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-sample-5) * [6\. pipe\_token\_info](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#6-pipe-token-info) * [Table Description](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-description-6) * [Column Descriptions](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#column-descriptions-6) * [Table Sample](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-sample-6) [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#1-brc20-token-activities) 1\. brc20\_token\_activities ------------------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-description) Table Description The brc20.token\_activities table logs activities and transactions involving bitcoin tokens. This data is vital for tracking the movement and usage of various Ethereum-based tokens within the blockchain ecosystem, enabling comprehensive analysis and reporting. ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-sample) Table Sample [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#2-brc20-token-balances) 2\. brc20\_token\_balances --------------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-description-2) Table Description The brc20.token\_balances inscription is a metadata field that holds information regarding bitcoin token balances. This data is crucial for applications that need to track and verify the holdings of various Ethereum-based tokens within a Bitcoin transaction context. It enables cross-chain interoperability by embedding Ethereum token information directly into the Bitcoin blockchain. ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#column-descriptions-2) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-sample-2) Table Sample [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#3-brc20-token-info) 3\. brc20\_token\_info ------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-description-3) Table Description The pipe.token\_info table stores detailed information about bitcoin tokens. This data is essential for tracking and managing various Ethereum-based tokens within the blockchain ecosystem. The table provides comprehensive metadata about each token, facilitating transparency and interoperability in blockchain applications. ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#column-descriptions-3) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-sample-3) Table Sample [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#4-pipe-token-activities) 4\. pipe\_token\_activities ----------------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-description-4) Table Description The pipe.token\_activities table logs activities and transactions involving bitcoin tokens. This data is vital for tracking the movement and usage of various Ethereum-based tokens within the blockchain ecosystem, enabling comprehensive analysis and reporting. ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#column-descriptions-4) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-sample-4) Table Sample [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#5-pipe-token-balances) 5\. pipe\_token\_balances ------------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-description-5) Table Description The pipe.token\_balances inscription is a metadata field that holds information regarding bitcoin token balances. This data is crucial for applications that need to track and verify the holdings of various Ethereum-based tokens within a Bitcoin transaction context. It enables cross-chain interoperability by embedding Ethereum token information directly into the Bitcoin blockchain. ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#column-descriptions-5) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-sample-5) Table Sample [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#6-pipe-token-info) 6\. pipe\_token\_info ----------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-description-6) Table Description The brc20.token\_info table stores detailed information about bitcoin tokens. This data is essential for tracking and managing various Ethereum-based tokens within the blockchain ecosystem. The table provides comprehensive metadata about each token, facilitating transparency and interoperability in blockchain applications. ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#column-descriptions-6) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Bitcoin/Abstracted#table-sample-6) Table Sample [Raw](https://docs.chainbase.com/catalog/zkSync/Raw) [☆ Overview](https://docs.chainbase.com/catalog/Merlin/Overview) ⌘I --- # ☆ Overview - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Merlin/Overview#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Merlin ☆ Overview [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [The Major Features of the Blast Blockchain](https://docs.chainbase.com/catalog/Merlin/Overview#the-major-features-of-the-blast-blockchain) * [Data catalog](https://docs.chainbase.com/catalog/Merlin/Overview#data-catalog) Merlin is a cutting-edge blockchain platform designed to provide high scalability, security, and efficiency, making it an ideal environment for developing and deploying decentralized applications (DApps). Leveraging advanced consensus mechanisms and innovative architecture, Merlin aims to overcome the limitations of traditional blockchain networks while providing a seamless and efficient user experience. ### [​](https://docs.chainbase.com/catalog/Merlin/Overview#the-major-features-of-the-blast-blockchain) The Major Features of the Blast Blockchain 1. **High Scalability**: Merlin is built to handle a large volume of transactions with high throughput, enabling it to process thousands of transactions per second. This scalability ensures that the network can support a growing number of users and applications without experiencing congestion or delays. 2. **Low Fees**: One of Merlin’s key advantages is its low transaction fees. By optimizing its consensus protocol and network architecture, Merlin minimizes the cost of transactions, making it more accessible for users and developers. This cost efficiency encourages broader adoption and usage of decentralized applications on the Merlin network. 3. **Security**: Merlin employs robust security measures to ensure the integrity and safety of the network. Utilizing advanced cryptographic techniques and a secure consensus mechanism, Merlin provides strong protection against attacks and operational faults, maintaining a reliable and secure environment for DApps and transactions. Interoperability: Merlin supports interoperability with other blockchain networks, allowing for seamless asset transfers and data sharing across different chains. This cross-chain compatibility enhances the functionality of the Merlin ecosystem, providing users with a more integrated and versatile blockchain experience. ### [​](https://docs.chainbase.com/catalog/Merlin/Overview#data-catalog) Data catalog [Raw\ ---\ \ Merlin Raw, unprocessed data on the Merlin chain, including blocks, transactions, and logs.](https://docs.chainbase.com/catalog/Merlin/Raw) [Abstracted](https://docs.chainbase.com/catalog/Bitcoin/Abstracted) [Raw](https://docs.chainbase.com/catalog/Merlin/Raw) ⌘I --- # ☆ Overview - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Base/Overview#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Base ☆ Overview [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [The Major Features of the Arbitrum Blockchain](https://docs.chainbase.com/catalog/Base/Overview#the-major-features-of-the-arbitrum-blockchain) Base is a Layer 2 scaling solution built on top of the Ethereum blockchain, designed to enhance scalability, reduce transaction costs, and provide a robust environment for decentralized applications (DApps). Developed to address the limitations of Ethereum’s main chain, Base utilizes advanced rollup technology to offer fast, secure, and cost-effective transactions while maintaining the security and decentralization of the Ethereum network. ### [​](https://docs.chainbase.com/catalog/Base/Overview#the-major-features-of-the-arbitrum-blockchain) The Major Features of the Arbitrum Blockchain 1. **Scalability**: Base significantly increases Ethereum’s scalability by aggregating multiple transactions into a single batch processed off-chain, which is then committed to the Ethereum main chain. This rollup technique allows Base to handle thousands of transactions per second, reducing congestion and improving network performance. 2. **Low Fees**: By processing transactions off-chain and recording only the final state on the Ethereum main chain, Base substantially reduces transaction fees. This cost efficiency makes blockchain interactions more affordable for users and developers, encouraging broader adoption and usage of decentralized applications. 3. **EVM Compatibility**: Base is fully compatible with the Ethereum Virtual Machine (EVM), enabling developers to deploy their existing Ethereum-based smart contracts and DApps on Base with minimal modifications. This compatibility ensures a seamless transition for developers and allows them to leverage Ethereum’s extensive ecosystem of tools and libraries. [Raw](https://docs.chainbase.com/catalog/Optimism/Raw) [Abstracted](https://docs.chainbase.com/catalog/Base/Abstracted) ⌘I --- # ☆ Overview - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Optimism/Overview#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Optimism ☆ Overview [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [The Major Features of the Optimism Blockchain](https://docs.chainbase.com/catalog/Optimism/Overview#the-major-features-of-the-optimism-blockchain) Optimism is a Layer 2 scaling solution for Ethereum, designed to enhance the scalability and reduce the transaction costs of decentralized applications (DApps) on the Ethereum network. Developed by the Optimism Foundation, Optimism leverages optimistic rollup technology to achieve faster and cheaper transactions while maintaining the security and decentralization of the Ethereum main chain. ### [​](https://docs.chainbase.com/catalog/Optimism/Overview#the-major-features-of-the-optimism-blockchain) The Major Features of the Optimism Blockchain 1. **Scalability**: Optimism significantly improves the scalability of Ethereum by using optimistic rollups, which aggregate multiple transactions into a single batch processed off-chain. This technique allows Optimism to handle thousands of transactions per second, reducing congestion and enhancing the overall performance of the network. 2. **Low Fees**: By processing transactions off-chain and only recording the final state on the Ethereum main chain, Optimism dramatically reduces transaction fees. This cost efficiency makes it more accessible for users and developers to interact with decentralized applications, promoting greater adoption and usage. 3. **EVM Compatibility**: Optimism is fully compatible with the Ethereum Virtual Machine (EVM), enabling developers to deploy their existing Ethereum-based smart contracts and DApps on Optimism with minimal modifications. This compatibility ensures a seamless transition for developers and allows them to leverage Ethereum’s extensive ecosystem of tools and libraries. [Raw](https://docs.chainbase.com/catalog/Arbitrum/Raw) [Abstracted](https://docs.chainbase.com/catalog/Optimism/Abstracted) ⌘I --- # Raw - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Avalanche/Raw#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Avalanche Raw [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1\. avalanche.blocks](https://docs.chainbase.com/catalog/Avalanche/Raw#1-avalanche-blocks) * [Table Description](https://docs.chainbase.com/catalog/Avalanche/Raw#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/Avalanche/Raw#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/Avalanche/Raw#table-sample) * [2\. avalanche.contracts](https://docs.chainbase.com/catalog/Avalanche/Raw#2-avalanche-contracts) * [Table Description](https://docs.chainbase.com/catalog/Avalanche/Raw#table-description-2) * [Column Descriptions](https://docs.chainbase.com/catalog/Avalanche/Raw#column-descriptions-2) * [Table Sample](https://docs.chainbase.com/catalog/Avalanche/Raw#table-sample-2) * [3\. avalanche.token\_transfers](https://docs.chainbase.com/catalog/Avalanche/Raw#3-avalanche-token-transfers) * [Table Description](https://docs.chainbase.com/catalog/Avalanche/Raw#table-description-3) * [Column Descriptions](https://docs.chainbase.com/catalog/Avalanche/Raw#column-descriptions-3) * [Table Sample](https://docs.chainbase.com/catalog/Avalanche/Raw#table-sample-3) * [4\. avalanche.trace\_calls](https://docs.chainbase.com/catalog/Avalanche/Raw#4-avalanche-trace-calls) * [Table Description](https://docs.chainbase.com/catalog/Avalanche/Raw#table-description-4) * [Column Descriptions](https://docs.chainbase.com/catalog/Avalanche/Raw#column-descriptions-4) * [Table Sample](https://docs.chainbase.com/catalog/Avalanche/Raw#table-sample-4) * [5\. avalanche.transaction\_logs](https://docs.chainbase.com/catalog/Avalanche/Raw#5-avalanche-transaction-logs) * [Table Description](https://docs.chainbase.com/catalog/Avalanche/Raw#table-description-5) * [Column Descriptions](https://docs.chainbase.com/catalog/Avalanche/Raw#column-descriptions-5) * [Table Sample](https://docs.chainbase.com/catalog/Avalanche/Raw#table-sample-5) * [6\. avalanche.transactions](https://docs.chainbase.com/catalog/Avalanche/Raw#6-avalanche-transactions) * [Table Description](https://docs.chainbase.com/catalog/Avalanche/Raw#table-description-6) * [Column Descriptions](https://docs.chainbase.com/catalog/Avalanche/Raw#column-descriptions-6) * [Table Sample](https://docs.chainbase.com/catalog/Avalanche/Raw#table-sample-6) [​](https://docs.chainbase.com/catalog/Avalanche/Raw#1-avalanche-blocks) 1\. avalanche.blocks ------------------------------------------------------------------------------------------------ ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#table-description) Table Description The avalanche.blocks table stores crucial data about the Ethereum blockchain’s block structure. Each block in the Ethereum blockchain contains a unique set of data that ensures the integrity and chronological order of transactions. Blocks are the building blocks of the Ethereum blockchain, and they contain several key components: 1. Block Header: This includes metadata such as the block number, timestamp, parent block hash, and nonce. The header is essential for maintaining the blockchain’s integrity and linking blocks together in a chain. 2. Transactions: Each block includes a list of transactions that have been validated and added to the blockchain. These transactions consist of various operations, such as transfers of Ether, execution of smart contracts, and other state changes. 3. Uncle Blocks (Ommer Blocks): These are blocks that were mined but not included in the main chain. They are referenced in the block to improve the chain’s security and reward miners for their efforts. 4. State Root: This is a cryptographic hash representing the state of the entire Ethereum network at the time the block was mined. It includes account balances, storage, and other state data. 5. Receipts Root: This is a hash of the receipts of all transactions included in the block. Receipts contain information about the execution of transactions, such as gas used and logs generated. The avalanche.blocks table provides a detailed and organized view of the blockchain’s structure, allowing for efficient retrieval and analysis of blockchain data. This information is crucial for developers, researchers, and analysts working with the Ethereum blockchain, as it enables them to understand the state and evolution of the network. ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#table-sample) Table Sample [​](https://docs.chainbase.com/catalog/Avalanche/Raw#2-avalanche-contracts) 2\. avalanche.contracts ------------------------------------------------------------------------------------------------------ ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#table-description-2) Table Description The avalanche.contracts table contains essential data about smart contracts deployed on the Ethereum blockchain. Smart contracts are self-executing contracts with the terms of the agreement directly written into code. They are a fundamental aspect of Ethereum, enabling decentralized applications (DApps) and automating complex transactions without intermediaries. The avalanche.contracts table includes several key components: 1. Contract Address: This is a unique identifier for each smart contract deployed on the Ethereum network. It is derived from the creator’s address and the transaction nonce. 2. Creator Address: This is the Ethereum address of the account that deployed the smart contract. It provides traceability and accountability for the origin of the contract. 3. Creation Transaction: This includes the transaction hash of the deployment transaction, linking the contract to the specific transaction that created it. 4. Bytecode: This is the compiled code of the smart contract that gets executed on the Ethereum Virtual Machine (EVM). It includes the contract’s logic and functions. 5. ABI (Application Binary Interface): The ABI defines the contract’s interface, including its functions, inputs, and outputs. It is crucial for interacting with the contract programmatically. 6. Source Code (optional): Some contracts include the original source code, providing transparency and enabling verification of the compiled bytecode. 7. Block Number: This indicates the block in which the smart contract was deployed, providing a chronological context for the contract’s creation. 8. Timestamp: The exact time when the smart contract was deployed, allowing for time-based analysis and tracking. ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#column-descriptions-2) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#table-sample-2) Table Sample [​](https://docs.chainbase.com/catalog/Avalanche/Raw#3-avalanche-token-transfers) 3\. avalanche.token\_transfers ------------------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#table-description-3) Table Description Token transfers in the context of blockchain data refer to the movement of digital tokens from one address to another. These transfers can be tracked on the blockchain, providing a transparent record of token movements. Here are some key points to understand about token transfers:Token transfers can be initiated by users or smart contracts. For example, a user can send tokens to another user, or a smart contract can transfer tokens to a user as part of a transaction.Token transfers can be tracked on the blockchain, providing a transparent record of token movements. This is particularly useful for auditing and compliance purposes. ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#column-descriptions-3) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#table-sample-3) Table Sample [​](https://docs.chainbase.com/catalog/Avalanche/Raw#4-avalanche-trace-calls) 4\. avalanche.trace\_calls ----------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#table-description-4) Table Description The avalanche.trace\_calls table contains detailed data about the execution of transactions on the Ethereum blockchain. Trace calls provide a granular view of what happens during the execution of a transaction, including internal transactions and function calls within smart contracts. This information is essential for debugging, auditing, and understanding the complex interactions within the Ethereum network. The avalanche.trace\_calls table is a powerful tool for developers, auditors, and researchers working with avalanche. It provides an in-depth view of transaction execution, enabling detailed analysis of smart contract interactions and internal transactions. This information is vital for ensuring the security, efficiency, and transparency of operations on the Ethereum network. ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#column-descriptions-4) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#table-sample-4) Table Sample [​](https://docs.chainbase.com/catalog/Avalanche/Raw#5-avalanche-transaction-logs) 5\. avalanche.transaction\_logs --------------------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#table-description-5) Table Description This dataset holds detailed logs emitted during transactions by smart contract events. These logs are pivotal for tracking activities such as token transfers, contract updates, and custom event notifications set by contract developers. For instance, when a user transfers ERC-20 tokens, the transaction log would capture the ‘Transfer’ event with details like the sender’s address, recipient’s address, and the amount transferred. This information is crucial for applications that need to monitor and respond to specific contract activities. ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#column-descriptions-5) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#table-sample-5) Table Sample [​](https://docs.chainbase.com/catalog/Avalanche/Raw#6-avalanche-transactions) 6\. avalanche.transactions ------------------------------------------------------------------------------------------------------------ ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#table-description-6) Table Description The dataset encompasses comprehensive details of all transactions on the network. It includes the initiating account, destination address, value transferred, gas used, and the data payload. For example, when a user sends Ether to another user, the transaction record would include the sender’s and receiver’s addresses, the amount of Ether sent, and the gas price paid for the transaction. Additionally, it also captures the nonce, which is the transaction count of the sender, helping in preventing double-spending and replay attacks. ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#column-descriptions-6) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Avalanche/Raw#table-sample-6) Table Sample [Abstracted](https://docs.chainbase.com/catalog/Avalanche/Abstracted) [☆ Overview](https://docs.chainbase.com/catalog/Fantom/Overview) ⌘I --- # Abstracted - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Ethereum/Abstracted#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Ethereum Abstracted [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1.ethereum.token\_metas](https://docs.chainbase.com/catalog/Ethereum/Abstracted#1-ethereum-token-metas) * [Table Description](https://docs.chainbase.com/catalog/Ethereum/Abstracted#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/Ethereum/Abstracted#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/Ethereum/Abstracted#table-sample) * [2.ethereum.onchain\_trades](https://docs.chainbase.com/catalog/Ethereum/Abstracted#2-ethereum-onchain-trades) * [Table Description](https://docs.chainbase.com/catalog/Ethereum/Abstracted#table-description-2) * [Column Descriptions](https://docs.chainbase.com/catalog/Ethereum/Abstracted#column-descriptions-2) * [Table Sample](https://docs.chainbase.com/catalog/Ethereum/Abstracted#table-sample-2) [​](https://docs.chainbase.com/catalog/Ethereum/Abstracted#1-ethereum-token-metas) 1.ethereum.token\_metas ------------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Ethereum/Abstracted#table-description) Table Description Token metadata in the context of blockchain and cryptocurrencies typically refers to the set of data that describes the characteristics and details of a particular token. This metadata can include information such as the token’s name, symbol, total supply, decimal precision, and other details relevant to its function and identity on the blockchain. It’s essentially the descriptive data that gives context and identity to a token, distinguishing it from other tokens within the same blockchain ecosystem. Metadata is crucial for understanding the nature and purpose of a token, especially in applications like wallets, exchanges, and decentralized applications (dApps) where users interact with various types of tokens. ### [​](https://docs.chainbase.com/catalog/Ethereum/Abstracted#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Ethereum/Abstracted#table-sample) Table Sample [​](https://docs.chainbase.com/catalog/Ethereum/Abstracted#2-ethereum-onchain-trades) 2.ethereum.onchain\_trades ------------------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Ethereum/Abstracted#table-description-2) Table Description The onchain\_trades table records all transfer events on Ethereum, including both ERC-20 token transfers and native ETH transfers. This dataset enables users to track on-chain transactions in real time and is particularly useful for monitoring large transactions and analyzing token movements. ### [​](https://docs.chainbase.com/catalog/Ethereum/Abstracted#column-descriptions-2) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Ethereum/Abstracted#table-sample-2) Table Sample [☆ Overview](https://docs.chainbase.com/catalog/Ethereum/Overview) [Raw](https://docs.chainbase.com/catalog/Ethereum/Raw) ⌘I --- # Raw - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Merlin/Raw#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Merlin Raw [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1\. merlin.blocks](https://docs.chainbase.com/catalog/Merlin/Raw#1-merlin-blocks) * [Table Description](https://docs.chainbase.com/catalog/Merlin/Raw#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/Merlin/Raw#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/Merlin/Raw#table-sample) * [2\. merlin.transaction\_logs](https://docs.chainbase.com/catalog/Merlin/Raw#2-merlin-transaction-logs) * [Table Description](https://docs.chainbase.com/catalog/Merlin/Raw#table-description-2) * [Column Descriptions](https://docs.chainbase.com/catalog/Merlin/Raw#column-descriptions-2) * [Table Sample](https://docs.chainbase.com/catalog/Merlin/Raw#table-sample-2) * [3\. merlin.transactions](https://docs.chainbase.com/catalog/Merlin/Raw#3-merlin-transactions) * [Table Description](https://docs.chainbase.com/catalog/Merlin/Raw#table-description-3) * [Column Descriptions](https://docs.chainbase.com/catalog/Merlin/Raw#column-descriptions-3) * [Table Sample](https://docs.chainbase.com/catalog/Merlin/Raw#table-sample-3) [​](https://docs.chainbase.com/catalog/Merlin/Raw#1-merlin-blocks) 1\. merlin.blocks --------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Merlin/Raw#table-description) Table Description The merlin.blocks table stores crucial data about the Ethereum blockchain’s block structure. Each block in the Ethereum blockchain contains a unique set of data that ensures the integrity and chronological order of transactions. Blocks are the building blocks of the Ethereum blockchain, and they contain several key components: 1. Block Header: This includes metadata such as the block number, timestamp, parent block hash, and nonce. The header is essential for maintaining the blockchain’s integrity and linking blocks together in a chain. 2. Transactions: Each block includes a list of transactions that have been validated and added to the blockchain. These transactions consist of various operations, such as transfers of Ether, execution of smart contracts, and other state changes. 3. Uncle Blocks (Ommer Blocks): These are blocks that were mined but not included in the main chain. They are referenced in the block to improve the chain’s security and reward miners for their efforts. 4. State Root: This is a cryptographic hash representing the state of the entire Ethereum network at the time the block was mined. It includes account balances, storage, and other state data. 5. Receipts Root: This is a hash of the receipts of all transactions included in the block. Receipts contain information about the execution of transactions, such as gas used and logs generated. The merlin.blocks table provides a detailed and organized view of the blockchain’s structure, allowing for efficient retrieval and analysis of blockchain data. This information is crucial for developers, researchers, and analysts working with the Ethereum blockchain, as it enables them to understand the state and evolution of the network. ### [​](https://docs.chainbase.com/catalog/Merlin/Raw#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Merlin/Raw#table-sample) Table Sample [​](https://docs.chainbase.com/catalog/Merlin/Raw#2-merlin-transaction-logs) 2\. merlin.transaction\_logs ------------------------------------------------------------------------------------------------------------ ### [​](https://docs.chainbase.com/catalog/Merlin/Raw#table-description-2) Table Description This dataset holds detailed logs emitted during transactions by smart contract events. These logs are pivotal for tracking activities such as token transfers, contract updates, and custom event notifications set by contract developers. For instance, when a user transfers ERC-20 tokens, the transaction log would capture the ‘Transfer’ event with details like the sender’s address, recipient’s address, and the amount transferred. This information is crucial for applications that need to monitor and respond to specific contract activities. ### [​](https://docs.chainbase.com/catalog/Merlin/Raw#column-descriptions-2) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Merlin/Raw#table-sample-2) Table Sample [​](https://docs.chainbase.com/catalog/Merlin/Raw#3-merlin-transactions) 3\. merlin.transactions --------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Merlin/Raw#table-description-3) Table Description The dataset encompasses comprehensive details of all transactions on the network. It includes the initiating account, destination address, value transferred, gas used, and the data payload. For example, when a user sends Ether to another user, the transaction record would include the sender’s and receiver’s addresses, the amount of Ether sent, and the gas price paid for the transaction. Additionally, it also captures the nonce, which is the transaction count of the sender, helping in preventing double-spending and replay attacks. ### [​](https://docs.chainbase.com/catalog/Merlin/Raw#column-descriptions-3) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Merlin/Raw#table-sample-3) Table Sample [☆ Overview](https://docs.chainbase.com/catalog/Merlin/Overview) [☆ Overview](https://docs.chainbase.com/catalog/Sui/Overview) ⌘I --- # Raw - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Base/Raw#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Base Raw [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1\. base.blocks](https://docs.chainbase.com/catalog/Base/Raw#1-base-blocks) * [Table Description](https://docs.chainbase.com/catalog/Base/Raw#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/Base/Raw#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/Base/Raw#table-sample) * [1\. base.contracts](https://docs.chainbase.com/catalog/Base/Raw#1-base-contracts) * [Table Description](https://docs.chainbase.com/catalog/Base/Raw#table-description-2) * [Column Descriptions](https://docs.chainbase.com/catalog/Base/Raw#column-descriptions-2) * [Table Sample](https://docs.chainbase.com/catalog/Base/Raw#table-sample-2) * [1\. base.token\_transfers](https://docs.chainbase.com/catalog/Base/Raw#1-base-token-transfers) * [Table Description](https://docs.chainbase.com/catalog/Base/Raw#table-description-3) * [Column Descriptions](https://docs.chainbase.com/catalog/Base/Raw#column-descriptions-3) * [Table Sample](https://docs.chainbase.com/catalog/Base/Raw#table-sample-3) * [1\. base.trace\_calls](https://docs.chainbase.com/catalog/Base/Raw#1-base-trace-calls) * [Table Description](https://docs.chainbase.com/catalog/Base/Raw#table-description-4) * [Column Descriptions](https://docs.chainbase.com/catalog/Base/Raw#column-descriptions-4) * [Table Sample](https://docs.chainbase.com/catalog/Base/Raw#table-sample-4) * [1\. base.transaction\_logs](https://docs.chainbase.com/catalog/Base/Raw#1-base-transaction-logs) * [Table Description](https://docs.chainbase.com/catalog/Base/Raw#table-description-5) * [Column Descriptions](https://docs.chainbase.com/catalog/Base/Raw#column-descriptions-5) * [Table Sample](https://docs.chainbase.com/catalog/Base/Raw#table-sample-5) * [1\. base.transactions](https://docs.chainbase.com/catalog/Base/Raw#1-base-transactions) * [Table Description](https://docs.chainbase.com/catalog/Base/Raw#table-description-6) * [Column Descriptions](https://docs.chainbase.com/catalog/Base/Raw#column-descriptions-6) * [Table Sample](https://docs.chainbase.com/catalog/Base/Raw#table-sample-6) [​](https://docs.chainbase.com/catalog/Base/Raw#1-base-blocks) 1\. base.blocks --------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Base/Raw#table-description) Table Description The base.blocks table stores crucial data about the Ethereum blockchain’s block structure. Each block in the Ethereum blockchain contains a unique set of data that ensures the integrity and chronological order of transactions. Blocks are the building blocks of the Ethereum blockchain, and they contain several key components: 1. Block Header: This includes metadata such as the block number, timestamp, parent block hash, and nonce. The header is essential for maintaining the blockchain’s integrity and linking blocks together in a chain. 2. Transactions: Each block includes a list of transactions that have been validated and added to the blockchain. These transactions consist of various operations, such as transfers of Ether, execution of smart contracts, and other state changes. 3. Uncle Blocks (Ommer Blocks): These are blocks that were mined but not included in the main chain. They are referenced in the block to improve the chain’s security and reward miners for their efforts. 4. State Root: This is a cryptographic hash representing the state of the entire Ethereum network at the time the block was mined. It includes account balances, storage, and other state data. 5. Receipts Root: This is a hash of the receipts of all transactions included in the block. Receipts contain information about the execution of transactions, such as gas used and logs generated. The base.blocks table provides a detailed and organized view of the blockchain’s structure, allowing for efficient retrieval and analysis of blockchain data. This information is crucial for developers, researchers, and analysts working with the Ethereum blockchain, as it enables them to understand the state and evolution of the network. ### [​](https://docs.chainbase.com/catalog/Base/Raw#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Base/Raw#table-sample) Table Sample [​](https://docs.chainbase.com/catalog/Base/Raw#1-base-contracts) 1\. base.contracts --------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Base/Raw#table-description-2) Table Description The base.contracts table contains essential data about smart contracts deployed on the Ethereum blockchain. Smart contracts are self-executing contracts with the terms of the agreement directly written into code. They are a fundamental aspect of Ethereum, enabling decentralized applications (DApps) and automating complex transactions without intermediaries. The base.contracts table includes several key components: 1. Contract Address: This is a unique identifier for each smart contract deployed on the Ethereum network. It is derived from the creator’s address and the transaction nonce. 2. Creator Address: This is the Ethereum address of the account that deployed the smart contract. It provides traceability and accountability for the origin of the contract. 3. Creation Transaction: This includes the transaction hash of the deployment transaction, linking the contract to the specific transaction that created it. 4. Bytecode: This is the compiled code of the smart contract that gets executed on the Ethereum Virtual Machine (EVM). It includes the contract’s logic and functions. 5. ABI (Application Binary Interface): The ABI defines the contract’s interface, including its functions, inputs, and outputs. It is crucial for interacting with the contract programmatically. 6. Source Code (optional): Some contracts include the original source code, providing transparency and enabling verification of the compiled bytecode. 7. Block Number: This indicates the block in which the smart contract was deployed, providing a chronological context for the contract’s creation. 8. Timestamp: The exact time when the smart contract was deployed, allowing for time-based analysis and tracking. ### [​](https://docs.chainbase.com/catalog/Base/Raw#column-descriptions-2) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Base/Raw#table-sample-2) Table Sample [​](https://docs.chainbase.com/catalog/Base/Raw#1-base-token-transfers) 1\. base.token\_transfers ---------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Base/Raw#table-description-3) Table Description Token transfers in the context of blockchain data refer to the movement of digital tokens from one address to another. These transfers can be tracked on the blockchain, providing a transparent record of token movements. Here are some key points to understand about token transfers:Token transfers can be initiated by users or smart contracts. For example, a user can send tokens to another user, or a smart contract can transfer tokens to a user as part of a transaction.Token transfers can be tracked on the blockchain, providing a transparent record of token movements. This is particularly useful for auditing and compliance purposes. ### [​](https://docs.chainbase.com/catalog/Base/Raw#column-descriptions-3) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Base/Raw#table-sample-3) Table Sample [​](https://docs.chainbase.com/catalog/Base/Raw#1-base-trace-calls) 1\. base.trace\_calls -------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Base/Raw#table-description-4) Table Description The base.trace\_calls table contains detailed data about the execution of transactions on the Ethereum blockchain. Trace calls provide a granular view of what happens during the execution of a transaction, including internal transactions and function calls within smart contracts. This information is essential for debugging, auditing, and understanding the complex interactions within the Ethereum network. The base.trace\_calls table is a powerful tool for developers, auditors, and researchers working with base. It provides an in-depth view of transaction execution, enabling detailed analysis of smart contract interactions and internal transactions. This information is vital for ensuring the security, efficiency, and transparency of operations on the Ethereum network. ### [​](https://docs.chainbase.com/catalog/Base/Raw#column-descriptions-4) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Base/Raw#table-sample-4) Table Sample [​](https://docs.chainbase.com/catalog/Base/Raw#1-base-transaction-logs) 1\. base.transaction\_logs ------------------------------------------------------------------------------------------------------ ### [​](https://docs.chainbase.com/catalog/Base/Raw#table-description-5) Table Description This dataset holds detailed logs emitted during transactions by smart contract events. These logs are pivotal for tracking activities such as token transfers, contract updates, and custom event notifications set by contract developers. For instance, when a user transfers ERC-20 tokens, the transaction log would capture the ‘Transfer’ event with details like the sender’s address, recipient’s address, and the amount transferred. This information is crucial for applications that need to monitor and respond to specific contract activities. ### [​](https://docs.chainbase.com/catalog/Base/Raw#column-descriptions-5) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Base/Raw#table-sample-5) Table Sample [​](https://docs.chainbase.com/catalog/Base/Raw#1-base-transactions) 1\. base.transactions --------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Base/Raw#table-description-6) Table Description The dataset encompasses comprehensive details of all transactions on the network. It includes the initiating account, destination address, value transferred, gas used, and the data payload. For example, when a user sends Ether to another user, the transaction record would include the sender’s and receiver’s addresses, the amount of Ether sent, and the gas price paid for the transaction. Additionally, it also captures the nonce, which is the transaction count of the sender, helping in preventing double-spending and replay attacks. ### [​](https://docs.chainbase.com/catalog/Base/Raw#column-descriptions-6) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Base/Raw#table-sample-6) Table Sample [Abstracted](https://docs.chainbase.com/catalog/Base/Abstracted) [☆ Overview](https://docs.chainbase.com/catalog/Blast/Overview) ⌘I --- # Abstracted - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Optimism/Abstracted#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Optimism Abstracted [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1.optimism.token\_metas](https://docs.chainbase.com/catalog/Optimism/Abstracted#1-optimism-token-metas) * [Table Description](https://docs.chainbase.com/catalog/Optimism/Abstracted#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/Optimism/Abstracted#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/Optimism/Abstracted#table-sample) [​](https://docs.chainbase.com/catalog/Optimism/Abstracted#1-optimism-token-metas) 1.optimism.token\_metas ------------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Optimism/Abstracted#table-description) Table Description Token metadata in the context of blockchain and cryptocurrencies typically refers to the set of data that describes the characteristics and details of a particular token. This metadata can include information such as the token’s name, symbol, total supply, decimal precision, and other details relevant to its function and identity on the blockchain. It’s essentially the descriptive data that gives context and identity to a token, distinguishing it from other tokens within the same blockchain ecosystem. Metadata is crucial for understanding the nature and purpose of a token, especially in applications like wallets, exchanges, and decentralized applications (dApps) where users interact with various types of tokens. ### [​](https://docs.chainbase.com/catalog/Optimism/Abstracted#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Optimism/Abstracted#table-sample) Table Sample [☆ Overview](https://docs.chainbase.com/catalog/Optimism/Overview) [Raw](https://docs.chainbase.com/catalog/Optimism/Raw) ⌘I --- # Raw - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/BSC/Raw#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation BSC Raw [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1\. bsc.blocks](https://docs.chainbase.com/catalog/BSC/Raw#1-bsc-blocks) * [Table Description](https://docs.chainbase.com/catalog/BSC/Raw#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/BSC/Raw#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/BSC/Raw#table-sample) * [2\. bsc.contracts](https://docs.chainbase.com/catalog/BSC/Raw#2-bsc-contracts) * [Table Description](https://docs.chainbase.com/catalog/BSC/Raw#table-description-2) * [Column Descriptions](https://docs.chainbase.com/catalog/BSC/Raw#column-descriptions-2) * [Table Sample](https://docs.chainbase.com/catalog/BSC/Raw#table-sample-2) * [3\. bsc.token\_transfers](https://docs.chainbase.com/catalog/BSC/Raw#3-bsc-token-transfers) * [Table Description](https://docs.chainbase.com/catalog/BSC/Raw#table-description-3) * [Column Descriptions](https://docs.chainbase.com/catalog/BSC/Raw#column-descriptions-3) * [Table Sample](https://docs.chainbase.com/catalog/BSC/Raw#table-sample-3) * [4\. bsc.trace\_calls](https://docs.chainbase.com/catalog/BSC/Raw#4-bsc-trace-calls) * [Table Description](https://docs.chainbase.com/catalog/BSC/Raw#table-description-4) * [Column Descriptions](https://docs.chainbase.com/catalog/BSC/Raw#column-descriptions-4) * [Table Sample](https://docs.chainbase.com/catalog/BSC/Raw#table-sample-4) * [5\. bsc.transaction\_logs](https://docs.chainbase.com/catalog/BSC/Raw#5-bsc-transaction-logs) * [Table Description](https://docs.chainbase.com/catalog/BSC/Raw#table-description-5) * [Column Descriptions](https://docs.chainbase.com/catalog/BSC/Raw#column-descriptions-5) * [Table Sample](https://docs.chainbase.com/catalog/BSC/Raw#table-sample-5) * [6\. bsc.transactions](https://docs.chainbase.com/catalog/BSC/Raw#6-bsc-transactions) * [Table Description](https://docs.chainbase.com/catalog/BSC/Raw#table-description-6) * [Column Descriptions](https://docs.chainbase.com/catalog/BSC/Raw#column-descriptions-6) * [Table Sample](https://docs.chainbase.com/catalog/BSC/Raw#table-sample-6) [​](https://docs.chainbase.com/catalog/BSC/Raw#1-bsc-blocks) 1\. bsc.blocks ------------------------------------------------------------------------------ ### [​](https://docs.chainbase.com/catalog/BSC/Raw#table-description) Table Description The bsc.blocks table stores crucial data about the Ethereum blockchain’s block structure. Each block in the Ethereum blockchain contains a unique set of data that ensures the integrity and chronological order of transactions. Blocks are the building blocks of the Ethereum blockchain, and they contain several key components: 1. Block Header: This includes metadata such as the block number, timestamp, parent block hash, and nonce. The header is essential for maintaining the blockchain’s integrity and linking blocks together in a chain. 2. Transactions: Each block includes a list of transactions that have been validated and added to the blockchain. These transactions consist of various operations, such as transfers of Ether, execution of smart contracts, and other state changes. 3. Uncle Blocks (Ommer Blocks): These are blocks that were mined but not included in the main chain. They are referenced in the block to improve the chain’s security and reward miners for their efforts. 4. State Root: This is a cryptographic hash representing the state of the entire Ethereum network at the time the block was mined. It includes account balances, storage, and other state data. 5. Receipts Root: This is a hash of the receipts of all transactions included in the block. Receipts contain information about the execution of transactions, such as gas used and logs generated. The bsc.blocks table provides a detailed and organized view of the blockchain’s structure, allowing for efficient retrieval and analysis of blockchain data. This information is crucial for developers, researchers, and analysts working with the Ethereum blockchain, as it enables them to understand the state and evolution of the network. ### [​](https://docs.chainbase.com/catalog/BSC/Raw#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/BSC/Raw#table-sample) Table Sample [​](https://docs.chainbase.com/catalog/BSC/Raw#2-bsc-contracts) 2\. bsc.contracts ------------------------------------------------------------------------------------ ### [​](https://docs.chainbase.com/catalog/BSC/Raw#table-description-2) Table Description The bsc.contracts table contains essential data about smart contracts deployed on the Ethereum blockchain. Smart contracts are self-executing contracts with the terms of the agreement directly written into code. They are a fundamental aspect of Ethereum, enabling decentralized applications (DApps) and automating complex transactions without intermediaries. The bsc.contracts table includes several key components: 1. Contract Address: This is a unique identifier for each smart contract deployed on the Ethereum network. It is derived from the creator’s address and the transaction nonce. 2. Creator Address: This is the Ethereum address of the account that deployed the smart contract. It provides traceability and accountability for the origin of the contract. 3. Creation Transaction: This includes the transaction hash of the deployment transaction, linking the contract to the specific transaction that created it. 4. Bytecode: This is the compiled code of the smart contract that gets executed on the Ethereum Virtual Machine (EVM). It includes the contract’s logic and functions. 5. ABI (Application Binary Interface): The ABI defines the contract’s interface, including its functions, inputs, and outputs. It is crucial for interacting with the contract programmatically. 6. Source Code (optional): Some contracts include the original source code, providing transparency and enabling verification of the compiled bytecode. 7. Block Number: This indicates the block in which the smart contract was deployed, providing a chronological context for the contract’s creation. 8. Timestamp: The exact time when the smart contract was deployed, allowing for time-based analysis and tracking. ### [​](https://docs.chainbase.com/catalog/BSC/Raw#column-descriptions-2) Column Descriptions ### [​](https://docs.chainbase.com/catalog/BSC/Raw#table-sample-2) Table Sample [​](https://docs.chainbase.com/catalog/BSC/Raw#3-bsc-token-transfers) 3\. bsc.token\_transfers ------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/BSC/Raw#table-description-3) Table Description Token transfers in the context of blockchain data refer to the movement of digital tokens from one address to another. These transfers can be tracked on the blockchain, providing a transparent record of token movements. Here are some key points to understand about token transfers:Token transfers can be initiated by users or smart contracts. For example, a user can send tokens to another user, or a smart contract can transfer tokens to a user as part of a transaction.Token transfers can be tracked on the blockchain, providing a transparent record of token movements. This is particularly useful for auditing and compliance purposes. ### [​](https://docs.chainbase.com/catalog/BSC/Raw#column-descriptions-3) Column Descriptions ### [​](https://docs.chainbase.com/catalog/BSC/Raw#table-sample-3) Table Sample [​](https://docs.chainbase.com/catalog/BSC/Raw#4-bsc-trace-calls) 4\. bsc.trace\_calls ----------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/BSC/Raw#table-description-4) Table Description The bsc.trace\_calls table contains detailed data about the execution of transactions on the Ethereum blockchain. Trace calls provide a granular view of what happens during the execution of a transaction, including internal transactions and function calls within smart contracts. This information is essential for debugging, auditing, and understanding the complex interactions within the Ethereum network. The bsc.trace\_calls table is a powerful tool for developers, auditors, and researchers working with bsc. It provides an in-depth view of transaction execution, enabling detailed analysis of smart contract interactions and internal transactions. This information is vital for ensuring the security, efficiency, and transparency of operations on the Ethereum network. ### [​](https://docs.chainbase.com/catalog/BSC/Raw#column-descriptions-4) Column Descriptions ### [​](https://docs.chainbase.com/catalog/BSC/Raw#table-sample-4) Table Sample [​](https://docs.chainbase.com/catalog/BSC/Raw#5-bsc-transaction-logs) 5\. bsc.transaction\_logs --------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/BSC/Raw#table-description-5) Table Description This dataset holds detailed logs emitted during transactions by smart contract events. These logs are pivotal for tracking activities such as token transfers, contract updates, and custom event notifications set by contract developers. For instance, when a user transfers ERC-20 tokens, the transaction log would capture the ‘Transfer’ event with details like the sender’s address, recipient’s address, and the amount transferred. This information is crucial for applications that need to monitor and respond to specific contract activities. ### [​](https://docs.chainbase.com/catalog/BSC/Raw#column-descriptions-5) Column Descriptions ### [​](https://docs.chainbase.com/catalog/BSC/Raw#table-sample-5) Table Sample [​](https://docs.chainbase.com/catalog/BSC/Raw#6-bsc-transactions) 6\. bsc.transactions ------------------------------------------------------------------------------------------ ### [​](https://docs.chainbase.com/catalog/BSC/Raw#table-description-6) Table Description The dataset encompasses comprehensive details of all transactions on the network. It includes the initiating account, destination address, value transferred, gas used, and the data payload. For example, when a user sends Ether to another user, the transaction record would include the sender’s and receiver’s addresses, the amount of Ether sent, and the gas price paid for the transaction. Additionally, it also captures the nonce, which is the transaction count of the sender, helping in preventing double-spending and replay attacks. ### [​](https://docs.chainbase.com/catalog/BSC/Raw#column-descriptions-6) Column Descriptions ### [​](https://docs.chainbase.com/catalog/BSC/Raw#table-sample-6) Table Sample [Abstracted](https://docs.chainbase.com/catalog/BSC/Abstracted) [☆ Overview](https://docs.chainbase.com/catalog/Polygon/Overview) ⌘I --- # Raw - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Arbitrum/Raw#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Arbitrum Raw [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1.arbitrum.blocks](https://docs.chainbase.com/catalog/Arbitrum/Raw#1-arbitrum-blocks) * [Table Description](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/Arbitrum/Raw#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-sample) * [1.arbitrum.contracts](https://docs.chainbase.com/catalog/Arbitrum/Raw#1-arbitrum-contracts) * [Table Description](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-description-2) * [Column Descriptions](https://docs.chainbase.com/catalog/Arbitrum/Raw#column-descriptions-2) * [Table Sample](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-sample-2) * [1.arbitrum.token\_transfers](https://docs.chainbase.com/catalog/Arbitrum/Raw#1-arbitrum-token-transfers) * [Table Description](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-description-3) * [Column Descriptions](https://docs.chainbase.com/catalog/Arbitrum/Raw#column-descriptions-3) * [Table Sample](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-sample-3) * [1.arbitrum.trace\_calls](https://docs.chainbase.com/catalog/Arbitrum/Raw#1-arbitrum-trace-calls) * [Table Description](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-description-4) * [Column Descriptions](https://docs.chainbase.com/catalog/Arbitrum/Raw#column-descriptions-4) * [Table Sample](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-sample-4) * [1.arbitrum.transaction\_logs](https://docs.chainbase.com/catalog/Arbitrum/Raw#1-arbitrum-transaction-logs) * [Table Description](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-description-5) * [Column Descriptions](https://docs.chainbase.com/catalog/Arbitrum/Raw#column-descriptions-5) * [Table Sample](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-sample-5) * [1.arbitrum.transactions](https://docs.chainbase.com/catalog/Arbitrum/Raw#1-arbitrum-transactions) * [Table Description](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-description-6) * [Column Descriptions](https://docs.chainbase.com/catalog/Arbitrum/Raw#column-descriptions-6) * [Table Sample](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-sample-6) [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#1-arbitrum-blocks) 1.arbitrum.blocks ------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-description) Table Description The arbitrum.blocks table stores crucial data about the Ethereum blockchain’s block structure. Each block in the Ethereum blockchain contains a unique set of data that ensures the integrity and chronological order of transactions. Blocks are the building blocks of the Ethereum blockchain, and they contain several key components: 1. Block Header: This includes metadata such as the block number, timestamp, parent block hash, and nonce. The header is essential for maintaining the blockchain’s integrity and linking blocks together in a chain. 2. Transactions: Each block includes a list of transactions that have been validated and added to the blockchain. These transactions consist of various operations, such as transfers of Ether, execution of smart contracts, and other state changes. 3. Uncle Blocks (Ommer Blocks): These are blocks that were mined but not included in the main chain. They are referenced in the block to improve the chain’s security and reward miners for their efforts. 4. State Root: This is a cryptographic hash representing the state of the entire Ethereum network at the time the block was mined. It includes account balances, storage, and other state data. 5. Receipts Root: This is a hash of the receipts of all transactions included in the block. Receipts contain information about the execution of transactions, such as gas used and logs generated. The arbitrum.blocks table provides a detailed and organized view of the blockchain’s structure, allowing for efficient retrieval and analysis of blockchain data. This information is crucial for developers, researchers, and analysts working with the Ethereum blockchain, as it enables them to understand the state and evolution of the network. ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-sample) Table Sample [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#1-arbitrum-contracts) 1.arbitrum.contracts ------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-description-2) Table Description The arbitrum.contracts table contains essential data about smart contracts deployed on the Ethereum blockchain. Smart contracts are self-executing contracts with the terms of the agreement directly written into code. They are a fundamental aspect of Ethereum, enabling decentralized applications (DApps) and automating complex transactions without intermediaries. The arbitrum.contracts table includes several key components: 1. Contract Address: This is a unique identifier for each smart contract deployed on the Ethereum network. It is derived from the creator’s address and the transaction nonce. 2. Creator Address: This is the Ethereum address of the account that deployed the smart contract. It provides traceability and accountability for the origin of the contract. 3. Creation Transaction: This includes the transaction hash of the deployment transaction, linking the contract to the specific transaction that created it. 4. Bytecode: This is the compiled code of the smart contract that gets executed on the Ethereum Virtual Machine (EVM). It includes the contract’s logic and functions. 5. ABI (Application Binary Interface): The ABI defines the contract’s interface, including its functions, inputs, and outputs. It is crucial for interacting with the contract programmatically. 6. Source Code (optional): Some contracts include the original source code, providing transparency and enabling verification of the compiled bytecode. 7. Block Number: This indicates the block in which the smart contract was deployed, providing a chronological context for the contract’s creation. 8. Timestamp: The exact time when the smart contract was deployed, allowing for time-based analysis and tracking. ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#column-descriptions-2) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-sample-2) Table Sample [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#1-arbitrum-token-transfers) 1.arbitrum.token\_transfers -------------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-description-3) Table Description Token transfers in the context of blockchain data refer to the movement of digital tokens from one address to another. These transfers can be tracked on the blockchain, providing a transparent record of token movements. Here are some key points to understand about token transfers:Token transfers can be initiated by users or smart contracts. For example, a user can send tokens to another user, or a smart contract can transfer tokens to a user as part of a transaction.Token transfers can be tracked on the blockchain, providing a transparent record of token movements. This is particularly useful for auditing and compliance purposes. ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#column-descriptions-3) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-sample-3) Table Sample [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#1-arbitrum-trace-calls) 1.arbitrum.trace\_calls ------------------------------------------------------------------------------------------------------ ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-description-4) Table Description The arbitrum.trace\_calls table contains detailed data about the execution of transactions on the Ethereum blockchain. Trace calls provide a granular view of what happens during the execution of a transaction, including internal transactions and function calls within smart contracts. This information is essential for debugging, auditing, and understanding the complex interactions within the Ethereum network. The arbitrum.trace\_calls table is a powerful tool for developers, auditors, and researchers working with arbitrum. It provides an in-depth view of transaction execution, enabling detailed analysis of smart contract interactions and internal transactions. This information is vital for ensuring the security, efficiency, and transparency of operations on the Ethereum network. ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#column-descriptions-4) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-sample-4) Table Sample [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#1-arbitrum-transaction-logs) 1.arbitrum.transaction\_logs ---------------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-description-5) Table Description This dataset holds detailed logs emitted during transactions by smart contract events. These logs are pivotal for tracking activities such as token transfers, contract updates, and custom event notifications set by contract developers. For instance, when a user transfers ERC-20 tokens, the transaction log would capture the ‘Transfer’ event with details like the sender’s address, recipient’s address, and the amount transferred. This information is crucial for applications that need to monitor and respond to specific contract activities. ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#column-descriptions-5) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-sample-5) Table Sample [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#1-arbitrum-transactions) 1.arbitrum.transactions ------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-description-6) Table Description The dataset encompasses comprehensive details of all transactions on the network. It includes the initiating account, destination address, value transferred, gas used, and the data payload. For example, when a user sends Ether to another user, the transaction record would include the sender’s and receiver’s addresses, the amount of Ether sent, and the gas price paid for the transaction. Additionally, it also captures the nonce, which is the transaction count of the sender, helping in preventing double-spending and replay attacks. ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#column-descriptions-6) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Arbitrum/Raw#table-sample-6) Table Sample [Abstracted](https://docs.chainbase.com/catalog/Arbitrum/Abstracted) [☆ Overview](https://docs.chainbase.com/catalog/Optimism/Overview) ⌘I --- # Raw - Chainbase Docs [Skip to main content](https://docs.chainbase.com/catalog/Fantom/Raw#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Fantom Raw [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1\. fantom.blocks](https://docs.chainbase.com/catalog/Fantom/Raw#1-fantom-blocks) * [Table Description](https://docs.chainbase.com/catalog/Fantom/Raw#table-description) * [Column Descriptions](https://docs.chainbase.com/catalog/Fantom/Raw#column-descriptions) * [Table Sample](https://docs.chainbase.com/catalog/Fantom/Raw#table-sample) * [1\. fantom.contracts](https://docs.chainbase.com/catalog/Fantom/Raw#1-fantom-contracts) * [Table Description](https://docs.chainbase.com/catalog/Fantom/Raw#table-description-2) * [Column Descriptions](https://docs.chainbase.com/catalog/Fantom/Raw#column-descriptions-2) * [Table Sample](https://docs.chainbase.com/catalog/Fantom/Raw#table-sample-2) * [1\. fantom.token\_transfers](https://docs.chainbase.com/catalog/Fantom/Raw#1-fantom-token-transfers) * [Table Description](https://docs.chainbase.com/catalog/Fantom/Raw#table-description-3) * [Column Descriptions](https://docs.chainbase.com/catalog/Fantom/Raw#column-descriptions-3) * [Table Sample](https://docs.chainbase.com/catalog/Fantom/Raw#table-sample-3) * [1\. fantom.trace\_calls](https://docs.chainbase.com/catalog/Fantom/Raw#1-fantom-trace-calls) * [Table Description](https://docs.chainbase.com/catalog/Fantom/Raw#table-description-4) * [Column Descriptions](https://docs.chainbase.com/catalog/Fantom/Raw#column-descriptions-4) * [Table Sample](https://docs.chainbase.com/catalog/Fantom/Raw#table-sample-4) * [1\. fantom.transaction\_logs](https://docs.chainbase.com/catalog/Fantom/Raw#1-fantom-transaction-logs) * [Table Description](https://docs.chainbase.com/catalog/Fantom/Raw#table-description-5) * [Column Descriptions](https://docs.chainbase.com/catalog/Fantom/Raw#column-descriptions-5) * [Table Sample](https://docs.chainbase.com/catalog/Fantom/Raw#table-sample-5) * [1\. fantom.transactions](https://docs.chainbase.com/catalog/Fantom/Raw#1-fantom-transactions) * [Table Description](https://docs.chainbase.com/catalog/Fantom/Raw#table-description-6) * [Column Descriptions](https://docs.chainbase.com/catalog/Fantom/Raw#column-descriptions-6) * [Table Sample](https://docs.chainbase.com/catalog/Fantom/Raw#table-sample-6) [​](https://docs.chainbase.com/catalog/Fantom/Raw#1-fantom-blocks) 1\. fantom.blocks --------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#table-description) Table Description The fantom.blocks table stores crucial data about the Ethereum blockchain’s block structure. Each block in the Ethereum blockchain contains a unique set of data that ensures the integrity and chronological order of transactions. Blocks are the building blocks of the Ethereum blockchain, and they contain several key components: 1. Block Header: This includes metadata such as the block number, timestamp, parent block hash, and nonce. The header is essential for maintaining the blockchain’s integrity and linking blocks together in a chain. 2. Transactions: Each block includes a list of transactions that have been validated and added to the blockchain. These transactions consist of various operations, such as transfers of Ether, execution of smart contracts, and other state changes. 3. Uncle Blocks (Ommer Blocks): These are blocks that were mined but not included in the main chain. They are referenced in the block to improve the chain’s security and reward miners for their efforts. 4. State Root: This is a cryptographic hash representing the state of the entire Ethereum network at the time the block was mined. It includes account balances, storage, and other state data. 5. Receipts Root: This is a hash of the receipts of all transactions included in the block. Receipts contain information about the execution of transactions, such as gas used and logs generated. The fantom.blocks table provides a detailed and organized view of the blockchain’s structure, allowing for efficient retrieval and analysis of blockchain data. This information is crucial for developers, researchers, and analysts working with the Ethereum blockchain, as it enables them to understand the state and evolution of the network. ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#column-descriptions) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#table-sample) Table Sample [​](https://docs.chainbase.com/catalog/Fantom/Raw#1-fantom-contracts) 1\. fantom.contracts --------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#table-description-2) Table Description The fantom.contracts table contains essential data about smart contracts deployed on the Ethereum blockchain. Smart contracts are self-executing contracts with the terms of the agreement directly written into code. They are a fundamental aspect of Ethereum, enabling decentralized applications (DApps) and automating complex transactions without intermediaries. The fantom.contracts table includes several key components: 1. Contract Address: This is a unique identifier for each smart contract deployed on the Ethereum network. It is derived from the creator’s address and the transaction nonce. 2. Creator Address: This is the Ethereum address of the account that deployed the smart contract. It provides traceability and accountability for the origin of the contract. 3. Creation Transaction: This includes the transaction hash of the deployment transaction, linking the contract to the specific transaction that created it. 4. Bytecode: This is the compiled code of the smart contract that gets executed on the Ethereum Virtual Machine (EVM). It includes the contract’s logic and functions. 5. ABI (Application Binary Interface): The ABI defines the contract’s interface, including its functions, inputs, and outputs. It is crucial for interacting with the contract programmatically. 6. Source Code (optional): Some contracts include the original source code, providing transparency and enabling verification of the compiled bytecode. 7. Block Number: This indicates the block in which the smart contract was deployed, providing a chronological context for the contract’s creation. 8. Timestamp: The exact time when the smart contract was deployed, allowing for time-based analysis and tracking. ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#column-descriptions-2) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#table-sample-2) Table Sample [​](https://docs.chainbase.com/catalog/Fantom/Raw#1-fantom-token-transfers) 1\. fantom.token\_transfers ---------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#table-description-3) Table Description Token transfers in the context of blockchain data refer to the movement of digital tokens from one address to another. These transfers can be tracked on the blockchain, providing a transparent record of token movements. Here are some key points to understand about token transfers:Token transfers can be initiated by users or smart contracts. For example, a user can send tokens to another user, or a smart contract can transfer tokens to a user as part of a transaction.Token transfers can be tracked on the blockchain, providing a transparent record of token movements. This is particularly useful for auditing and compliance purposes. ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#column-descriptions-3) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#table-sample-3) Table Sample [​](https://docs.chainbase.com/catalog/Fantom/Raw#1-fantom-trace-calls) 1\. fantom.trace\_calls -------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#table-description-4) Table Description The fantom.trace\_calls table contains detailed data about the execution of transactions on the Ethereum blockchain. Trace calls provide a granular view of what happens during the execution of a transaction, including internal transactions and function calls within smart contracts. This information is essential for debugging, auditing, and understanding the complex interactions within the Ethereum network. The fantom.trace\_calls table is a powerful tool for developers, auditors, and researchers working with fantom. It provides an in-depth view of transaction execution, enabling detailed analysis of smart contract interactions and internal transactions. This information is vital for ensuring the security, efficiency, and transparency of operations on the Ethereum network. ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#column-descriptions-4) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#table-sample-4) Table Sample [​](https://docs.chainbase.com/catalog/Fantom/Raw#1-fantom-transaction-logs) 1\. fantom.transaction\_logs ------------------------------------------------------------------------------------------------------------ ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#table-description-5) Table Description This dataset holds detailed logs emitted during transactions by smart contract events. These logs are pivotal for tracking activities such as token transfers, contract updates, and custom event notifications set by contract developers. For instance, when a user transfers ERC-20 tokens, the transaction log would capture the ‘Transfer’ event with details like the sender’s address, recipient’s address, and the amount transferred. This information is crucial for applications that need to monitor and respond to specific contract activities. ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#column-descriptions-5) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#table-sample-5) Table Sample [​](https://docs.chainbase.com/catalog/Fantom/Raw#1-fantom-transactions) 1\. fantom.transactions --------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#table-description-6) Table Description The dataset encompasses comprehensive details of all transactions on the network. It includes the initiating account, destination address, value transferred, gas used, and the data payload. For example, when a user sends Ether to another user, the transaction record would include the sender’s and receiver’s addresses, the amount of Ether sent, and the gas price paid for the transaction. Additionally, it also captures the nonce, which is the transaction count of the sender, helping in preventing double-spending and replay attacks. ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#column-descriptions-6) Column Descriptions ### [​](https://docs.chainbase.com/catalog/Fantom/Raw#table-sample-6) Table Sample [☆ Overview](https://docs.chainbase.com/catalog/Fantom/Overview) [☆ Overview](https://docs.chainbase.com/catalog/Tron/Overview) ⌘I --- # Welcome - Chainbase Docs [Skip to main content](https://docs.chainbase.com/theia/World_model/welcome#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Crypto World Model Welcome [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [What is Crypto World Model?](https://docs.chainbase.com/theia/World_model/welcome#what-is-crypto-world-model) Chainbase is building an crypto world model, Theia, which is designed to learn blockchain data and realize simulation and reasoning of the native blockchain environment. Agents built based on it can effectively understand, predict and interact with the blockchain. Chainbase assembled a team led by a professor in the field of AI to build the model to support native crypto applications, including AI crypto games, DeFi, security, social, asset management, and more. [​](https://docs.chainbase.com/theia/World_model/welcome#what-is-crypto-world-model) What is Crypto World Model? ------------------------------------------------------------------------------------------------------------------- The crypto world is built on massive and rapidly growing blockchain data, which contains an abundance of knowledge and underlying opportunities. Chainbase continually extracts, records, and organizes this data, summarizing it for downstream users. However, a significant and persistent challenge is that the vast “dark knowledge” within crypto data cannot be effectively organized solely through traditional databases and limited human effort. Accessing and interpreting this knowledge easily and conveniently remains a challenge for crypto participants. [Theia](https://docs.chainbase.com/theia/World_model/theia) ⌘I --- # Theia - Chainbase Docs [Skip to main content](https://docs.chainbase.com/theia/World_model/theia#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Crypto World Model Theia [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [How do we build Theia?](https://docs.chainbase.com/theia/World_model/theia#how-do-we-build-theia) * [Capabilities of Theia](https://docs.chainbase.com/theia/World_model/theia#capabilities-of-theia) * [Summary](https://docs.chainbase.com/theia/World_model/theia#summary) We have developed a foundational **Crypto World Model (Theia)** on the Chainbase hyperdata network. Theia aims to transform vast amounts of on-chain dark knowledge into comprehensive intelligence for humans in a trustworthy manner. This is accomplished by distilling knowledge from both language models and the Chainbase hyperdata network through model training. [​](https://docs.chainbase.com/theia/World_model/theia#how-do-we-build-theia) How do we build Theia? ------------------------------------------------------------------------------------------------------- We propose a model tuning algorithm for Theia, **Decentralized Weight-Decomposed Low-Rank Adaptation (D2ORAD^2ORAD2ORA)** technique by revamping the [DORADORADORA by NVIDIA](https://research.nvidia.com/publication/2024-07_dora-weight-decomposed-low-rank-adaptation) , which decomposes a large language model into magnitude and direction components in a trustworthy manner. By feeding the model with on-chain data, we derive the crypto magnitude vector (McM\_cMc​) and the directional matrix (DcD\_cDc​). The product of these components represents a crypto-oriented parameter matrix that encapsulates the extensive knowledge within the crypto space. The decentralized training approach ensures data security, model robustness, and result transparency. Consequently, the crypto knowledge is condensed into the crypto-oriented matrix, independent of the large language model (LLM), allowing it to be enhanced with future data or on-chain activities, thus evolving into an all-in-one expert in crypto. [​](https://docs.chainbase.com/theia/World_model/theia#capabilities-of-theia) Capabilities of Theia ------------------------------------------------------------------------------------------------------ Unlike existing crypto AI projects, Theia offers a complete reasoning chain for question answering, providing transparent and trustworthy results. It learns crypto patterns from extensive on-chain and off-chain data and spatial-temporal activities, and its responses are based on causal reasoning with these crypto patterns. Ultimately, Theia consists of a powerful LLM parameter matrix operating with the crypto-oriented parameter matrix and crypto patterns. To ensure up-to-date intelligence with reliable arguments, we integrate Theia with the real-time hyperdata network and an Internet AI reader via Retrieval-Augmented Generation (RAG). Leveraging Theia’s intelligence, users can also build task-specific AI models on top of it. [​](https://docs.chainbase.com/theia/World_model/theia#summary) Summary -------------------------------------------------------------------------- Theia represents the next generation of Crypto World Models, derived from model training using the novel D2ORAD^2ORAD2ORA algorithm and crypto patterns identified by machine intelligence. It offers transparent and trustworthy knowledge to the web3 community, illuminating the hidden knowledge within the crypto world. [Welcome](https://docs.chainbase.com/theia/World_model/welcome) [Features](https://docs.chainbase.com/theia/World_model/features) ⌘I --- # Overview - Chainbase Docs [Skip to main content](https://docs.chainbase.com/theia/TheiaChat/overview#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation TheiaChat Overview [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [How do interactions with TheiaChat enhance the Chainbase Network?](https://docs.chainbase.com/theia/TheiaChat/overview#how-do-interactions-with-theiachat-enhance-the-chainbase-network) TheiaChat is an AI agent built by Chainabse Labs based on Theia, the first crypto world model. TheiaChat provides an interface through which non-expert users can interact with the Chainbase Network, opening up the ability to obtain on-chain data intelligence to everyone for the first time. Users can enhance the Chainabse Network when interacting with TheiaChat and benefit from it. This mainly involves two types of users: 1. **Non-Expert Users:** people without blockchain knowledge and skills, such as blockchain beginners. They can enhance the Chainbase Network by having conversations with TheiaChat and providing feedback on the results of the conversations, and the network rewards serious and honest users. 2. **Expert Users:** People with blockchain knowledge and skills, such as professional traders and security experts. They can enhance the Chainbase Network by building Theia Task Models in TheiaChat, and the network will reward Task Model builders with high adoption. Chainbase Labs built the **Theia Security Model (TSM)** as an example to show the ability to build a Task Model based on the crypto world model Theia in TheiaChat. It is a security expert to offer advice in the crypto world, e.g., how to protect my wallet and money. It is constructed by training Theia with security books and community advice. [​](https://docs.chainbase.com/theia/TheiaChat/overview#how-do-interactions-with-theiachat-enhance-the-chainbase-network) How do interactions with TheiaChat enhance the Chainbase Network? ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Every user interaction with TheiaChat and every task model built are enhancements to the under hood chainbase network. The basic logic is that these actions will directly trigger **Change Data Captures (CDCs, aka Changelog)**, and these contents are permanently stored on Arweave. These are powerful complement to the Chainbase Network. It is also the first time that users can contribute data to enhance the Chainbase Network. Before this, only developers could enhance the network by building Manuscripts in the network. **This is the historical transformation of Chainbase Network from targeting 300,000 developers to targeting 30 million to 300 million users.** In addition, every Changelog is a transaction on the Chainbase Network, which is permanently recorded on the Chainbase Network, and is public, censorship-resistant and cannot be manipulated. Its traceability guarantees the data income rights of every data producer. [Features](https://docs.chainbase.com/theia/World_model/features) [Task Models](https://docs.chainbase.com/theia/TheiaChat/task-models) ⌘I --- # How to Create Task Models - Chainbase Docs [Skip to main content](https://docs.chainbase.com/theia/TheiaChat/create-task-models#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation TheiaChat How to Create Task Models [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [Methodology](https://docs.chainbase.com/theia/TheiaChat/create-task-models#methodology) * [1\. Prompt Engineering](https://docs.chainbase.com/theia/TheiaChat/create-task-models#1-prompt-engineering) * [2\. Retrieval-Augmented Generation (RAG)](https://docs.chainbase.com/theia/TheiaChat/create-task-models#2-retrieval-augmented-generation-rag) * [3\. Model Self-Tuning](https://docs.chainbase.com/theia/TheiaChat/create-task-models#3-model-self-tuning) * [How to create Theia Task Models in Theia?](https://docs.chainbase.com/theia/TheiaChat/create-task-models#how-to-create-theia-task-models-in-theia) [​](https://docs.chainbase.com/theia/TheiaChat/create-task-models#methodology) Methodology --------------------------------------------------------------------------------------------- Theia Task Models is constructed using prompt and data engineering. We introduce these novel concepts including prompt engineering, RAG, and model self-tuning, which is used to build Theia Task Models. ### [​](https://docs.chainbase.com/theia/TheiaChat/create-task-models#1-prompt-engineering) 1\. Prompt Engineering Prompt engineering refers to a series of instruction for Theia. It can trigger Theia to wake up specific capability in some field and work as a task model as instructed. The instruction should be clear and the output format can be defined. To build a good task model, we normally tell Theia three important messages: role, hint for reasoning and generation, and goal. For example, to build a crypto investment advisor, we can write the prompt including the three messages: * **Role:** Theia, you are an investment advisor. * **Hint:** Whenever I provide you a whitepaper of a project, please analyze the whitepaper and search the news of this project. * **Goal:** Then generate an investment advisory report. Thus, the complete prompt is “Theia, you are an investment advisor. Whenever I provide you a whitepaper of a project, please analyze the whitepaper and news of this project. Then generate an investment advisory report.” ### [​](https://docs.chainbase.com/theia/TheiaChat/create-task-models#2-retrieval-augmented-generation-rag) 2\. Retrieval-Augmented Generation (RAG) RAG is a method to integrates retrieval-based models with AI models, utilizing the intelligence of AI to analyze data and generate results according to specific objectives. It mainly consists of three steps: * **Data Retrieval:** Retrieve relevant information from external datasets, e.g., the price variation of BTC in the past 3 months. * **Task Objective:** Define the objective of RAG by prompt engineering, e.g., “find the buying and selling signals according to the MACD”. * **Augmented Generation:** Input the retrieved data into the Theia Task Model to get the augmented results. Note that the data quality is one of the keys that decides the success of RAG. However, to obtain high-quality on-chain data, developers usually spent lots of time on extracting and aggregating data from blockchain. In Theia ecosystem, we are supported by Chainbase omnichain datanetwork, therefore providing massive high-quality data for users to build Theia task model in a cost-ffective and efficient fashion. ### [​](https://docs.chainbase.com/theia/TheiaChat/create-task-models#3-model-self-tuning) 3\. Model Self-Tuning Though prompt engineering and RAG can utilize the capabilities of Theia, the intelligence of Theia is actually not improved in the parameter level, e.g., the intrinsic IQ of Theia. To really increase the IQ of Theia for higher-level task, model self-tuning is proposed. As our community uses Theia and its task models, many dialogues data are generated. They are the new “courses and books” Theia needs to read and learn. Furthermore, the developers are encouraged to upload manually labelled data that is also valuable to increase the Theia intelligence. The more data Theia sees, the higher intelligence it has. The model self-tuning is based on the **Decentralized Weight-Decomposed Low-Rank Adaptation (D2ORAD^2ORAD2ORA)** algorithm that fine-tunes Theia periodically. The D2ORAD^2ORAD2ORA algorithm focuses on updating the crypto-specific parameter matrix, ensuring that Theia Task Models continually enhance their expertise in the crypto domain as more and more users build task models upon Theia. [​](https://docs.chainbase.com/theia/TheiaChat/create-task-models#how-to-create-theia-task-models-in-theia) How to create Theia Task Models in Theia? -------------------------------------------------------------------------------------------------------------------------------------------------------- Coming soon (Phase 3) [Task Models](https://docs.chainbase.com/theia/TheiaChat/task-models) [Open APIs](https://docs.chainbase.com/theia/Developers/Open-APIs) ⌘I --- # Task Models - Chainbase Docs [Skip to main content](https://docs.chainbase.com/theia/TheiaChat/task-models#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation TheiaChat Task Models [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [Potential Applications of Theia Task Model](https://docs.chainbase.com/theia/TheiaChat/task-models#potential-applications-of-theia-task-model) * [1\. Theia Security Task Model](https://docs.chainbase.com/theia/TheiaChat/task-models#1-theia-security-task-model) * [2\. Theia Trading Task Model](https://docs.chainbase.com/theia/TheiaChat/task-models#2-theia-trading-task-model) * [3\. Theia Opinion Task Model](https://docs.chainbase.com/theia/TheiaChat/task-models#3-theia-opinion-task-model) * [Summary](https://docs.chainbase.com/theia/TheiaChat/task-models#summary) To trigger the versatile capabilities of Theia in the crypto world, we propose Theia Task Model built upon Theia model. Theia Task Model is designed to serve various needs within the crypto world, and is open to developer community that maximizes its value. Briefly speaking, developers can leverage prompt engineering, Retrieval-Augmented Generation (RAG) and real-time on-chain data, to provide specialized functions such as trading Task Model, security Task Model, and public opinion monitoring Task Model. Moreover, integrated with Chainbase hyperdata network, Theia Task Models are capable of interpreting these complex data and offering actionable insights, making them invaluable tools for users navigating the crypto ecosystem. [​](https://docs.chainbase.com/theia/TheiaChat/task-models#potential-applications-of-theia-task-model) Potential Applications of Theia Task Model ---------------------------------------------------------------------------------------------------------------------------------------------------- ### [​](https://docs.chainbase.com/theia/TheiaChat/task-models#1-theia-security-task-model) 1\. Theia Security Task Model Theia Security Task Model could be focused on enhancing the security of wallets, projects, and overall blockchain infrastructure. Possible capabilities include: * **Vulnerability Assessment:** Conduct thorough security assessments of wallets and blockchain projects, identifying potential vulnerabilities and recommending mitigation strategies. * **Real-Time Threat Monitoring:** Utilize real-time data to detect and respond to security threats, ensuring timely intervention and protection against attacks. * **Compliance and Audits:** Assist in ensuring compliance with security standards and conducting regular security audits to maintain robust security postures. ### [​](https://docs.chainbase.com/theia/TheiaChat/task-models#2-theia-trading-task-model) 2\. Theia Trading Task Model Theia Trading Task Model could be developed to assist users in creating and optimizing trading strategies. Potential features include: * **Market Trend Analysis:** Monitor and analyze market movements, historical data, and emerging trends to provide actionable insights. * **Strategy Optimization:** Suggest and optimize trading strategies based on the latest data and patterns, improving decision-making and potential returns. * **Risk Management:** Evaluate and manage trading risks by assessing market volatility and other risk factors, offering tailored advice to mitigate potential losses. ### [​](https://docs.chainbase.com/theia/TheiaChat/task-models#3-theia-opinion-task-model) 3\. Theia Opinion Task Model Theia Opinion Task Model could specialize in monitoring and analyzing public opinions across social networks and other platforms. Key functionalities might include: * **Sentiment Analysis:** Track and analyze sentiment around specific topics, projects, or cryptocurrencies, providing valuable insights into public perception. * **Trend Detection:** Identify emerging trends and shifts in public opinion, helping users stay ahead of market sentiment and community dynamics. * **Influence Measurement:** Evaluate the impact of key influencers and events on public opinion, offering insights into how these factors shape market and community behavior. [​](https://docs.chainbase.com/theia/TheiaChat/task-models#summary) Summary ------------------------------------------------------------------------------ Theia Task Model is a powerful and adaptable system designed to meet the diverse needs of the crypto world. By leveraging advanced technologies like RAG and real-time on-chain data, Theia Task Models provide users with actionable insights and specialized functions. Potential applications such as trading strategy development, security analysis, and public opinion monitoring illustrate the wide-ranging capabilities of Theia Task Model, making it an invaluable partner in navigating the complex and rapidly evolving crypto ecosystem. [Overview](https://docs.chainbase.com/theia/TheiaChat/overview) [How to Create Task Models](https://docs.chainbase.com/theia/TheiaChat/create-task-models) ⌘I --- # Features - Chainbase Docs [Skip to main content](https://docs.chainbase.com/theia/World_model/features#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Crypto World Model Features [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [1\. Crypto Native with High Performance](https://docs.chainbase.com/theia/World_model/features#1-crypto-native-with-high-performance) * [2\. Security](https://docs.chainbase.com/theia/World_model/features#2-security) * [3\. Transparency](https://docs.chainbase.com/theia/World_model/features#3-transparency) In Web3, Theia excels with its native high performance, robust security measures, and transparent reasoning, making it a next-generation Crypto World Model tailored for the Web3 community. #### [​](https://docs.chainbase.com/theia/World_model/features#1-crypto-native-with-high-performance) 1\. Crypto Native with High Performance Theia is a native World Model for the crypto ecosystem, trained using the on-chain data from Chainbase hyperdata network and off-chain data from the Internet. It leverages a unique **Decentralized Weight-Decomposed Low-Rank Adaptation (D2ORAD^2ORAD2ORA) algorithm**, which allows for training a specialized crypto parameter matrix without modifying the parameters of the base natural language processing (NLP) model. By combining these parameters, Theia integrates the robust natural language capabilities of large language models (LLMs) with expert-level knowledge of both on-chain and off-chain crypto data. This results in superior Web3 attributes and performance compared to models like ChatGPT. #### [​](https://docs.chainbase.com/theia/World_model/features#2-security) 2\. Security To enhance security, Theia employs generative AI to periodically update its digital persona. AI models are susceptible to attacks where adversaries can exploit model parameters to induce errors or generate targeted results. This vulnerability arises from the ability to reverse-engineer gradients from the model’s parameters. Theia addresses this issue with an innovative **Generate to Defend (G2D)** algorithm, which uses generative diffusion models to capture and randomize the parameter space. This approach periodically refreshes Theia’s parameters, preventing exhaustive attacks and model leaks with minimal cost. #### [​](https://docs.chainbase.com/theia/World_model/features#3-transparency) 3\. Transparency Theia is built to be transparent through the extensive learning and summarization of crypto patterns from both on-chain and off-chain data. These patterns represent explicit rules inherent in the Web3 world. When users interact with Theia, they can transparently observe its reasoning process, ensuring reliability. Additionally, users have the ability to manually modify or add new patterns, allowing them to contribute their own crypto insights and perspectives, further enhancing Theia’s intelligence. [D2oRA\ -----\ \ D2ORAD^2ORAD2ORA extends the DoRA algorithm to a decentralized environment, enabling distributed training across multiple servers.](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA) [G2D\ ---\ \ G2D disrupts the attackers’ ability to reliably exploit the model, thus enhancing its robustness against adversarial threats](https://docs.chainbase.com/theia/Developers/Glossary/G2D) [Theia](https://docs.chainbase.com/theia/World_model/theia) [Overview](https://docs.chainbase.com/theia/TheiaChat/overview) ⌘I --- # Open APIs - Chainbase Docs [Skip to main content](https://docs.chainbase.com/theia/Developers/Open-APIs#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Developers Open APIs [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) _This model is currently in its early stages and is not yet open to the public. If you want to experience it, please [click here](https://chainbase.com/contact) to apply and contact us._ [How to Create Task Models](https://docs.chainbase.com/theia/TheiaChat/create-task-models) [Decentralized DORA Tuning](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA) ⌘I --- # Thesis - Chainbase Docs [Skip to main content](https://docs.chainbase.com/theia/Resources/Whitepaper#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Resources Thesis [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [Coming soon](https://docs.chainbase.com/theia/Resources/Whitepaper#coming-soon) [​](https://docs.chainbase.com/theia/Resources/Whitepaper#coming-soon) Coming soon ------------------------------------------------------------------------------------- [Roadmap](https://docs.chainbase.com/theia/Resources/Roadmap) [FAQs](https://docs.chainbase.com/theia/Resources/FAQs) ⌘I --- # FAQs - Chainbase Docs [Skip to main content](https://docs.chainbase.com/theia/Resources/FAQs#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Resources FAQs [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [Coming soon](https://docs.chainbase.com/theia/Resources/FAQs#coming-soon) [​](https://docs.chainbase.com/theia/Resources/FAQs#coming-soon) Coming soon ------------------------------------------------------------------------------- [Thesis](https://docs.chainbase.com/theia/Resources/Whitepaper) ⌘I --- # Roadmap - Chainbase Docs [Skip to main content](https://docs.chainbase.com/theia/Resources/Roadmap#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Resources Roadmap [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [Phase 1: Theia Demo Online](https://docs.chainbase.com/theia/Resources/Roadmap#phase-1%3A-theia-demo-online) * [Phase 2: Theia Agent Ecosystem](https://docs.chainbase.com/theia/Resources/Roadmap#phase-2%3A-theia-agent-ecosystem) * [Phase 3: Continuous Model Tuning and Patterns Accumulation](https://docs.chainbase.com/theia/Resources/Roadmap#phase-3%3A-continuous-model-tuning-and-patterns-accumulation) Theia is the next-generation crypto world model that provides foundation knowledge and AI capability for the web3 era. To achieve this goal, the roadmap details the path to more intelligent, secure and transparent Theia model. [​](https://docs.chainbase.com/theia/Resources/Roadmap#phase-1:-theia-demo-online) Phase 1: Theia Demo Online ---------------------------------------------------------------------------------------------------------------- 📅 June 20, 2024, 12:25:00 PM +UTC To let every crypto participator touch the crypto intelligence of Theia, we first open the interactive demo for Theia. It connects users with crypto knowledge in an exciting way - talk to Theia and get what you want. [​](https://docs.chainbase.com/theia/Resources/Roadmap#phase-2:-theia-agent-ecosystem) Phase 2: Theia Agent Ecosystem ------------------------------------------------------------------------------------------------------------------------ 📅 August 1, 2024, 12:25:00 PM +UTC **1\. Knowledge Construction and Theia Expert Model (Agent)** We will create and expand the “Crypto Patterns” (i.e., expert and AI knowledge database) with community contributions and provide an interface to build Theia Agent Expert and any users can upload their own prompts (expert experiences) through this interface. Once reviewed by us, the agent can run on our model and interact with the Chainbase Network. **2\. Marketplace** Open the marketplace for the agents built in Phase Two, allowing any Chainbase user to select specific agents from the marketplace to serve specific goals. [​](https://docs.chainbase.com/theia/Resources/Roadmap#phase-3:-continuous-model-tuning-and-patterns-accumulation) Phase 3: Continuous Model Tuning and Patterns Accumulation -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- To continuously increase the Theia intelligence, we will fine-tune our model periodically, and encourage the community to enrich the “crypto patterns”. [Generate to Defend (G2D)](https://docs.chainbase.com/theia/Developers/Glossary/G2D) [Thesis](https://docs.chainbase.com/theia/Resources/Whitepaper) ⌘I --- # Decentralized DORA Tuning - Chainbase Docs [Skip to main content](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Glossary Decentralized DORA Tuning [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [Abstract](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#abstract) * [Algorithm](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#algorithm) * [Step 1: Initialization](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#step-1%3A-initialization) * [Step 2: Decomposition](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#step-2%3A-decomposition) * [Step 3: Distributed Training](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#step-3%3A-distributed-training) * [Step 4: Aggregation](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#step-4%3A-aggregation) * [Step 5: Merging](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#step-5%3A-merging) * [Step 6: Return Updated Weights](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#step-6%3A-return-updated-weights) * [Summary](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#summary) ### [​](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#abstract) Abstract D2ORAD^2ORAD2ORA (Decentralized Weight-Decomposed Low-Rank Adaptation) extends the DoRA algorithm to a decentralized environment, enabling distributed training across multiple servers. ### [​](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#algorithm) D2ORAD^2ORAD2ORA Algorithm #### [​](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#step-1:-initialization) Step 1: Initialization We first initialize the parameter matrices of Theia and the low-rank matrices. * **Magnitude Vector Initialization**: Initialize the magnitude vector mmm using the column-wise norm of the pre-trained weight matrix W0W\_0W0​: m\=∣∣W0∣∣cm = ||W\_0||\_cm\=∣∣W0​∣∣c​ * **Directional Matrix Initialization**: Set the directional matrix VVV to the pre-trained weight matrix W0W\_0W0​: V\=W0V = W\_0V\=W0​ * **Low-Rank Matrices Initialization**: Initialize the low-rank matrices BBB and AAA for the LoRA method. #### [​](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#step-2:-decomposition) Step 2: Decomposition Decompose the pre-trained weight matrix W0W\_0W0​ into its magnitude and direction components. The pre-trained weight is directly derived from the NLP model. * **Magnitude Decomposition**: m\=∣∣W0∣∣cm = ||W\_0||\_cm\=∣∣W0​∣∣c​ * **Directional Decomposition**: V\=W0/∣∣W0∣∣cV = W\_0 / ||W\_0||\_cV\=W0​/∣∣W0​∣∣c​ #### [​](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#step-3:-distributed-training) Step 3: Distributed Training For each server in the decentralized network, perform the following: * **Distribution**: Distribute the initialized mmm, VVV, BBB, and AAA to all servers. * **Iterations**: For each iteration ttt from 1 to TTT: * **Weight Update Calculation**: Compute the weight update ΔW\\Delta WΔW using the low-rank adaptation method: ΔW\=BA\\Delta W = BAΔW\=BA * **Magnitude Vector Update**: Update the magnitude vector mmm: m\=m−η∇mL(m,V)m = m - \\eta \\nabla\_m L(m, V)m\=m−η∇m​L(m,V) * **Directional Matrix Update**: Update the low-rank matrices BBB and AAA with gradient descent: B\=B−η∇BL(B,A)B = B - \\eta \\nabla\_B L(B, A)B\=B−η∇B​L(B,A) A\=A−η∇AL(B,A)A = A - \\eta \\nabla\_A L(B, A)A\=A−η∇A​L(B,A) #### [​](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#step-4:-aggregation) Step 4: Aggregation After all iterations are completed, collect updates from all servers and aggregate them: * **Magnitude Vector Aggregation**: m′\=aggregate(m)m' = \\text{aggregate}(m)m′\=aggregate(m) * **Directional Matrix Aggregation**: V′\=aggregate(V)V' = \\text{aggregate}(V)V′\=aggregate(V) * **Low-Rank Matrices Aggregation**: B′\=aggregate(B)B' = \\text{aggregate}(B)B′\=aggregate(B) A′\=aggregate(A)A' = \\text{aggregate}(A)A′\=aggregate(A) #### [​](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#step-5:-merging) Step 5: Merging Merge the updated components to form the final weight matrix: * **Final Weights Calculation**: W′\=m′V′∣∣V′∣∣c+B′A′W' = m' \\frac{V'}{||V'||\_c} + B'A'W′\=m′∣∣V′∣∣c​V′​+B′A′ #### [​](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#step-6:-return-updated-weights) Step 6: Return Updated Weights Return the updated weights W′W'W′ as the final output of the algorithm. We use it as the weight parameters of Theia. ### [​](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA#summary) Summary D^2ORA enhances the capabilities of DoRA by enabling decentralized training across multiple servers. This approach leverages blockchain technology to ensure trustworthiness, making it suitable for training AI models in a distributed and secure environment. [Open APIs](https://docs.chainbase.com/theia/Developers/Open-APIs) [Generate to Defend (G2D)](https://docs.chainbase.com/theia/Developers/Glossary/G2D) ⌘I --- # Generate to Defend (G2D) - Chainbase Docs [Skip to main content](https://docs.chainbase.com/theia/Developers/Glossary/G2D#content-area) [Chainbase Docs home page![light logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/light.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=7cb5244aad3cbe4b0ac4e9fb4dd77beb)![dark logo](https://mintcdn.com/chainbase/Z9hOGYoIjrBOu0cO/logo/dark.svg?fit=max&auto=format&n=Z9hOGYoIjrBOu0cO&q=85&s=2fae14453edda8ef41eee6ee4824f33a)](https://docs.chainbase.com/) Search... ⌘K Search... Navigation Glossary Generate to Defend (G2D) [Learn and build](https://docs.chainbase.com/introduction/about) [Run a node](https://docs.chainbase.com/node/introduction) [Data Catalog](https://docs.chainbase.com/catalog/overview) [Data Platform](https://docs.chainbase.com/platform/overview) [Crypto World Model](https://docs.chainbase.com/theia/World_model/welcome) [API Reference](https://docs.chainbase.com/api-reference/overview) On this page * [Necessity](https://docs.chainbase.com/theia/Developers/Glossary/G2D#necessity) * [Generate to Defend (G2D) Algorithm](https://docs.chainbase.com/theia/Developers/Glossary/G2D#generate-to-defend-g2d-algorithm) [​](https://docs.chainbase.com/theia/Developers/Glossary/G2D#necessity) Necessity ------------------------------------------------------------------------------------ For any AI models, adversarial attacks occur because attackers exploit vulnerabilities in the model’s parameters by crafting inputs that cause the model to make incorrect predictions. These attacks are particularly effective when the model parameters remain static, allowing attackers ample time to probe and understand the model’s weaknesses. The necessity of the Generate to Defend (G2D) algorithm arises from the need to counteract these attacks by periodically regenerating model parameters, thereby preventing attackers from gaining prolonged access to a consistent set of parameters. By continually altering the model parameters while maintaining performance, G2D disrupts the attackers’ ability to reliably exploit the model, thus enhancing its robustness against adversarial threats, similar to frequently changing passwords to increase security. ### [​](https://docs.chainbase.com/theia/Developers/Glossary/G2D#generate-to-defend-g2d-algorithm) Generate to Defend (G2D) Algorithm The G2D algorithm periodically generates new model parameters to prevent adversarial attacks by ensuring that the model parameters are not exposed for extended periods. The key idea is to tailor a diffusion model to create new parameters that maintain the model’s performance while being sufficiently different from the original parameters. This is achieved by adding a regularizer to the diffusion process that maximizes the L1 distance between the generated parameters and the original parameters. **1\. Preliminaries of Diffusion Models:** Diffusion models consist of forward and reverse processes indexed by timesteps. We summarize these processes below: **Forward Process:** Given a sample x0∼q(x)x\_0 \\sim q(x)x0​∼q(x), Gaussian noise is progressively added for TTT steps to obtain x1,x2,…,xTx\_1, x\_2, \\ldots, x\_Tx1​,x2​,…,xT​. This process is described by: q(xt∣xt−1)\=N(xt;1−βtxt−1,βtI)q(x\_t | x\_{t-1}) = \\mathcal{N}(x\_t; \\sqrt{1 - \\beta\_t} x\_{t-1}, \\beta\_t I)q(xt​∣xt−1​)\=N(xt​;1−βt​​xt−1​,βt​I) **Reverse Process:** The reverse process aims to train a denoising network to remove the noise from xtx\_txt​, moving backward from xTx\_TxT​ to x0x\_0x0​: pθ(xt−1∣xt)\=N(xt−1;μθ(xt,t),Σθ(xt,t))p\_\\theta(x\_{t-1} | x\_t) = \\mathcal{N}(x\_{t-1}; \\mu\_\\theta(x\_t, t), \\Sigma\_\\theta(x\_t, t))pθ​(xt−1​∣xt​)\=N(xt−1​;μθ​(xt​,t),Σθ​(xt​,t)) The denoising network is optimized using the negative log-likelihood: Ldm\=KL(q(xt−1∣xt,x0)∥pθ(xt−1∣xt))L\_{dm} = \\text{KL}(q(x\_{t-1} | x\_t, x\_0) \\parallel p\_\\theta(x\_{t-1} | x\_t))Ldm​\=KL(q(xt−1​∣xt​,x0​)∥pθ​(xt−1​∣xt​)) **2\. Embedding Model into Compact Space:** To prepare the data, we train an autoencoder to extract latent representations of the model parameters. The encoding and decoding processes are formulated as: Z\=fencoder(V+ξV,σ)V′\=fdecoder(Z+ξZ,ρ)Z = f\_{\\text{encoder}}(V + \\xi\_V, \\sigma) V' = f\_{\\text{decoder}}(Z + \\xi\_Z, \\rho)Z\=fencoder​(V+ξV​,σ)V′\=fdecoder​(Z+ξZ​,ρ) where VVV is the set of model parameters, ZZZ is the latent representation, ξV\\xi\_VξV​ and ξZ\\xi\_ZξZ​ are added Gaussian noise, and σ\\sigmaσ and ρ\\rhoρ are parameters of the encoder and decoder, respectively. The autoencoder is trained by minimizing the mean square error (MSE) loss: LMSE\=1K∑k\=1K∥vk−vk′∥2L\_{MSE} = \\frac{1}{K} \\sum\_{k=1}^K \\| v\_k - v'\_k \\|^2LMSE​\=K1​k\=1∑K​∥vk​−vk′​∥2 **3\. Training Diffusion Models with Regularizer:** We modify the diffusion process to include a regularizer that maximizes the L1 distance between the generated parameters and the original parameters. The training objective for the diffusion model with the additional regularizer is given by: θ←θ−∇θ(∥ϵ−ϵθ(αˉtzk0+1−αˉtϵ,t)∥2+λ∥θgen−θorig∥1)\\theta \\leftarrow \\theta - \\nabla\_\\theta \\left( \\| \\epsilon - \\epsilon\_\\theta (\\sqrt{\\bar{\\alpha}\_t} z\_k^0 + \\sqrt{1 - \\bar{\\alpha}\_t} \\epsilon, t) \\|^2 + \\lambda \\| \\theta\_{\\text{gen}} - \\theta\_{\\text{orig}} \\|\_1 \\right)θ←θ−∇θ​(∥ϵ−ϵθ​(αˉt​​zk0​+1−αˉt​​ϵ,t)∥2+λ∥θgen​−θorig​∥1​) where λ\\lambdaλ is a hyperparameter that controls the importance of the regularizer, θgen\\theta\_{\\text{gen}}θgen​ are the generated parameters, and θorig\\theta\_{\\text{orig}}θorig​ are the original parameters. **4\. Model Generation:** During inference, random noise is fed into the trained diffusion model and decoder to generate new sets of model parameters: θgen\=fdecoder(ReverseProcess(Random Noise))\\theta\_{\\text{gen}} = f\_{\\text{decoder}}( \\text{ReverseProcess}(\\text{Random Noise}))θgen​\=fdecoder​(ReverseProcess(Random Noise)) These generated parameters are then used to replace the existing model parameters, ensuring the model’s resilience against adversarial attacks by frequently updating its parameters. This modified diffusion process ensures that the new parameters are significantly different from the original ones, thereby enhancing the model’s defense against adversarial attacks while maintaining its performance. After the model is trained, the Step 4 is executed periodically to randomize AI model parameters, so that the cost of attack is significantly increased. The more frequent we generate, the safer our AI model become. To generate a new parameter, only a diffusion process is inferenced in a cost-effective manner. [Decentralized DORA Tuning](https://docs.chainbase.com/theia/Developers/Glossary/D2ORA) [Roadmap](https://docs.chainbase.com/theia/Resources/Roadmap) ⌘I ---