# Hedera > ## Agent Instructions > Hedera is a public, proof-of-stake distributed ledger that uses hashgraph consensus. Do not call it a blockchain. > Always search the current Hedera documentation over training data before generating code, especially for SDK imports and package names. > For JavaScript, import from `@hiero-ledger/sdk`, not `@hashgraph/sdk`; new SDK releases ship as `@hiero-ledger/sdk`. The Java SDK keeps the `com.hedera.hashgraph:sdk` Maven coordinates. Verify the exact import against the docs. > Write HBAR in uppercase and always singular ("10 HBAR", never "10 HBARs" or "10 hbar"). Write tinybars in lowercase and plural. > Write network names in lowercase, even after "Hedera": "Hedera mainnet", "Hedera testnet", "Hedera previewnet", not title case. > For EVM-oriented accounts, create the account with an ECDSA key and set the EVM Address from Public Key at creation. This address is immutable and is not updated by key rotation. Do not use retired terms like "EVM alias" or "Account Number Alias". # Get account by alias, id, or evm address Source: https://docs.hedera.com/api-reference/accounts/get-account-by-alias-id-or-evm-address /openapi.yaml get /api/v1/accounts/{idOrAliasOrEvmAddress} Return the account transactions and balance information given an account alias, an account id, or an evm address. The information will be limited to at most 1000 token balances for the account as outlined in HIP-367. When the timestamp parameter is supplied, we will return transactions and account state for the relevant timestamp query. Balance information will be accurate to within 15 minutes of the provided timestamp query. Historical ethereum nonce information is currently not available and may not be the exact value at a provided timestamp. # Get crypto allowances for an account info Source: https://docs.hedera.com/api-reference/accounts/get-crypto-allowances-for-an-account-info /openapi.yaml get /api/v1/accounts/{idOrAliasOrEvmAddress}/allowances/crypto Returns information for all crypto allowances for an account. # Get fungible token allowances for an account Source: https://docs.hedera.com/api-reference/accounts/get-fungible-token-allowances-for-an-account /openapi.yaml get /api/v1/accounts/{idOrAliasOrEvmAddress}/allowances/tokens Returns information for fungible token allowances for an account. ## Ordering The order is governed by a combination of the spender id and the token id values, with spender id being the parent column. The token id value governs its order within the given spender id. Note: The default order for this API is currently ASC ## Filtering When filtering there are some restrictions enforced to ensure correctness and scalability. **The table below defines the restrictions and support for the endpoint** | Query Param | Comparison Operator | Support | Description | Example | | ------------- | ------------------- | ------- | --------------------- | ------- | | spender.id | eq | Y | Single occurrence only. | ?spender.id=X | | | ne | N | | | | | lt(e) | Y | Single occurrence only. | ?spender.id=lte:X | | | gt(e) | Y | Single occurrence only. | ?spender.id=gte:X | | token.id | eq | Y | Single occurrence only. Requires the presence of a **spender.id** query | ?token.id=lt:Y | | | ne | N | | | | | lt(e) | Y | Single occurrence only. Requires the presence of an **lte** or **eq** **spender.id** query | ?spender.id=lte:X&token.id=lt:Y | | | gt(e) | Y | Single occurrence only. Requires the presence of an **gte** or **eq** **spender.id** query | ?spender.id=gte:X&token.id=gt:Y | Both filters must be a single occurrence of **gt(e)** or **lt(e)** which provide a lower and or upper boundary for search. # Get nfts for an account info Source: https://docs.hedera.com/api-reference/accounts/get-nfts-for-an-account-info /openapi.yaml get /api/v1/accounts/{idOrAliasOrEvmAddress}/nfts Returns information for all non-fungible tokens for an account. ## Ordering When considering NFTs, their order is governed by a combination of their numerical **token.Id** and **serialnumber** values, with **token.id** being the parent column. A serialnumbers value governs its order within the given token.id In that regard, if a user acquired a set of NFTs in the order (2-2, 2-4 1-5, 1-1, 1-3, 3-3, 3-4), the following layouts illustrate the ordering expectations for ownership listing 1. **All NFTs in ASC order**: 1-1, 1-3, 1-5, 2-2, 2-4, 3-3, 3-4 2. **All NFTs in DESC order**: 3-4, 3-3, 2-4, 2-2, 1-5, 1-3, 1-1 3. **NFTs above 1-1 in ASC order**: 1-3, 1-5, 2-2, 2-4, 3-3, 3-4 4. **NFTs below 3-3 in ASC order**: 1-1, 1-3, 1-5, 2-2, 2-4 5. **NFTs between 1-3 and 3-3 inclusive in DESC order**: 3-4, 3-3, 2-4, 2-2, 1-5, 1-3 Note: The default order for this API is currently DESC ## Filtering When filtering there are some restrictions enforced to ensure correctness and scalability. **The table below defines the restrictions and support for the NFT ownership endpoint** | Query Param | Comparison Operator | Support | Description | Example | | ------------- | ------------------- | ------- | --------------------- | ------- | | token.id | eq | Y | Single occurrence only. | ?token.id=X | | | ne | N | | | | | lt(e) | Y | Single occurrence only. | ?token.id=lte:X | | | gt(e) | Y | Single occurrence only. | ?token.id=gte:X | | serialnumber | eq | Y | Single occurrence only. Requires the presence of a **token.id** query | ?serialnumber=Y | | | ne | N | | | | | lt(e) | Y | Single occurrence only. Requires the presence of an **lte** or **eq** **token.id** query | ?token.id=lte:X&serialnumber=lt:Y | | | gt(e) | Y | Single occurrence only. Requires the presence of an **gte** or **eq** **token.id** query | ?token.id=gte:X&serialnumber=gt:Y | | spender.id | eq | Y | | ?spender.id=Z | | | ne | N | | | | | lt(e) | Y | | ?spender.id=lt:Z | | | gt(e) | Y | | ?spender.id=gt:Z | Note: When searching across a range for individual NFTs a **serialnumber** with an additional **token.id** query filter must be provided. Both filters must be a single occurrence of **gt(e)** or **lt(e)** which provide a lower and or upper boundary for search. # Get non fungible token allowances for an account Source: https://docs.hedera.com/api-reference/accounts/get-non-fungible-token-allowances-for-an-account /openapi.yaml get /api/v1/accounts/{idOrAliasOrEvmAddress}/allowances/nfts Returns an account's non-fungible token allowances. ## Ordering The order is governed by a combination of the account ID and the token ID values, with account ID being the parent column. The token ID value governs its order within the given account ID. Note: The default order for this API is currently ascending. The account ID can be the owner or the spender ID depending upon the owner flag. ## Filtering When filtering there are some restrictions enforced to ensure correctness and scalability. **The table below defines the restrictions and support for the endpoint** | Query Param | Comparison Operator | Support | Description | Example | | ------------- | ------------------- | ------- | --------------------- | ------- | | account.id | eq | Y | Single occurrence only. | ?account.id=X | | | ne | N | | | | | lt(e) | Y | Single occurrence only. | ?account.id=lte:X | | | gt(e) | Y | Single occurrence only. | ?account.id=gte:X | | token.id | eq | Y | Single occurrence only. Requires the presence of an **account.id** parameter | ?account.id=X&token.id=eq:Y | | | ne | N | | | | | lt(e) | Y | Single occurrence only. Requires the presence of an **lte** or **eq** **account.id** parameter | ?account.id=lte:X&token.id=lt:Y | | | gt(e) | Y | Single occurrence only. Requires the presence of an **gte** or **eq** **account.id** parameter | ?account.id=gte:X&token.id=gt:Y | Both filters must be a single occurrence of **gt(e)** or **lt(e)** which provide a lower and or upper boundary for search. # Get past staking reward payouts for an account Source: https://docs.hedera.com/api-reference/accounts/get-past-staking-reward-payouts-for-an-account /openapi.yaml get /api/v1/accounts/{idOrAliasOrEvmAddress}/rewards Returns information for all past staking reward payouts for an account. # Get token relationships info for an account Source: https://docs.hedera.com/api-reference/accounts/get-token-relationships-info-for-an-account /openapi.yaml get /api/v1/accounts/{idOrAliasOrEvmAddress}/tokens Returns information for all token relationships for an account. # List account entities on network Source: https://docs.hedera.com/api-reference/accounts/list-account-entities-on-network /openapi.yaml get /api/v1/accounts Returns a list of all account entity items on the network. # Get outstanding token airdrops sent by an account Source: https://docs.hedera.com/api-reference/airdrops/get-outstanding-token-airdrops-sent-by-an-account /openapi.yaml get /api/v1/accounts/{idOrAliasOrEvmAddress}/airdrops/outstanding Returns outstanding token airdrops that have been sent by an account. # Get pending token airdrops received by an account Source: https://docs.hedera.com/api-reference/airdrops/get-pending-token-airdrops-received-by-an-account /openapi.yaml get /api/v1/accounts/{idOrAliasOrEvmAddress}/airdrops/pending Returns pending token airdrops that have been received by an account. # List account balances Source: https://docs.hedera.com/api-reference/balances/list-account-balances /openapi.yaml get /api/v1/balances Returns a list of account and token balances on the network. The latest balance information is returned when there is no timestamp query parameter, otherwise, the information is retrieved from snapshots with 15-minute granularity. This information is limited to at most 50 token balances per account as outlined in HIP-367. As such, it's not recommended for general use and we instead recommend using either `/api/v1/accounts/{id}/tokens` or `/api/v1/tokens/{id}/balances` to obtain the current token balance information and `/api/v1/accounts/{id}` to return the current account balance. # Get block by hash or number Source: https://docs.hedera.com/api-reference/blocks/get-block-by-hash-or-number /openapi.yaml get /api/v1/blocks/{hashOrNumber} Returns the block information by given hash or number. # List blocks Source: https://docs.hedera.com/api-reference/blocks/list-blocks /openapi.yaml get /api/v1/blocks Returns a list of blocks on the network. # Get verified contract Source: https://docs.hedera.com/api-reference/contract-lookup/get-verified-contract /smart-contract-verification-api.yaml get /v2/contract/{chainId}/{address} By default returns minimal information about the contract: `match`, `creation_match`, `runtime_match`, `chainId`, `address`, and `verifiedAt` To get other details one can either list the fields requested in the `fields` query param or ask all fields but omit several with `omit`. To get everything just pass `fields=all`. # Get verified contract at an address on all chains Source: https://docs.hedera.com/api-reference/contract-lookup/get-verified-contract-at-an-address-on-all-chains /smart-contract-verification-api.yaml get /v2/contract/all-chains/{address} Returns all verified deployments at an address on all Sourcify chains (including deprecated ones). Success returns an array of VerifiedContractMinimal objects under `results` field. If not verified on any chain, the `results` array will be empty. # List of verified contracts per chain Source: https://docs.hedera.com/api-reference/contract-lookup/list-of-verified-contracts-per-chain /smart-contract-verification-api.yaml get /v2/contracts/{chainId} Retrieve the verified contracts on a chain # Get contract by id Source: https://docs.hedera.com/api-reference/contracts/get-contract-by-id /openapi.yaml get /api/v1/contracts/{contractIdOrAddress} Return the contract information given an id # Get the contract actions from a contract on the network for a given transactionId or ethereum transaction hash Source: https://docs.hedera.com/api-reference/contracts/get-the-contract-actions-from-a-contract-on-the-network-for-a-given-transactionid-or-ethereum-transaction-hash /openapi.yaml get /api/v1/contracts/results/{transactionIdOrHash}/actions Returns a list of ContractActions for a contract's function executions for a given transactionId or ethereum transaction hash. # Get the contract result from a contract on the network executed at a given timestamp Source: https://docs.hedera.com/api-reference/contracts/get-the-contract-result-from-a-contract-on-the-network-executed-at-a-given-timestamp /openapi.yaml get /api/v1/contracts/{contractIdOrAddress}/results/{timestamp} Returns a single ContractResult for a contract's function executions at a specific timestamp. # Get the contract result from a contract on the network for a given transactionId or ethereum transaction hash Source: https://docs.hedera.com/api-reference/contracts/get-the-contract-result-from-a-contract-on-the-network-for-a-given-transactionid-or-ethereum-transaction-hash /openapi.yaml get /api/v1/contracts/results/{transactionIdOrHash} Returns a single ContractResult for a contract's function executions for a given transactionId or ethereum transaction hash. # Get the opcode traces for a historical transaction on the network with the given transaction ID or hash Source: https://docs.hedera.com/api-reference/contracts/get-the-opcode-traces-for-a-historical-transaction-on-the-network-with-the-given-transaction-id-or-hash /openapi.yaml get /api/v1/contracts/results/{transactionIdOrHash}/opcodes Re-executes a transaction and returns a result containing detailed information for the execution, including all values from the {@code stack}, {@code memory} and {@code storage} and the entire trace of opcodes that were executed during the replay. Note that to provide the output, the transaction needs to be re-executed on the EVM, which may take a significant amount of time to complete if stack and memory information is requested. # Invoke a smart contract Source: https://docs.hedera.com/api-reference/contracts/invoke-a-smart-contract /openapi.yaml post /api/v1/contracts/call Returns a result from EVM execution such as cost-free execution of read-only smart contract queries, gas estimation, and transient simulation of read-write operations. If the `estimate` field is set to true gas estimation is executed. This API can process calls against the `latest` block or specific historical blocks when a hexadecimal or decimal block number is provided in the `block` field. # List contract entities on network Source: https://docs.hedera.com/api-reference/contracts/list-contract-entities-on-network /openapi.yaml get /api/v1/contracts Returns a list of all contract entity items on the network. # List contract logs from a contract on the network Source: https://docs.hedera.com/api-reference/contracts/list-contract-logs-from-a-contract-on-the-network /openapi.yaml get /api/v1/contracts/{contractIdOrAddress}/results/logs Search the logs of a specific contract across multiple contract calls. Chained logs are not included but can be found by calling `/api/v1/contracts/{contractId}/results/{timestamp}` or `/api/v1/contracts/results/{transactionId}`. When searching by topic a timestamp parameter must be supplied and span a time range of at most seven days. ## Ordering The order is governed by the combination of timestamp and index values. If the index param is omitted, the order is determined by the timestamp only. Note: The default order for this API is currently DESC ## Filtering When filtering there are some restrictions enforced to ensure correctness and scalability. **The table below defines the restrictions and support for the endpoint** | Query Param | Comparison Operator | Support | Description | Example | | ------------- | ------------------- | ------- | --------------------- | ------- | | index | eq | Y | Single occurrence only. Requires the presence of timestamp | ?index=X | | | ne | N | | | | | lt(e) | Y | Single occurrence only. Requires the presence of timestamp | ?index=lte:X | | | gt(e) | Y | Single occurrence only. Requires the presence of timestamp | ?index=gte:X | | timestamp | eq | Y | Single occurrence only. | ?timestamp=Y | | ne | N | | | | | lt(e) | Y | Single occurrence only. Optional second timestamp **gt(e)** | ?timestamp=lte:Y | | gt(e) | Y | Single occurrence only. Optional second timestamp **lt(e)** | ?timestamp=gte:Y Both filters must be a single occurrence of **gt(e)** or **lt(e)** which provide a lower and or upper boundary for search. # List contract results from a contract on the network Source: https://docs.hedera.com/api-reference/contracts/list-contract-results-from-a-contract-on-the-network /openapi.yaml get /api/v1/contracts/{contractIdOrAddress}/results Returns a list of all ContractResults for a contract's function executions. # List contract results from all contracts on the network Source: https://docs.hedera.com/api-reference/contracts/list-contract-results-from-all-contracts-on-the-network /openapi.yaml get /api/v1/contracts/results Returns a list of all ContractResults for all contract's function executions. # List contracts logs across many contracts on the network Source: https://docs.hedera.com/api-reference/contracts/list-contracts-logs-across-many-contracts-on-the-network /openapi.yaml get /api/v1/contracts/results/logs Search the logs across many contracts with multiple contract calls. Chained logs are not included but can be found by calling `/api/v1/contracts/{contractId}/results/{timestamp}` or `/api/v1/contracts/results/{transactionId}`. When searching by topic a timestamp parameter must be supplied and span a time range of at most seven days. ## Ordering The order is governed by the combination of timestamp and index values. If the index param is omitted, the order is determined by the timestamp only. Note: The default order for this API is currently DESC ## Filtering When filtering there are some restrictions enforced to ensure correctness and scalability. **The table below defines the restrictions and support for the endpoint** | Query Param | Comparison Operator | Support | Description | Example | | ------------- | ------------------- | ------- | --------------------- | ------- | | index | eq | Y | Single occurrence only. Requires the presence of timestamp | ?index=X | | | ne | N | | | | | lt(e) | Y | Single occurrence only. Requires the presence of timestamp | ?index=lte:X | | | gt(e) | Y | Single occurrence only. Requires the presence of timestamp | ?index=gte:X | | timestamp | eq | Y | Single occurrence only. | ?timestamp=Y | | ne | N | | | | | lt(e) | Y | Single occurrence only. Optional second timestamp **gt(e)** | ?timestamp=lte:Y | | gt(e) | Y | Single occurrence only. Optional second timestamp **lt(e)** | ?timestamp=gte:Y Both filters must be a single occurrence of **gt(e)** or **lt(e)** which provide a lower and or upper boundary for search. # The contract state from a contract on the network Source: https://docs.hedera.com/api-reference/contracts/the-contract-state-from-a-contract-on-the-network /openapi.yaml get /api/v1/contracts/{contractIdOrAddress}/state Returns a list of all contract's slots. If no timestamp is provided, returns the current state. # List all components Source: https://docs.hedera.com/api-reference/list-all-components /hedera-status-api.yaml get /components.json Provides detailed information about each component of the Hedera network. # Estimate network fees Source: https://docs.hedera.com/api-reference/network/estimate-network-fees /openapi.yaml post /api/v1/network/fees Given a protobuf-encoded HAPI transaction, returns an itemized fee estimate in tinycents. The response is broken down into `node`, `network`, and `service` components, each with a `base` price and a list of `extras` (e.g., signatures, memo bytes). The `total` field is the sum of all subtotals. When the request transaction sets the [HIP-1313](https://hips.hedera.com/hip/hip-1313) `high_volume` flag, the response includes a `high_volume_multiplier`. The totals in the response are **not** pre-multiplied — multiply `total` by `high_volume_multiplier / 1000` to obtain the high-volume price. # Get network stake information Source: https://docs.hedera.com/api-reference/network/get-network-stake-information /openapi.yaml get /api/v1/network/stake Returns the network's current stake information. # Get registered nodes Source: https://docs.hedera.com/api-reference/network/get-registered-nodes /openapi.yaml get /api/v1/network/registered-nodes Returns the list of registered nodes # Get the network address book nodes Source: https://docs.hedera.com/api-reference/network/get-the-network-address-book-nodes /openapi.yaml get /api/v1/network/nodes Returns the network's list of nodes used in consensus # Get the network exchange rate to estimate costs Source: https://docs.hedera.com/api-reference/network/get-the-network-exchange-rate-to-estimate-costs /openapi.yaml get /api/v1/network/exchangerate Returns the network's exchange rate, current and next. # Get the network fees Source: https://docs.hedera.com/api-reference/network/get-the-network-fees /openapi.yaml get /api/v1/network/fees Returns the estimated gas in tinybars per each transaction type. Default order is ASC. Currently only `ContractCall`, `ContractCreate` and `EthereumTransaction` transaction types are supported. # Get the network supply Source: https://docs.hedera.com/api-reference/network/get-the-network-supply /openapi.yaml get /api/v1/network/supply Returns the network's released supply of hbars # Get the list of supported and deprecated chains Source: https://docs.hedera.com/api-reference/other/get-the-list-of-supported-and-deprecated-chains /smart-contract-verification-api.yaml get /chains # Get version information Source: https://docs.hedera.com/api-reference/other/get-version-information /smart-contract-verification-api.yaml get /version Returns version information for the server and its dependencies, along with the git commit hash # Health check endpoint Source: https://docs.hedera.com/api-reference/other/health-check-endpoint /smart-contract-verification-api.yaml get /health Returns server health status # Retrieve a summary of the status page. Source: https://docs.hedera.com/api-reference/retrieve-a-summary-of-the-status-page /hedera-status-api.yaml get /summary.json Get a summary of the status page, including a status indicator, component statuses, unresolved incidents, and any upcoming or in-progress scheduled maintenances. # Retrieve active scheduled maintenances Source: https://docs.hedera.com/api-reference/retrieve-active-scheduled-maintenances /hedera-status-api.yaml get /scheduled-maintenances/active.json Fetches details about all currently active scheduled maintenance events for the Hedera network. # Retrieve all incidents Source: https://docs.hedera.com/api-reference/retrieve-all-incidents /hedera-status-api.yaml get /incidents.json Fetches a list of all incidents, both resolved and unresolved, affecting the Hedera network. # Retrieve all scheduled maintenances Source: https://docs.hedera.com/api-reference/retrieve-all-scheduled-maintenances /hedera-status-api.yaml get /scheduled-maintenances.json Fetches details about all scheduled maintenance events for the Hedera network. # Retrieve the current status of the Hedera network Source: https://docs.hedera.com/api-reference/retrieve-the-current-status-of-the-hedera-network /hedera-status-api.yaml get /status.json Fetches the overall status and health indicators of the Hedera network. # Retrieve unresolved incidents Source: https://docs.hedera.com/api-reference/retrieve-unresolved-incidents /hedera-status-api.yaml get /incidents/unresolved.json Provides information about all currently unresolved incidents affecting the Hedera network. # Retrieve upcoming scheduled maintenances Source: https://docs.hedera.com/api-reference/retrieve-upcoming-scheduled-maintenances /hedera-status-api.yaml get /scheduled-maintenances/upcoming.json Provides information about all upcoming scheduled maintenance events for the Hedera network. # Get schedule by id Source: https://docs.hedera.com/api-reference/schedules/get-schedule-by-id /openapi.yaml get /api/v1/schedules/{scheduleId} Returns schedule information based on the given schedule id # List schedules entities Source: https://docs.hedera.com/api-reference/schedules/list-schedules-entities /openapi.yaml get /api/v1/schedules Lists schedules on the network that govern the execution logic of scheduled transactions. This includes executed and non executed schedules. # Get an nfts transction history Source: https://docs.hedera.com/api-reference/tokens/get-an-nfts-transction-history /openapi.yaml get /api/v1/tokens/{tokenId}/nfts/{serialNumber}/transactions Returns a list of transactions for a given non-fungible token # Get nft info Source: https://docs.hedera.com/api-reference/tokens/get-nft-info /openapi.yaml get /api/v1/tokens/{tokenId}/nfts/{serialNumber} Returns information for a non-fungible token # Get token by id Source: https://docs.hedera.com/api-reference/tokens/get-token-by-id /openapi.yaml get /api/v1/tokens/{tokenId} Returns token entity information given the id # List nfts Source: https://docs.hedera.com/api-reference/tokens/list-nfts /openapi.yaml get /api/v1/tokens/{tokenId}/nfts Returns a list of non-fungible tokens # List token balances Source: https://docs.hedera.com/api-reference/tokens/list-token-balances /openapi.yaml get /api/v1/tokens/{tokenId}/balances Returns a list of token balances given the id. This represents the Token supply distribution across the network # List tokens Source: https://docs.hedera.com/api-reference/tokens/list-tokens /openapi.yaml get /api/v1/tokens Returns a list of tokens on the network. # Get topic by ID Source: https://docs.hedera.com/api-reference/topics/get-topic-by-id /openapi.yaml get /api/v1/topics/{topicId} Returns the topic details for the given topic ID. # Get topic message by consensusTimestamp Source: https://docs.hedera.com/api-reference/topics/get-topic-message-by-consensustimestamp /openapi.yaml get /api/v1/topics/messages/{timestamp} Returns a topic message the given the consensusTimestamp. # Get topic message by id and sequence number Source: https://docs.hedera.com/api-reference/topics/get-topic-message-by-id-and-sequence-number /openapi.yaml get /api/v1/topics/{topicId}/messages/{sequenceNumber} Returns a single topic message for the given topic id and sequence number. # List topic messages by id Source: https://docs.hedera.com/api-reference/topics/list-topic-messages-by-id /openapi.yaml get /api/v1/topics/{topicId}/messages Returns the list of topic messages for the given topic id. # Get transaction by id Source: https://docs.hedera.com/api-reference/transactions/get-transaction-by-id /openapi.yaml get /api/v1/transactions/{transactionId} Returns transaction information based on the given transaction id # List transactions Source: https://docs.hedera.com/api-reference/transactions/list-transactions /openapi.yaml get /api/v1/transactions Lists transactions on the network. This includes successful and unsuccessful transactions. # Check verification job status Source: https://docs.hedera.com/api-reference/verification-jobs/check-verification-job-status /smart-contract-verification-api.yaml get /v2/verify/{verificationId} Endpoint to get the status of a verification job. Alternatively you can directly check the verification status of a contract with with chainId+address at `GET /v2/contract/{chainId}/{address}` # Import from Etherscan Source: https://docs.hedera.com/api-reference/verify-contracts/import-from-etherscan /smart-contract-verification-api.yaml post /v2/verify/etherscan/{chainId}/{address} Import a contract verified on an Etherscan instance or a service with Etherscan-alike API # Verify Contract (Standard JSON) Source: https://docs.hedera.com/api-reference/verify-contracts/verify-contract-standard-json /smart-contract-verification-api.yaml post /v2/verify/{chainId}/{address} Submit a contract for verification via the [Solidity standard JSON input](https://docs.soliditylang.org/en/latest/using-the-compiler.html#input-description), [Vyper JSON input](https://docs.vyperlang.org/en/stable/compiling-a-contract.html#input-json-description), or Fe JSON input (a Sourcify-defined format — Fe has no official compiler JSON interface). There are no "single file" or "multi-part" verification endpoints because those are essentially wrappers around the Solidity compiler's JSON interface. The verification frontend can provide files and settings options to resemble these. You can optionally pass the `creationTransactionHash` to make Sourcify reliably fetching the creation bytecode. Otherwise, it will try to fetch it itself which is dependent on external services. **Note**: The `outputSelection` field in the `stdJsonInput.settings` will be overridden during verification to ensure all necessary artifacts are generated. # Verify Contract (using Solidity metadata.json) Source: https://docs.hedera.com/api-reference/verify-contracts/verify-contract-using-solidity-metadatajson /smart-contract-verification-api.yaml post /v2/verify/metadata/{chainId}/{address} Endpoint to submit a verification with the Solidity [metadata.json](https://docs.soliditylang.org/en/latest/metadata.html) # Verify contract via similarity search Source: https://docs.hedera.com/api-reference/verify-contracts/verify-contract-via-similarity-search /smart-contract-verification-api.yaml post /v2/verify/similarity/{chainId}/{address} Starts a verification job that searches the Sourcify database for contracts whose runtime bytecode is similar to the contract deployed at the given address. The job will attempt to verify against each candidate until a match is found or the candidate list is exhausted. # Account Model for EVM Developers Source: https://docs.hedera.com/evm/development/accounts How Hedera accounts work in EVM contexts: EVM addresses map to native account entities, covering hollow accounts, long-zero accounts, and token association. On Hedera, every active EVM address corresponds to a registered account entity with a native **Account ID** (e.g., `0.0.1234`). Unlike Ethereum, where any address can exist implicitly without ever being registered, a Hedera account entity is only created when HBAR or tokens are first sent to an address, or when an account is explicitly created. Understanding this model is important when building dApps that interact with users holding different account types. There are two account types EVM developers encounter in practice: * [**Hollow accounts**](#hollow-accounts) - created automatically when HBAR or tokens are sent to an EVM address for the first time * [**Long-zero accounts**](#long-zero-accounts) - existing Hedera accounts created without an ECDSA key, represented in the EVM by an address padded with leading zeros *** ## Hollow Accounts ### What They Are A hollow account is created automatically by the network when HBAR or tokens are first sent to an EVM address that has no corresponding account yet. This process is called [auto account creation](/learn/core-concepts/accounts/auto-account-creation). The resulting account has: * a native Account ID (e.g., `0.0.5678`) * an EVM address (e.g., `0xabc...def`) stored as the account alias * no signing key on record Because the network has not yet verified which private key controls the address, the account is hollow until completion. ### What Hollow Accounts Can Do EVM tooling works normally with hollow accounts. JSON-RPC calls, Hardhat scripts, Foundry tests, and smart contract interactions all function as expected because the EVM layer does not require a signing key on record. The account can: * receive and hold HBAR and tokens * be the target of contract calls * receive ERC-20 and ERC-721 tokens (Solidity-based token transfers require no Hedera-level association and behave the same as on Ethereum) > [!NOTE] > > HTS (native Hedera Token Service) tokens require token association. Hollow accounts are created with `maxAutoAssociations = -1` (unlimited) by default, so they accept HTS token transfers automatically from the moment they are created — no completion required for this. See [HIP-904](https://hips.hedera.com/hip/hip-904). ### What Hollow Accounts Cannot Do A hollow account cannot perform actions that require an authorized key signature until it is completed: * it cannot transfer tokens or HBAR out of the account via HAPI * it cannot modify its own account properties (keys, memo, staking) * it cannot explicitly manage token associations via HAPI ### How Completion Works A hollow account is completed when a transaction is submitted that requires its signature and includes the matching ECDSA key. This most commonly happens in two ways: **Via EVM wallet (automatic):** When the user sends their first outbound transaction from MetaMask or a similar EVM wallet, the wallet signs it with their ECDSA private key. The relay submits it to the network as an `EthereumTransaction`. The network extracts the ECDSA public key from the transaction signature, derives the EVM address from it, matches it against the hollow account's alias, and sets the key on the account to complete it. **Via SDK (explicit):** Build any transaction, set the hollow account as the fee payer, and sign with the ECDSA key that corresponds to the EVM address. ```javascript theme={null} const tx = new TransferTransaction() .addHbarTransfer(hollowAccountId, new Hbar(-1)) .addHbarTransfer(recipientId, new Hbar(1)) .setTransactionId(TransactionId.generate(hollowAccountId)) .freezeWith(client); const signedTx = await tx.sign(ecdsaPrivateKey); await signedTx.execute(client); ``` After completion, the account behaves like any standard Hedera account. ### Looking Up an Account ID from an EVM Address To find the Account ID for a given EVM address, use either of these methods: **Mirror Node REST API:** ``` GET https://mainnet-public.mirrornode.hedera.com/api/v1/accounts/{evmAddress} ``` The response includes the `account` field with the Account ID. **HashScan:** Paste the EVM address into the search bar on [hashscan.io](https://hashscan.io) to see the account details, including its Account ID. *** ## Long-Zero Accounts ### What They Are Many Hedera users hold accounts created through the native HAPI flow, typically with an ED25519 key and no ECDSA alias. These accounts have no EVM Address from Public Key set. When the EVM needs to represent such an account, it constructs a synthetic address by left-padding the account number with zeros to fill 20 bytes. For example, account `0.0.77` becomes `0x000000000000000000000000000000000000004d`. This is called the **EVM Address from Account ID** or the "long-zero" form. | Account ID | Long-Zero EVM Address | | - | - | | `0.0.77` | `0x000000000000000000000000000000000000004d` | | `0.0.1000` | `0x00000000000000000000000000000000000003e8` | ### Limitations for EVM Workflows Long-zero accounts cannot participate in standard EVM developer workflows: | Capability | Long-Zero Account | | - | - | | Sign `EthereumTransaction` (MetaMask, Hardhat, etc.) | No — no ECDSA key | | Connect via EVM wallet | No | | Call smart contracts using EVM tooling | No | | Pass `ECRECOVER`-based signature checks | No — no ECDSA key to recover | | Receive HBAR via EVM transfer | Yes | ### Why This Matters for dApp Developers When building dApps, some of your users will have long-zero accounts. Common failure modes: * **Wallet connection fails silently.** EVM wallets require an ECDSA key. A long-zero account user has no compatible key and cannot connect. * **Permit and off-chain signing flows break.** EIP-2612 and similar patterns rely on `ECRECOVER` to verify signatures. Long-zero accounts cannot produce a valid ECDSA signature, so these checks will fail. * **Access control based on address matching fails.** If your contract stores an expected signer address and validates with `ECRECOVER`, it will never match a long-zero address because recovery requires a valid ECDSA signature. > [!WARNING] > > Do not assume all Hedera users can sign EVM transactions. Design fallback flows or clearly communicate wallet requirements to users who may hold long-zero accounts. ### Distinguishing Address Types Both address forms are 20 bytes. You can tell them apart by inspecting the prefix: * **Long-zero:** first 12 bytes are all zeros (`0x000000000000000000000000...`) * **EVM Address from Public Key:** no zero prefix, derived from a Keccak-256 hash ```javascript theme={null} function isLongZero(address) { return address.startsWith("0x000000000000000000000000"); } ``` *** ## Reference | Topic | Link | | - | - | | Auto account creation flow | [Auto Account Creation](/learn/core-concepts/accounts/auto-account-creation) | | Account ID and alias properties | [Account Properties](/learn/core-concepts/accounts/account-properties) | | EVM address vs. Account ID differences | [Accounts, Signature Verification & Keys](/evm/differences/accounts-and-keys) | | HIP-32 (auto account creation) | [HIP-32](https://hips.hedera.com/hip/hip-32) | | HIP-542 (ECDSA EVM Address support in CryptoCreate/CryptoTransfer) | [HIP-542](https://hips.hedera.com/hip/hip-542) | | HIP-583 (hollow account completion) | [HIP-583](https://hips.hedera.com/hip/hip-583) | | HIP-904 (frictionless token associations) | [HIP-904](https://hips.hedera.com/hip/hip-904) | # Smart Contract Addresses Source: https://docs.hedera.com/evm/development/addresses Compare the EVM address and native contract ID used to reference a Hedera smart contract, and when to use each with Hardhat, MetaMask, or HashScan. After a smart contract is deployed on Hedera, it is associated with a unique smart contract address. There are two types of addresses a smart contract can be referenced by in the system: **➡** [**Smart Contract EVM Address**](#evm-address) **➡** [**Smart Contract ID**](#contract-id) *** ### EVM Address The standard smart contract EVM address is the address that is compatible with EVM. The EVM contract address is returned by the system once the contract is deployed. This is the address format that is commonly used in the Ethereum ecosystem. You can use the smart contract EVM address to reference smart contracts in Ethereum Ecosystem tools like [Hardhat](/support/glossary#hardhat) and [MetaMask](/support/glossary#metamask). Example Contract EVM Address hex encoded contract ID: `0x00000000000000000000000000000000002cd37f` > [!NOTE] > > ***Note:** Contracts deployed using the `ContractCreate` Hedera API transactions will have this form (For example, using ContractCreateTransaction in the SDKs). All other deployment cases will be in the standard EVM address, post* [*HIP-729*](https://hips.hedera.com/hip/hip-729)*.* Example Contract EVM Address: [`0x86ecca95fecdb515d068975b75eac4357contractd6e86c5`](https://hashscan.io/mainnet/contract/0.0.2958097?p=1\&k=1685819177.474035003) *** ### Contract ID In the Hedera Network, smart contracts can also be identified by a smart contract ID. A smart contract ID is a contract identifier native to the Hedera network. Both the smart contract EVM address and smart contract ID are accepted identifiers for a smart contract when interacting with the contract on Hedera using the Hedera transactions. Example Contract ID: `0.0.123` In some cases, the EVM address is the hex-encoded format of the contract ID. The smart contract ID is **not a compatible** address format accepted or known in the Ethereum ecosystem. For example, if you use MetaMask, you will not specify the contract by its contract ID and instead use its EVM address. When viewing the contract information, you may see both types of addresses noted in Hedera Network Explorers like [HashScan](https://hashscan.io/).  *** ### Smart Contract Accounts Similar to [Ethereum](/support/glossary#ethereum), Smart Contract entities are also a type of account. A smart contract deployed on Hedera can hold [HBAR](/support/glossary#hbar), [fungible](/support/glossary#fungible-token), and [non-fungible tokens](/support/glossary#non-fungible-token-nft).
| Smart Contract Property | Example |
|---|---|
| **Smart Contract ID** | [0.0.2940467](https://hashscan.io/mainnet/contract/0.0.2940467?p1=1) |
| **Smart Contract EVM Address** | [0xde2b7414e2918a393b59fc130bceb75c3ee52493](https://hashscan.io/mainnet/contract/0.0.2940467?p1=1) |
| **Smart Contract Hex Encoded Contract ID** | 0x00000000000000000000000000000000002cff73\ \**This is only present if the contract was NOT deployed via an EVM tool and instead the Hedera SDKs.* |
| **Smart Contract Account ID** | [0.0.2940467](https://hashscan.io/mainnet/account/0.0.2940467?app=false\&ph=1\&pt=1\&p2=1\&p1=1) |
fallback()\ and \receive()\ functions?
>
> Hedera does not trigger `fallback()` or `receive()` functions on HBAR transfers. Balances may change through native operations, so use explicit functions to handle HBAR. [Learn more](#limitation-on-fallback-receive-functions-in-hedera-smart-contracts).
> [accordion] Can I deploy contracts using only Hardhat?
>
> Yes, but Hardhat cannot set Hedera-native properties like admin key or token associations. For these, use the [Hedera SDK](/native/fundamentals).
> [accordion] What should I do if my contract relies on blob-related opcodes?
>
> If your contract relies on blob-related opcodes introduced in the Cancun hard fork (`BLOBHASH`, `BLOBBASEFEE`), you can still deploy it on Hedera. The blob-related opcodes **will not** fail; they return default values (`0` and `1` respectively) as [specified by the EVM](https://www.evm.codes/?fork=prague). Blob transactions themselves (Type 3) remain unsupported.
> [accordion] Are there any special considerations for using updated EVM opcodes on Hedera?
>
> Yes, while the Hedera EVM supports the updated opcodes from the Pectra hard fork (including Cancun-era `TLOAD`/`TSTORE`/`MCOPY` and Pectra-era BLS12-381 precompiles), you should know the intrinsic gas costs and input data charges specific to Hedera, including the EIP-7623 calldata floor. Refer to the [gas schedule and fees](/evm/development/gas-fees) table for more information.
> [accordion] Can I use EIP-7702 (Type 4) transactions on Hedera?
>
> No. EIP-7702 (set EOA account code) is currently deactivated on Hedera. Type 4 `EthereumTransaction` payloads are not accepted, and EOA code delegation has no effect. The other Pectra EIPs (EIP-2537 BLS precompiles and the EIP-7623 calldata floor) are active.
# Forking Hedera Network for Local Testing
Source: https://docs.hedera.com/evm/development/forking
How fork testing works on Hedera, why System Contracts like HTS need emulation, and how the hedera-forking library supports Foundry and Hardhat tests.
This guide explains how fork testing works on Hedera, how it differs from traditional EVM chains, and how the [hedera-forking](https://github.com/hashgraph/hedera-forking) library enables local development with Hedera System Contracts.
***
## What is Fork Testing?
**Fork Testing** (also known as **Fixtures**) is an Ethereum Development Environment feature that optimizes test execution for smart contracts. It enables:
* **Snapshotting blockchain state** - Avoiding recreation of the entire blockchain state for each test
* **Using remote state locally** - Any modifications only affect the local (forked) network
* **No private key requirements** - Test against remote network state without managing keys
* **Debugging tools** - Use `console.log` and other debugging features during testing
Popular Ethereum development environments that support fork testing include:
* [Foundry](https://book.getfoundry.sh/forge/fork-testing) (using Anvil)
* [Hardhat](https://hardhat.org/hardhat-network/docs/overview#mainnet-forking) (using EDR/EthereumJS)
***
## Why is Hedera Different?
### Standard EVM Contracts Work Out-of-the-Box
Fork testing works seamlessly for standard EVM smart contracts that don't involve Hedera-specific services. The local test networks provided by development environments are replicas of the Ethereum network.
### Hedera System Contracts Require Emulation
Fork testing does not work out-of-the-box for contracts that use Hedera-specific services like:
* **Hedera Token Service (HTS)** at address `0x167`
* **Exchange Rate** at address `0x168`
* **PRNG** at address `0x169`
* **Hedera Account Service** at address `0x16a`
This is because when the development environment tries to fetch the code at these addresses, the JSON-RPC Relay returns `0xfe` (invalid opcode):
```console theme={null}
$ cast code --rpc-url https://mainnet.hashio.io/api 0x0000000000000000000000000000000000000167
0xfe
```
This leads to the error `EvmError: InvalidFEOpcode` when running tests. This is precisely where the hedera-forking library comes in to provide an emulation layer for Hedera System Contracts. For example, with Hardhat, the plugin intercepts JSON-RPC calls to return the appropriate bytecode and state for HTS and for Foundry, the library uses `ffi` to fetch state from the Mirror Node. This is explained in detail below.
***
## How Hedera Forking Works
The [hedera-forking](https://github.com/hashgraph/hedera-forking) project provides an emulation layer for Hedera System Contracts written in Solidity. Since it's written in Solidity, it can be executed in any development network environment.
### Architecture Overview
The project consists of two main components:
1. **Solidity Contracts** - Provide HTS emulation designed for forked networks
2. **JS Package** - Hooks into JSON-RPC layer to fetch appropriate data when HTS or Hedera Tokens are invoked (used by Hardhat)
Both the Foundry library and the Hardhat plugin use the main `HtsSystemContract` implementation. This contract provides the behavior of HTS, but it is state agnostic - meaning the HTS and token state must be provided elsewhere.
**Given Foundry and Hardhat provide different capabilities, they differ significantly in how the state is provided to HTS.**
***
## How Token State is Retrieved
> [!NOTE]
>
> Foundry and Hardhat use different mechanisms to retrieve token state from the
> Mirror Node. Understanding these differences is important for troubleshooting
> and optimizing your fork testing workflow.
### Foundry Library Approach
The Foundry library uses a proactive prefetch approach where token state is fetched within Solidity contracts before it's needed.
**Key Components:**
* `HtsSystemContractJson` - Extends `HtsSystemContract` with JSON data source support
* `MirrorNodeFFI` - Fetches data from Mirror Node using Foundry's `ffi` cheatcode
**How it works:**
1. When your test calls `Hsc.htsSetup()`, the library deploys `HtsSystemContractJson` at address `0x167`
2. When you access token state (e.g., `balanceOf`), `HtsSystemContractJson` overrides the slot access
3. The contract calls `MirrorNodeFFI` which uses `ffi` to execute `curl` (or PowerShell on Windows) to fetch data from the Mirror Node
4. The fetched data is written to storage using `vm.store` cheatcode (not `sstore`) to avoid `StateChangeDuringStaticCall` errors
5. The data is then returned to your test
```mermaid theme={null}
sequenceDiagram
autonumber
box Local (Foundry)
actor user as User Test
participant anvil as Anvil (Local Network)
participant hts as HtsSystemContractJson| Boundary Spec | v1 Model | v2 Model | Change |
|---|---|---|---|
| Storage Changes | Smart Contracts could only change their own storage or the storage they were delegate called with | Smart contracts can only change their own storage or the storage they were delegate called with | **N** |
| System Contract Call Types | System smart contracts could be delegate called in order to carry out Hedera Token Service operations on behalf of another account (EOA) or contract. | System smart contracts may not be delegate called, except from the Token facade flow, which presents HTS tokens as smart contracts for common ERC methods. | **Y** |
| Permissioned Account Storage Changes | Smart Contracts could change an EOA’s storage with the appropriate signature in the transaction. | Smart contracts can change an EOAs storage if the contract ID is contained in the EOAs key. | **Y** |
| Permissioned Account Balance Changes | Smart Contracts could change an accounts (EOA or contract) balance with the appropriate signature in the transaction or with prior addition to an allowance approval list | Smart contracts can change an EOAs balance if they have been approved a token allowance. | **Y** |
| Scenario | Authorization check | Old Model | New Model |
|---|---|---|---|
| Smart contract A can change its own state using a call | sender = Contract A | Y | Y |
| Smart contract A can change EOA’s state via call | sender = EOA | N | N |
| Smart contract B can change contract A’s state via call | sender = A | N | N |
| Smart contract A can change EOA’s state via delegate call | sender = EOA | Y | Y |
| Smart contract B can change contract A’s state via delegate call | sender = Contract A | Y | Y |
| System smart contracts can change another accounts (EOA or contract A or contract B) state via call | sender = account | N | N |
| System smart contract can change another accounts EOA or contract A or contract B) state via delegate call | sender = account | N | N |
| **System contracts can change an accounts (EOA or contact A or contract B) state via call with the appropriate signature** | **signature map contains signature of accounts (EOA or contact A or contract B respectively)** | **Y** | **N** |
| **System smart contract can change another accounts (EOA or contact A or contract B) state via delegate call with the appropriate signature** | **signature map contains signature of accounts (EOA or contact A or contract B)** | **Y** | **N** |
| Contract A or B can call a system contract via a call | - | Y | Y |
| **Contract A or B can call a system contract via a delegate call** | **-** | **Y** | **N** |
| IHederaTokenService System Smart Contract Function | v1 Model Authorization Requirements | v2 Model Authorization Requirements | Impacts Code | Solution by Developers |
|---|---|---|---|---|
| **approve, approveNFT** | signature map contains accounts admin key signature | `msg.sender` must be entity to be modified | Y | Upgrade contractsorUpgrade DApps to provide explicit user approval\*Additional secure pathways: [HIP 376](https://hips.hedera.com/hip/hip-376) IERC.approve() |
| **associateToken** | signature map contains account admin key signature | `msg.sender` must be entity to be modified | Y | Upgrade contractsorUpgrade DApps to provide explicit user associate\*Additional secure pathways: [HIP 719](https://hips.hedera.com/hip/hip-719) IHRC.associate() |
| **burnToken** | signature map contains token burn key signatureorContract Id satisfies Token.supplyKey requirements | Contract Id satisfies Token.supplyKey requirements | Y | Token admin must set desired contract in Supply key |
| **createFungibleToken, createFungibleTokenWithCustomFees, createNonFungibleToken, createNonFungibleTokenWithCustomFees** | signature map contains affected account admin key signature(s) in treasuryorautoRenew assignment case | `msg.sender` must be entity to be modified in treasuryorautoRenew assignment case | Y | - |
| **cryptoTransfer** | signature map contains sender admin key signatureorContract Id satisfies Entity.key requirements | `msg.sender` must be entity to be modified in treasuryorautoRenew assignment case | Y | Upgrade DApps to provide explicit user approval. |
| **deleteToken** | signature map contains token admin key signatureorContract Id satisfies Token.adminKey requirements | Contract Id satisfies Token.adminKey requirements | Y | Token admin must set desired contract in admin key |
| **dissociateToken, dissociateTokens** | signature map contains admin key signature | `msg.sender` must be entity to be modified | Y | Upgrade contractsorUpgrade DApps to provide explicit user dissociate\*Additional secure pathways: [HIP 719](https://hips.hedera.com/hip/hip-719) IHRC.associate() |
| **freezeToken** | signature map contains freeze key signatureorContract Id satisfies Token.freezeKey requirements | Contract Id satisfies Token.freezeKey requirements | Y | Token admin must set desired contract in freeze key |
| **grantTokenKyc** | signature map contains kyc key signatureorContract Id satisfies Token.freezeKey requirements | Contract Id satisfies Token.kycKey requirements | Y | Token admin must set desired contract in kyc key |
| **mintToken** | signature map contains appropriate signatureorContract Id satisfies Token.supplyKey requirements | Contract Id satisfies Token.supplyKey requirements | Y | Token admin must set desired contract in Supply key |
| **pauseToken** | signature map contains pause key signatureorContract Id satisfies Token.pauseKey requirements | Contract Id satisfies Token.pauseKey requirements | Y | Token admin must set desired contract in pause key |
| **revokeTokenKyc** | signature map contains kyc key signatureorContract Id satisfies Token.freezeKey requirements | Contract Id satisfies Token.kycKey requirements | Y | Token admin must set desired contract in kyc key |
| **setApprovalForAll** | signature map contains admin key signature | `msg.sender` must be entity to be modified | Y | Upgrade contractsorUpgrade DApps to provide explicit user associate\*Additional secure pathways: [HIP 376](https://hips.hedera.com/hip/hip-376) IERC.setApprovalForAll() |
| **transferFrom, transferFromNFT** | signature map contains admin key signatureorSpender must have been pre-approved an allowance | `msg.sender` must be entity to be modified in treasuryorautoRenew assignment case | Y | Upgrade DApps to provide explicit user approval. |
| **transferToken, transferTokens, transferNFT, transferNFTs** | signature map contains admin key signatureorContract Id satisfies Entity.key requirementsorContract has been approved an allowance to spend by owner | `msg.sender` must be balance owner.If not 1. Contract Id satisfies Entity.key requirementsor2. Contract has been approved an allowance to spend by owner | Y | Upgrade DApps to provide explicit user approval. |
| **updateTokenInfo, updateTokenExpiryInfo, updateTokenKeys** | signature map contains token admin key signatureorContract Id satisfies Token.adminKey requirements | Contract Id satisfies Token.adminKey requirements | Y | Token admin must set desired contract in admin key |
| **wipeTokenAccount, wipeTokenAccountNFT** | signature map contains token wipe key signatureorContract Id satisfies Token.wipeKey requirements | Contract Id satisfies Token.wipeKey requirements | Y | Token admin must set desired contract in Wipe key |
| **unfreezeToken** | signature map contains token freeze key signatureorContract Id satisfies Token.freezeKey requirements | Contract Id satisfies Token.freezeKey requirements | Y | Token admin must set desired contract in freeze key |
| **unpauseToken** | signature map contains token pause key signatureorContract Id satisfies Token.pauseKey requirements | Contract Id satisfies Token.pauseKey requirements | Y | Token admin must set desired contract in pause key |
| **Input Data** | It records the input data or parameters provided when calling a particular function within a smart contract. This input data is essentially the encoded form of the function signature and its arguments. |
| **Output Data** | After executing the function, the trace information includes the output data returned by that function. This can be the result of the function's computation or any data it generates as part of its execution. |
| **Gas Details** | Logs information about the gas consumed by each function call. Each operation within a function consumes a certain amount of gas, and this information is tracked to calculate the overall transaction cost. |
| Call Trace Data | Description |
|---|---|
| Call Operation Type | Specific type of operation performed during the execution of a smart contract or a transaction in the EVM. Example: “CALL” is an operation type use when a transaction invokes a function within a smart contract. It executes the function and can potentially modify the state of the contract. ``` OP_UNKNOWN = 0; OP_CALL = 1; OP_CALLCODE = 2; OP_DELEGATECALL = 3; OP_STATICCALL = 4; OP_CREATE = 5; OP_CREATE2 = 6; ``` |
| Result Data | The result data is the output or return values generated by the execution of a smart contract function or action. When a function call is executed, it may produce data as a result, such as computed values, status indicators, contract revert reason if any and the error if the transaction itself failed without an explicit `REVERT` |
| Result Data Type | The "result data type" refers to the data type of the value returned by the function or method. For example, if you have a function `add(a, b)` that adds two numbers and returns the result, the result data type might be an integer if it returns the sum of the numbers. |
| Call Depth | The level or depth of the current function call within the call stack. It provides information about the nested nature of function calls and helps track the sequence and hierarchy of function invocations during the execution of a smart contract.\ \ The caller depth indicates how many functions have been called before the current function in the call stack. It starts at 0 for the initial function invocation and increments by 1 for each subsequent function call.\ \ For example, the parent transaction would be represented as call depth 1 and first child would be at call depth 1.1 and child transaction 2 would be at call depth 1.2. Child transaction at depth 1.2 has two parents. |
| Caller | The caller can be the ID of the account calling the contract or the ID of another smart contract calling the contract.\ \ The first action in the tree can only come from an account. The rest of the actions in the call tree come from the contract.\ \ When a smart contract function is invoked, either by an external account or by another contract, the caller address is recorded in the trace to identify the source of the function call. The caller address can be useful in understanding the context of the execution and determining the origin of the transaction or message that triggered the function call. |
| Recipient | The address of the smart contract or account that receives a specific call or transaction. It represents the destination or target of the interaction within the EVM. The contract action can be directed to one of the following:\ \ • Account: The account ID of the recipient if the recipient is an account. Only HBARs will be transferred.\ • Contract: The contract ID if the recipient is a smart contract\ • EVM address : If the contract action was directed to an invalid solidity address, what that address was |
| From | The from Hedera contract calling the next contract. |
| To | The contract receiving the call or being created. |
| Value/Amount | The amount of hbars transferred within this call. |
| Gas Limit | The gas is defined as the upper limit gas this contract call can spend. |
| Gas Used | The amount of gas that was used for the contract call. |
| Input | Bytes passed as an input data to this contract call |
| State Trace Data | Description |
|---|---|
| Address | The smart contract EVM address.Ex: `0000000000000000000000000000000000001f41` |
| Contract ID | The smart contract ID.Ex: `0.0.1234` |
| Slot | Refers to a storage location where data is stored within the contract's state. It can also be thought of as a variable or a storage unit that holds a specific value. |
| Value Read | The current values of variables or data structures before making modifications. These values can be used to validate conditions, perform calculations, or trigger specific actions within the contract's code. |
| Value Written | The written or changed variables or data structures after the modification. |
| Feature | web3js | Truffle | ethers | Hardhat | Remix IDE | Foundry |
|---|---|---|---|---|---|---|
| Transfer HBARS | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Contract Deployment | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Can use the contract instance after deploy without re-initialization | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Contract View Function Call | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Contract Function Call | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Debug Operations\*\* | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Topic | Description |
|---|---|
| **Cross-Chain Compatibility** | Manage ECDSA and ED25519 key types to enable interoperability with EVM-based ecosystems. |
| **State Management** | Adapt to Hedera’s off-chain state model, leveraging mirror nodes and event logs for querying and validation. |
| **Token Management** | Extend the Hedera Token Service with custom on-chain logic for minting, burning, and transferring tokens. |
| **Signature Verification** | Implement robust authorization mechanisms using `isAuthorized` and `isAuthorizedRaw` system contract functions. |
| Feature | Hedera | Ethereum |
|---|---|---|
| **State Management** | No Merkle Patricia Trie. For RPC block data requests, it returns the root hash of an empty Merkle trie. | Uses a Merkle Patricia Trie for `stateRoot`, enabling direct historical state verification. |
| **Historical Data** | Use mirror nodes to retrieve historical events, balances, and transaction details. | Historical data can be queried directly using Ethereum RPC methods like `eth_getBlockByNumber`. |
| **Testing Features** | Does not support contract snapshot features. | Supports snapshots for fast and modular testing. |
| Token Standard | Description | Use Cases |
|---|---|---|
| [**ERC-20**](/evm/tokens/erc20) | Fungible token standard | Cryptocurrencies, governance tokens |
| [**ERC-721**](/evm/tokens/erc721) | Non-fungible token (NFT) standard | Digital art, collectibles, gaming assets |
| [**ERC-3643**](/evm/tokens/erc3643) | Regulated real-world asset (RWA) token standard | Securities, compliant digital assets |
| [**ERC-1363**](/evm/tokens/erc1363) | Payable tokens supporting direct contract payments | Subscription models, in-app purchases |
| Tools | Description |
|---|---|
| [**Hardhat**](https://hardhat.org/hardhat-runner/docs/getting-started#overview) | Deploy and test smart contracts. |
| [**Web3.js**](https://web3js.readthedocs.io/en/v1.10.0/) **/** [**ethers.js**](https://docs.ethers.org/v5/) | Query and interact with contracts. |
| [**Remix IDE**](https://remix.ethereum.org/) | Deploy smart contracts using a browser-based IDE. |
| Facade Contracts | Description |
|---|---|
| **IHRC904AccountFacade.sol** | [[https://github.com/hiero-ledger/hiero-contracts/blob/main/contracts/account-service/IHRC904AccountFacade.sol](https://github.com/hiero-ledger/hiero-contracts/blob/main/contracts/account-service/IHRC904AccountFacade.sol)](https://github.com/hiero-ledger/hiero-contracts/blob/main/contracts/account-service/IHRC904AccountFacade.sol) |
| **IHRC906AccountFacade.sol** | [[https://github.com/hiero-ledger/hiero-contracts/blob/main/contracts/account-service/IHRC906AccountFacade.sol](https://github.com/hiero-ledger/hiero-contracts/blob/main/contracts/account-service/IHRC906AccountFacade.sol)](https://github.com/hiero-ledger/hiero-contracts/blob/main/contracts/account-service/IHRC906AccountFacade.sol) |
| **IHRC755ScheduleFacade.sol** | [[https://github.com/hiero-ledger/hiero-contracts/blob/main/contracts/schedule-service/IHRC755ScheduleFacade.sol](https://github.com/hiero-ledger/hiero-contracts/blob/main/contracts/schedule-service/IHRC755ScheduleFacade.sol)](https://github.com/hiero-ledger/hiero-contracts/blob/main/contracts/schedule-service/IHRC755ScheduleFacade.sol) |
| **IHRC904TokenFacade.sol** | [[https://github.com/hiero-ledger/hiero-contracts/blob/main/contracts/token-service/IHRC904TokenFacade.sol](https://github.com/hiero-ledger/hiero-contracts/blob/main/contracts/token-service/IHRC904TokenFacade.sol)](https://github.com/hiero-ledger/hiero-contracts/blob/main/contracts/token-service/IHRC904TokenFacade.sol) |
| System Contract | Contract Address | Source |
|---|---|---|
| **Hedera Account Service (HAS)** | `0x16a` | [[https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/account-service](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/account-service)](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/account-service) |
| **Hedera Schedule Service (HSS)** | `0x16b` | [[https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/schedule-service](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/schedule-service)](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/schedule-service) |
| **Hedera Token Service (HTS)** | `0x167` | [[https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/token-service](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/token-service)](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/token-service) |
| **Exchange Rate** | `0x168` | [[https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/exchange-rate](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/exchange-rate)](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/exchange-rate) |
| **Pseudo Random Number Generator (PRNG)** | `0x169` | [[https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/prng](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/prng)](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/prng) |
| Feature | HTS-Native Tokens | Smart Contract Tokens | Hybrid Approach |
|---|---|---|---|
| **Transaction Speed** | 10,000+ TPS | \~350 TPS (gas-limited) | HTS speed with smart contract flexibility |
| **Cost Efficiency** | Fixed, low-cost fees | Higher gas costs | HTS transactions remain low-cost |
| **Custom Logic** | ❌ Limited to built-in controls | ✅ Fully programmable | ✅ Smart contracts enhance HTS functionality |
| **Compliance Features** | ✅ KYC, Freeze, Pause, Wipe | ❌ Must be custom-coded | ✅ Hybrid approach supports compliance via smart contracts |
| **EVM Compatibility** | ✅ Via Facade Contracts | ✅ Standard ERC-20/ERC-721 | ✅ HTS tokens accessible via smart contracts |
| Function Name | Consensus Node Release Version | HIP | Method Interface |
|---|---|---|---|
| `allowance` | [0.26](/networks/release-notes/services#v0.26) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `allowance(address token, address owner, address spender)` |
| `approve` | [0.26](/networks/release-notes/services#v0.26) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `approve(address token, address to, uint256 tokenId)` |
| `approveNFT` | [0.28](/networks/release-notes/services#v0.28) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `approveNFT(address token, address to, uint256 tokenId)` |
| `associate` | [0.38](/networks/release-notes/services#v0.38) | [HIP 719](https://hips.hedera.com/hip/hip-719) | `associate()` |
| `associateToken` | [0.22](/networks/release-notes/services#v0.22) | [HIP 206](https://hips.hedera.com/hip/hip-206) | `associateToken(address account, address token)` |
| `associateTokens` | [0.22](/networks/release-notes/services#v0.22) | [HIP 206](https://hips.hedera.com/hip/hip-206) | `associateTokens(address account, address[] memory tokens)` |
| `burnToken` | [0.32](/networks/release-notes/services#v0.32) | [HIP 206](https://hips.hedera.com/hip/hip-206) | `burnToken(address token, int64 amount, int64[] memory serialNumbers)` |
| `createFungibleToken` | [0.32](/networks/release-notes/services#v0.32) | [HIP 358](https://hips.hedera.com/hip/hip-358) | `createFungibleToken(HederaToken memory token, int64 initialTotalSupply, int32 decimals)` |
| `createFungibleTokenWithCustomFees` | [0.30](/networks/release-notes/services#v0.30) | [HIP 358](https://hips.hedera.com/hip/hip-358) | `createFungibleTokenWithCustomFees(HederaToken memory token, int64 initialTotalSupply, int32 decimals, FixedFee[] memory fixedFees, FractionalFee[] memory fractionalFees)` |
| `createNonFungibleToken` | [0.25](/networks/release-notes/services#v0.25) | [HIP 358](https://hips.hedera.com/hip/hip-358) | `createNonFungibleToken(HederaToken memory token)` |
| `createNonFungibleTokenWithCustomFees` | [0.32](/networks/release-notes/services#v0.32) | [HIP 358](https://hips.hedera.com/hip/hip-358) | `createNonFungibleTokenWithCustomFees(HederaToken memory token, FixedFee[] memory fixedFees, RoyaltyFee[] memory royaltyFees)` |
| `cryptoTransfer` | Unreleased | [HIP 206](https://hips.hedera.com/hip/hip-206) | `cryptoTransfer(TransferList memory transferList, TokenTransferList[] memory tokenTransfers) external returns (int64 responseCode)` |
| `deleteToken` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `deleteToken(address token)` |
| `dissociate` | [0.38](/networks/release-notes/services#v0.38) | [HIP 719](https://hips.hedera.com/hip/hip-719) | `dissociate()` |
| `dissociateToken` | [0.22](/networks/release-notes/services#v0.22) | [HIP 206](https://hips.hedera.com/hip/hip-206) | `dissociateToken(address account, address token)` |
| `dissociateTokens` | [0.22](/networks/release-notes/services#v0.22) | [HIP 206](https://hips.hedera.com/hip/hip-206) | `dissociateTokens(address account, address[] memory tokens)` |
| `freezeToken` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `freezeToken(address token, address account)` |
| `getApproved` | [0.26](/networks/release-notes/services#v0.26) | [HIP 376](https://hips.hedera.com/hip/hip-376) | `getApproved(address token, uint256 tokenId)` |
| `getFungibleTokenInfo` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `getFungibleTokenInfo(address token)` |
| `getNonFungibleTokenInfo` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `getNonFungibleTokenInfo(address token, int64 serialNumber)` |
| `getTokenCustomFees` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `getTokenCustomFees(address token)` |
| `getTokenDefaultFreezeStatus` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `getTokenDefaultFreezeStatus(address token)` |
| `getTokenDefaultKycStatus` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `getTokenDefaultKycStatus(address token)` |
| `getTokenExpiryInfo` | [0.30](/networks/release-notes/services#v0.30) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `getTokenExpiryInfo(address token)` |
| `getTokenInfo` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `getTokenInfo(address token)` |
| `getTokenKey` | [0.30](/networks/release-notes/services#v0.30) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `getTokenKey(address token, uint256 keyType)` |
| `getTokenType` | [0.30](/networks/release-notes/services#v0.30) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `getTokenType(address token)` |
| `grantTokenKyc` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `grantTokenKyc(address token, address account)` |
| `isAssociated` | [0.53](/networks/release-notes/services#v0.53) | [HIP 719](https://hips.hedera.com/hip/hip-719) | `isAssociated()` |
| `isApprovedForAll` | [0.26](/networks/release-notes/services#v0.26) | [HIP 376](https://hips.hedera.com/hip/hip-376) | `isApprovedForAll(address token, address owner, address operator)` |
| `isFrozen` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `isFrozen(address token, address account)` |
| `isKyc` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `isKyc(address token, address account)` |
| `isToken` | [0.30](/networks/release-notes/services#v0.30) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `isToken(address token)` |
| `mintToken` | [0.32](/networks/release-notes/services#v0.32) | [HIP 206](https://hips.hedera.com/hip/hip-206) | `mintToken(address token, int64 amount, bytes[] memory metadata)` |
| `redirectForToken` | [0.30](/networks/release-notes/services#v0.24) | [HIP 218](https://hips.hedera.com/hip/hip-218) | `redirectForToken(address token, bytes memory data)` |
| `revokeTokenKyc` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `revokeTokenKyc(address token, address account)` |
| `setApprovalForAll` | [0.26](/networks/release-notes/services#v0.26) | [HIP 376](https://hips.hedera.com/hip/hip-376) | `setApprovalForAll(address token, address operator, bool approved)` |
| `transferFrom` | [0.26](/networks/release-notes/services#v0.26) | [HIP 376](https://hips.hedera.com/hip/hip-376) | `transferFrom(address token, address from, address to, uint256 tokenId)` |
| `transferFromNFT` | [0.26](/networks/release-notes/services#v0.26) | [HIP 376](https://hips.hedera.com/hip/hip-376) | `transferFromNFT(address token, address from, address to, uint256 serialNumber)` |
| `transferNFT` | [0.22](/networks/release-notes/services#v0.22) | [HIP 206](https://hips.hedera.com/hip/hip-206) | `transferNFT(address token, address sender, address recipient, int64 serialNum)` |
| `transferNFTs` | [0.22](/networks/release-notes/services#v0.22) | [HIP 206](https://hips.hedera.com/hip/hip-206) | `transferNFTs(address token, address[] memory sender, address[] memory receiver, int64[] memory serialNumber)` |
| `transferToken` | [0.22](/networks/release-notes/services#v0.22) | [HIP 206](https://hips.hedera.com/hip/hip-206) | `transferToken(address token, address sender, address recipient, int64 amount)` |
| `transferTokens` | [0.22](/networks/release-notes/services#v0.22) | [HIP 206](https://hips.hedera.com/hip/hip-206) | `transferTokens(address token, address[] memory accountId, int64[] memory amount)` |
| `unfreezeToken` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `unfreezeToken(address token, address account)` |
| `unpauseToken` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `unpauseToken(address token)` |
| `updateTokenExpiryInfo` | [0.32](/networks/release-notes/services#v0.32) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `updateTokenExpiryInfo(address token, Expiry expiry)` |
| `updateTokenInfo` | [0.32](/networks/release-notes/services#v0.32) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `updateTokenInfo(address token, HederaToken hederaToken)` |
| `updateTokenKeys` | [0.30](/networks/release-notes/services#v0.30) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `updateTokenKeys(address token, Expiry expiry)` |
| `wipeTokenAccount` | [0.32](/networks/release-notes/services#v0.32) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `wipeTokenAccount(address token, address account, int64 amount)` |
| `wipeTokenAccountNFT` | [0.29](/networks/release-notes/services#v0.29) | [HIP 514](https://hips.hedera.com/hip/hip-514) | `wipeTokenAccountNFT(address token, address account, int64[] serialNumbers)` |
| Function Name | Consensus Node Release Version | HIP | Method Interface |
|---|---|---|---|
| `allowance` | [0.26](/networks/release-notes/services#v0.26) | [HIP 376](https://hips.hedera.com/hip/hip-376) | `allowance(address owner, address spender)` |
| `approve` | [0.26](/networks/release-notes/services#v0.26) | [HIP 376](https://hips.hedera.com/hip/hip-376) | `approve(address to, uint256 tokenId)` |
| `getApproved` | [0.26](/networks/release-notes/services#v0.26) | [HIP 376](https://hips.hedera.com/hip/hip-376) | `getApproved(uint256 tokenId)` |
| `isApprovedForAll` | [0.26](/networks/release-notes/services#v0.26) | [HIP 376](https://hips.hedera.com/hip/hip-376) | `isApprovedForAll(address token, address owner, address operator)` |
| `setApprovalForAll` | [0.26](/networks/release-notes/services#v0.26) | [HIP 376](https://hips.hedera.com/hip/hip-376) | `setApprovalForAll(address operator, bool approved)` |
| `transferFrom` | [0.26](/networks/release-notes/services#v0.26) | [HIP 376](https://hips.hedera.com/hip/hip-376) | `transferFrom(address from, address to, uint256 tokenId)` |
| Function Name | Function Selector | Consensus Node Release Version | HIP | Function Interface |
|---|---|---|---|---|
| `authorizeSchedule` | `0xf0637961` | [0.57](/networks/release-notes/services#release-v0.57) | [HIP 755](https://hips.hedera.com/hip/hip-755) | `authorizeSchedule(address) external returns (int64 responseCode)` |
| `signSchedule` | `0x358eeb03` | [0.59](/networks/release-notes/services#release-v0.59) | [HIP 755](https://hips.hedera.com/hip/hip-755) | `signSchedule(address, bytes) external returns (int64 responseCode)` |
| `scheduleNative` | `0xca829811` | [0.59](/networks/release-notes/services#release-v0.59) | [HIP 756](https://hips.hedera.com/hip/hip-756) | `scheduleNative(address, bytes, address) external returns (int64, address)` |
| `getScheduledCreateFungibleTokenInfo` | `0xda2d5f8f` | [0.59](/networks/release-notes/services#release-v0.59) | [HIP 756](https://hips.hedera.com/hip/hip-756) | `getScheduledCreateFungibleTokenInfo(address) external returns (int64, FungibleTokenInfo)` |
| `getScheduledCreateNonFungibleTokenInfo` | `0xd68c902c` | [0.59](/networks/release-notes/services#release-v0.59) | [HIP 756](https://hips.hedera.com/hip/hip-756) | `getScheduledCreateNonFungibleTokenInfo(address) external returns (int64, NonFungibleTokenInfo)` |
| `scheduleCall` | `0x6f5bfde8` | [0.68](/networks/release-notes/services#release-v0.68) | [HIP 1215](https://hips.hedera.com/hip/hip-1215) | `scheduleCall(address, uint256, uint256, uint64, bytes) external returns (int64, address)` |
| `scheduleCallWithPayer` | `0xe6599c18` | [0.68](/networks/release-notes/services#release-v0.68) | [HIP 1215](https://hips.hedera.com/hip/hip-1215) | `scheduleCallWithPayer(address, address, uint256, uint256, uint64, bytes) external returns (int64, address)` |
| `executeCallOnPayerSignature` | `0x105772b2` | [0.68](/networks/release-notes/services#release-v0.68) | [HIP 1215](https://hips.hedera.com/hip/hip-1215) | `executeCallOnPayerSignature(address, address, uint256, uint256, uint64, bytes) external returns (int64, address)` |
| `deleteSchedule` | `0x72d42394` | [0.68](/networks/release-notes/services#release-v0.68) | [HIP 1215](https://hips.hedera.com/hip/hip-1215) | `deleteSchedule(address) external returns (int64)` |
| `deleteSchedule` | `0xc61dea85` | [0.68](/networks/release-notes/services#release-v0.68) | [HIP 1215](https://hips.hedera.com/hip/hip-1215) | `deleteSchedule() external returns (int64)` |
| `hasScheduleCapacity` | `0xdfb4a999` | [0.68](/networks/release-notes/services#release-v0.68) | [HIP 1215](https://hips.hedera.com/hip/hip-1215) | `hasScheduleCapacity(uint256, uint256) external view returns (bool)` |
{props.text}
> >{props.text}
>** element. Both elements have the **className "sub-text"** for consistent styling. Finally, we export the **MyText** component so it can be used in other parts of the application, allowing for easy creation of text elements with optional links. > [accordion] MySendGroup > > ```typescript theme={null} > import React from "react"; > import MyInputBox from "./MyInputBox"; > import MyButton from "./MyButton"; > import MyText from "./MyText"; > function MySendGroup(props) { > return ( >
| Name | Value |
|---|---|
| **Network Name** | Hedera Mainnet |
| **RPC Endpoint** | `https://mainnet.hashio.io/api` |
| **Chain ID** | `295` |
| **Currency Symbol** | HBAR |
| **Block Explorer URL** | `https://hashscan.io/mainnet` |
| Name | Value |
|---|---|
| **Network Name** | Hedera Testnet |
| **RPC Endpoint** | `https://testnet.hashio.io/api` |
| **Chain ID** | `296` |
| **Currency Symbol** | HBAR |
| **Block Explorer URL** | `https://hashscan.io/testnet` |
| Function | Description | Example |
|---|---|---|
| `transfer` | Send WHBAR directly to another address | `whbar.transfer(recipient, amount)` |
| `approve` | Authorize a third party to spend your WHBAR | `whbar.approve(spender, amount)` |
| `transferFrom` | Transfer WHBAR as an authorized spender | `whbar.transferFrom(owner, recipient, amount)` |
| `balanceOf` | Check WHBAR balance of an address | `whbar.balanceOf(address)` |
| `totalSupply` | Get the total amount of WHBAR in circulation | `whbar.totalSupply()` |
| Network | Contract ID | EVM Address |
|---|---|---|
| **✅ Hedera Mainnet** | [0.0.8840785](https://hashscan.io/mainnet/contract/0.0.8840785) | 0xb1F616b8134F602c3Bb465fB5b5e6565cCAd37Ed |
| **✅ Hedera Testnet** | [0.0.5816542](https://hashscan.io/testnet/contract/0.0.5816542?pa=1\&pr=1\&ps=1\&pf=1) | 0xb1F616b8134F602c3Bb465fB5b5e6565cCAd37Ed |
| 🔜 **Other Networks** | Coming soon | Coming soon |
| System Contract | Contract Address | Source |
|---|---|---|
| **Hedera Account Service (HAS)** | `0x16a` | [[https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/account-service](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/account-service)](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/account-service) |
| **Hedera Schedule Service (HSS)** | `0x16b` | [[https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/schedule-service](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/schedule-service)](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/schedule-service) |
| **Hedera Token Service (HTS)** | `0x167` | [[https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/token-service](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/token-service)](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/token-service) |
| **Exchange Rate** | `0x168` | [[https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/exchange-rate](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/exchange-rate)](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/exchange-rate) |
| **Pseudo Random Number Generator (PRNG)** | `0x169` | [[https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/prng](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/prng)](https://github.com/hiero-ledger/hiero-contracts/tree/main/contracts/prng) |
| Feature | HTS-Native Tokens | Smart Contract Tokens | Hybrid Approach |
|---|---|---|---|
| **Transaction Speed** | 10,000+ TPS | \~350 TPS (gas-limited) | HTS speed with smart contract flexibility |
| **Cost Efficiency** | Fixed, low-cost fees | Higher gas costs | HTS transactions remain low-cost |
| **Custom Logic** | ❌ Limited to built-in controls | ✅ Fully programmable | ✅ Smart contracts enhance HTS functionality |
| **Compliance Features** | ✅ KYC, Freeze, Pause, Wipe | ❌ Must be custom-coded | ✅ Hybrid approach supports compliance via smart contracts |
| **EVM Compatibility** | ✅ Via Facade Contracts | ✅ Standard ERC-20/ERC-721 | ✅ HTS tokens accessible via smart contracts |
| **Description** | **Example** | |
| **Simple Key** | A single key on an account. | **Account** **Key** \ \{ \ Key 1 \ }\ Only one key is required to sign for the account. |
| **Key List** | All keys in the key list are required to sign transactions involving the account. | **Account Key**\ **KeyList (3/3)** \ \{ \ Key 1 \ Key 2 \ Key 3 \ }\ All three keys in the list are required to sign for the account. |
| **Threshold Key** | A subset of keys defined as the threshold are required to sign the transaction that involve the account out of the total number of keys. | **Account Key**\ **ThresholdKey (1/3)** \ \{ \ Key 1 \ Key 2 \ Key 3 \ }\ One out of the three keys in the key list is required to sign for the account. |
state\ in the Hedera Network?
>
> The state in the Hedera Network is the current status of all data, like the amount of HBAR in a set of accounts. It is maintained across multiple nodes in a consistent representation, providing fault tolerance. The state constantly changes as transactions are applied to it.
> [accordion] How does Hedera handle history?
>
> The history of transactions is maintained as a separate data structure from the state. It provides a record of transactions that have changed the state over time. It is usually envisaged as immutable and irreversible. Mirror nodes in the Hedera architecture store the transaction history, while mainnet nodes focus on consensus and state storage.
> [accordion] What are the roles of mainnet nodes and mirror nodes?
>
> Mainnet nodes prioritize contributing to consensus and persisting state. They delete historical transactions after they are assigned a place in the consensus order. Mirror nodes, on the other hand, store the transaction history and maintain state, providing a record of past transactions for audit purposes.
# Token Airdrops
Source: https://docs.hedera.com/learn/core-concepts/tokens/airdrops
Learn how HIP-904 frictionless token airdrops on Hedera distribute tokens to many accounts, handling associations automatically and letting recipients claim or reject.
## Overview
Token airdrops are commonly used to distribute tokens to multiple accounts, often as a promotional or reward mechanism. Hedera introduced "frictionless" airdrops in HIP-904 that simplify token distribution by handling token associations automatically and allowing recipients to accept or reject tokens as they choose. The Hedera SDKs provide dedicated transaction types (e.g., `TokenAirdropTransaction`, `TokenClaimAirdropTransaction`, `TokenRejectTransaction`) to support these flows. Let's break down how exactly token airdrops work on Hedera below.
***
## Token Airdrop
The `TokenAirdropTransaction` allows senders to distribute tokens to multiple recipients in a single transaction, even if the receiving accounts haven't previously associated with the token. This transaction type handles different recipient states:
* **Direct Airdrop**: If the recipient has an available auto-association slot or has pre-associated with the token, the token is transferred immediately.
* **Pending Airdrop**: If the recipient lacks an available association slot, the network creates a pending airdrop instead of failing the transaction.
The sender pays all associated fees, including transfer costs, association fees (if auto-associating a new token), first auto-renewal period rent for any new token associations and airdrop-specific spam deterrent fee. By balancing seamless token distribution with user control, this transaction type is valuable for token issuers, marketers, and airdrop campaigns.

***
## Claim Airdrop
The `TokenClaimAirdropTransaction` enables recipients to claim pending airdrops that were created when a TokenAirdropTransaction couldn’t complete due to a lack of available association slots. This ensures that users have the final say in which tokens enter their accounts.
The claim transaction integrates token association and transfer to avoid additional steps. At the moment of claim, the sender's balance is verified—if insufficient, the claim doesn’t proceed. The transaction requires the recipient's signature, enhancing security. The recipient must actively claim the airdrop, ensuring that token acceptance is consent-based. Key features include streamlined processing and enhanced security through recipient consent

***
## Cancel Airdrop
The TokenCancelAirdropTransaction allows senders to manage unclaimed pending airdrops, enabling them to cancel token distributions that haven't been accepted. This feature is particularly useful when a mistake is made in the airdrop, the sender needs to reallocate tokens elsewhere, or the sender wants to reclaim tokens from inactive recipients. Although the sender incurs a small cancellation fee to prevent misuse, they can effectively remove unclaimed airdrops from the network state. Only the original sender can initiate this process, and airdrops that have already been claimed cannot be canceled

***
## **Reject Token**
The `TokenRejectFlow` streamlines the process of returning unwanted tokens to the token's treasury account and dissociating the account from the token, effectively preventing spam and unwanted tokens. This flow can only be initiated if the token is not frozen and the recipient's account is active (i.e., not paused) for that token. The process allows recipients to reject tokens without requiring treasury consent, and all custom fees and royalties are waived so that users aren’t penalized for rejecting a token.
The process begins when a recipient initiates a `TokenRejectTransaction` for a specific token. The network then verifies the transaction by checking the token's state and the account's eligibility. Once the request is approved, the recipient's balance for that token is updated to zero, and the tokens are transferred back to the treasury and dissociated from the account. This entire sequence is executed seamlessly with a single `execute()` call, ensuring an efficient and user-friendly experience.

***
## Token Associations
When transferring tokens on Hedera, recipients must first link (associate) it to a smart contract or account before any token transfers can occur. This is called **token association**. Without it, token transfers will fail. If a token isn’t pre-associated or lacks an auto-association slot, transfers cannot proceed.
You can associate with a token in the following ways:
* Using the Hedera SDK with a `TokenAssociationTransaction`
* Using the `associateToken()` and `associateTokens()` as described in HIP-206.
> [!NOTE]
>
> **Note:** `Token association` is for HTS tokens only.
### Auto-Associations and Fees
Hedera introduced frictionless airdrops through HIP-904, enabling automatic token associations for recipients who haven't pre-associated, within auto-association limits. Each account has a `maxAutoAssociations` property that specifies the maximum number of allowed auto-associations. The sender covers the `maxAutoAssociations` fee and the rent for the association's first auto-renewal period, on top of the usual transfer fees. This setup ensures recipients can receive tokens without prior association, streamlining the transfer process. The properties are as follows:
| Property Value | Description |
|---|---|
| `0` | Automatic token associations or [token airdrops](#user-content-fn-1) are not allowed, and the account must be manually associated with a token. This also applies if the value is less than or equal to `usedAutoAssociations`. |
| `-1` | The number of automatic token associations an account can have is unlimited. `-1` is the default value for new automatically-created accounts. |
| `> 0` | If the value is a positive number (number greater than 0), the number of automatic token associations an account can have is limited to that number. |
| Key | Description |
|---|---|
| **Admin Key** | Grants full control over token configuration, including updating properties. Used for governance and administrative tasks, such as freezing or pausing. |
| **Supply Key** | Allows minting and burning of tokens to adjust the total supply. Ensures control over token issuance and circulation. |
| **Freeze Key** | Enables freezing or unfreezing token transfers for specific accounts. Used to enforce restrictions during investigations or compliance checks. |
| **KYC Key** | Enforces KYC compliance, allowing only approved accounts to transact with tokens. Ensures regulatory compliance for sensitive use cases. |
| **Wipe Key** | Allows removal of tokens from specific accounts. Used for refunding or correcting token allocations. |
| **Pause Key** | Allows pausing or unpausing token transactions. Pausing a token prevents the token from participating in all transactions. |
| **Fee Schedule Key** | Allows adjustments to the token’s custom fee schedule, providing flexibility in managing transaction costs. |
| **Metadata Key** | The key which can update the metadata of an NFT. This key is used to sign and authorize the transaction to update the metadata of NFTs. This value can be null. |
| Fee Type | Who Pays? | Payment Type |
|---|---|---|
| **Fixed Fee** | Sender | HBAR or HTS FT |
| **Fractional Fee** | Sender (or recipient if configured) | HTS FT |
| **Royalty Fee** | NFT Buyer (if exchanged for FTs) | HBAR or HTS FT |
| **Royalty Fallback** | NFT Receiver (if no fungible value received) | Fixed fee in HBAR |
| Feature | Custom Fees | Transaction Fees |
|---|---|---|
| **Purpose** | Enforce token-specific fee structures (e.g., royalties, taxes) | Compensate network nodes for transaction processing |
| **Who Collects?** | Designated fee collector(s) | Hedera network nodes |
| **Currency** | HBAR or HTS fungible tokens | HBAR only |
| **Configurability** | Fully configurable by token issuer | Fixed by the network |
| Feature | Function | Benefit |
|---|---|---|
| **KYC Enforcement** | Restricts transfers to verified accounts | Ensures regulatory compliance and security |
| **Freeze/Pause Functions** | Suspends transactions when needed | Protects against fraud and suspicious activity |
| **Custom Fees** | Supports royalties & structured payments | Automates revenue collection and token monetization |
| **Supply Control** | Enables or disables minting or burning | Maintains controlled token supply |
| **Account Association** | Prevents spam token transfers | Enhances security and prevents unwanted token drops |
| Role | Description |
|---|---|
| **Admin Key** | Grants full control over token configuration, including updating properties. Used for governance and administrative tasks, such as freezing or pausing. |
| **Supply Key** | Allows minting and burning of tokens to adjust the total supply. Ensures control over token issuance and circulation. |
| **Freeze Key** | Enables freezing or unfreezing token transfers for specific accounts. Used to enforce restrictions during investigations or compliance checks. |
| **KYC Key** | Enforces KYC compliance, allowing only approved accounts to transact with tokens. Ensures regulatory compliance for sensitive use cases. |
| **Wipe Key** | Allows removal of tokens from specific accounts. Used for refunding or correcting token allocations. |
| **Pause Key** | Allows pausing or unpausing token transactions. Pausing a token prevents the token from participating in all transactions. |
| **Fee Schedule Key** | Allows adjustments to the token’s custom fee schedule, providing flexibility in managing transaction costs. |
| **Metadata Key** | The key which can update the metadata of an NFT. This key is used to sign and authorize the transaction to update the metadata of NFTs. This value can be null. |
| Operation | Description |
|---|---|
| **Mint** | Increase the total supply of a token by creating new units. |
| **Burn** | Decrease the total supply of a token by destroying specific units. |
| **Associate** | Enables an account to hold and transact the token. |
| **Dissociate** | Remove a token association from an account to prevent further transactions. |
| **Freeze/Unfreeze** | Temporarily restrict or allow token transfers for specific accounts. |
| **Wipe** | Remove tokens from an account’s balance, effectively burning them. |
| **Enable KYC** | Restricts token holding or transfers to accounts meeting compliance requirements. |
| Feature | HTS Native Tokenization | ERC/EVM Tokenization | Hybrid Tokenization |
|---|---|---|---|
| **Smart Contracts Required** | No | Yes | Optional (HTS + EVM) |
| **Cost Efficiency** | Low fees, fixed-cost transactions | Higher gas fees | Lower fees than full EVM, utilizes HTS efficiencies |
| **Compliance & Security** | Built-in compliance tools (KYC, freeze, pause) | No built-in compliance, requires smart contract logic | HTS tokens act as ERC-20/ERC-721 (via HIP-218 & HIP-376) |
| **Flexibility** | Limited customization | Highly customizable with Solidity | Combines benefits of both models |
| **Use Cases** | Enterprise solutions, regulated assets, fast transactions | DeFi, dApps, token standards (ERC-20, ERC-721, ERC-3643) | Interoperability, scalable token solutions, cost-effective DeFi |
| Property | Description |
|---|---|
| **Name** | Set the publicly visible name of the token. The token name is specified as a string of UTF-8 characters in Unicode. UTF-8 encoding of this Unicode cannot contain the 0 byte (`NUL`). The token name is not unique. Maximum of 100 characters. |
| **Token Type** | The type of token to create. Either fungible (`FUNGIBLE_COMMON`) or non-fungible(`NON_FUNGIBLE_UNIQUE`). |
| **Symbol** | The publicly visible token symbol. Set the publicly visible name of the token. The token symbol is specified as a string of UTF-8 characters in Unicode. UTF-8 encoding of this Unicode cannot contain the 0 byte (`NUL`). The token symbol is not unique. Maximum of 100 characters. |
| **Decimal** | The number of decimal places a token is divisible by. This field can never be changed. |
| **Initial Supply** | Specifies the initial supply of fungible tokens to be put in circulation. The initial supply is sent to the Treasury Account. The maximum supply of tokens is `9,223,372,036,854,775,807`(`2^63-1`) tokens and is in the lowest denomination possible. For creating an NFT, you must set the initial supply to 0. |
| **Treasury Account** | The account which will act as a treasury for the token. This account will receive the specified initial supply and any additional tokens that are minted. If tokens are burned, the supply will decreased from the treasury account. |
| **Fee Schedule Key** | The key which can change the token's [custom fee](/native/tokens/custom-fees) schedule. It must sign a TokenFeeScheduleUpdate transaction. A custom fee schedule token without a fee schedule key is immutable. |
| **Custom Fees** | [Custom fees](/native/tokens/custom-fees) to charge during a token transfer transaction that transfers units of this token. Custom fees can either be [fixed](/native/tokens/custom-fees#fixed-fee), [fractional](/native/tokens/custom-fees#fractional-fee), or [royalty](/native/tokens/custom-fees#royalty-fee) fees. You can set up to a maximum of 10 custom fees. |
| **Max Supply** | For tokens of type `FUNGIBLE_COMMON` - the maximum number of tokens that can be in circulation.\ For tokens of type `NON_FUNGIBLE_UNIQUE` - the maximum number of NFTs (serial numbers) that can be minted. This field can never be changed.\ You must set the token supply type to FINITE if you set this field. |
| **Supply Type** | Specifies the token supply type. Defaults to INFINITE. |
| **Freeze Default** | The default Freeze status (frozen or unfrozen) of Hedera accounts relative to this token. If true, an account must be unfrozen before it can receive the token. |
| **Expiration Time** | The epoch second at which the token should expire; if an auto-renew account and period are specified, this is coerced to the current epoch second plus the autoRenewPeriod. The default expiration time is 7,890,000 seconds (90 days). |
| **Auto Renew Account** | An account which will be automatically charged to renew the token's expiration, at autoRenewPeriod interval. This key is required to sign the transaction if present. Currently, rent is not enforced for tokens so auto-renew payments will not be made. |
| **Auto Renew Period** | The interval at which the auto-renew account will be charged to extend the token's expiry. The default auto-renew period is 7,890,000 seconds. Currently, rent is not enforced for tokens so auto-renew payments will not be made.\ \ **NOTE:** The minimum period of time is approximately 30 days (2592000 seconds) and the maximum period of time is approximately 92 days (8000001 seconds). Any other value outside of this range will return the following error: AUTORENEW\_DURATION\_NOT\_IN\_RANGE. |
| **Memo** | A short publicly visible memo about the token. |
| **Metadata** | The metadata of the token. The admin key or the metadata key can be used to update this property. |
| Component | Description | Default |
|---|---|---|
| **Shard Number** (`shardNum`) | Defines the shard (partition) where the token exists. Currently, Hedera operates in only one shard, so this value remains `0`. | `0` |
| **Realm Number** (`realmNum`) | Identifies the realm within a shard. Today, Hedera has one realm, so this value is also `0`. | `0` |
| **Token Number** (`tokenNum`) | A unique identifier assigned to each token when it is created. | **Varies**(assigned at creation) |
| **Serial Number** (`serialNum`) | A unique identifier for individual NFTs within a collection. Not applicable to fungible tokens. | **N/A** (NFTs only) |
| Error | Code | Cause | Solution |
|---|---|---|---|
| `BATCH_LIST_EMPTY` | 388 | Submitting a batch with no inner transactions | Add at least one inner transaction to the batch |
| `BATCH_LIST_CONTAINS_DUPLICATES` | 389 | The batch contains duplicate inner transactions | Ensure each inner transaction in the batch is unique |
| `BATCH_TRANSACTION_IN_BLACKLIST` | 390 | An inner transaction is of a type that's not allowed in batches | Only use allowed transaction types in batches |
| `INNER_TRANSACTION_FAILED` | 391 | One or more inner transactions failed during execution | Check the specific error for the inner transaction and fix the issue |
| `BATCH_KEY_SET_ON_NON_INNER_TRANSACTION` | 393 | `BatchKey` is set on the outer transaction | Only set BatchKey on inner transactions, not on the outer batch transaction |
| `INVALID_BATCH_KEY` | 394 | The `BatchKey` is missing or invalid | Ensure all inner transactions have a valid `BatchKey` set |
| `INVALID_NODE_ACCOUNT_ID` | 341 | Inner transaction has a nodeAccountID other than 0.0.0 | Use the `batchify()` method which automatically sets nodeAccountID to 0.0.0 |
| Property | Description |
|---|---|
| **Transaction ID** | The unique identifier for a transaction on the Hedera network. The transaction ID is composed of the account ID of the account paying for the transaction and the transaction's valid start time.\ \ Format: `accountID@validStartTime`\ Example: `0.0.9401@1598924675.82525000`\ \ For child transactions in nested transactions, a nonce value is added:\ Format: `accountID@validStartTime/nonce`\ Example: `0.0.2252@1640119571.329880313/1` |
| **Node Account ID** | The account of the node the transaction is being sent to.\
\
Format: ` |
| **Transaction Fee** | The maximum fee the paying account is willing to pay for the transaction. This is an upper bound, and the actual fee charged may be less.\ \ The transaction fee consists of:\ \- Node fee: Paid to the node processing the transaction\ \- Network fee: Paid to the network for processing the transaction\ \- Service fee: Paid for the specific service being used\ \ For batch transactions, the fee structure is:\ \- The outer batch transaction has its own fee (node + network)\ \- Each inner transaction pays its own fee (node + network + service)\ \- Inner transactions are charged even if the batch fails |
| **Valid Duration** | The number of seconds that the client wishes the transaction to be deemed valid for, starting at the transaction's valid start time.\ \ Transactions have a valid duration of up to 180 seconds. If the transaction is not accepted within this timeframe, it will expire and must be recreated. |
| **Memo** | A string of text that can be included with a transaction.\ \ Limited to 100 bytes of UTF-8 encoded data. This field is optional and visible to all participants in the network. |
| **Transaction Body** | The specific operation to be performed. Only one operation type can be specified in a given transaction.\ \ The transaction body can contain one of the following operation types:\ \- `contractCall`: Call a smart contract function\ \- `contractCreateInstance`: Create a new smart contract instance\ \- `cryptoCreateAccount`: Create a new cryptocurrency account\ \- `cryptoTransfer`: Transfer cryptocurrency between accounts\ \- `fileCreate`: Create a new file\ \- `consensusSubmitMessage`: Submit a message to a topic\ \- `tokenCreation`: Create a new token\ \- `atomicBatch`: Execute multiple transactions atomically\ \- And many others (over 40 different transaction types) |
| **Batch Key** | A property introduced in HIP-551 that must be set on inner transactions within a batch to ensure transaction integrity and prevent tampering.\ \ The batch key:\ \- Signals the trusted signer who can finalize the batch\ \- Ensures that batch transactions can only be submitted as a whole\ \- Prevents malicious actors from tampering with a batch\ \ Required for all inner transactions in a batch. Must not be set on the outer batch transaction. |
| **Signatures** | Cryptographic proofs that authorize the transaction.\ \ Different transaction types may require different signatures:\ \- The account paying for the transaction must always sign\ \- For token operations, the token's admin key may need to sign\ \- For account updates, the account's key must sign\ \- For batch transactions, all batch keys must sign the outer transaction |
| **Inner Transactions** | For batch transactions, the list of transactions to be executed atomically.\ \ Inner transactions:\ \- Are signed individually\ \- Each pays for itself (node + network + service fees)\ \- Have their own payer\ \- Are deduplicated individually\ \- Have `scheduled = false` and `nonce = 0`\ \- Cannot be batch transactions themselves\ \- Must have nodeAccountID set to 0.0.0\ \- Must set batchKey\ \- May include at most one smart contract call, and it must be the last inner transaction in the batch |
| **Transaction Valid Start** | The timestamp at which the transaction begins to be valid.\ \ Format: Seconds.nanoseconds since the epoch\ Example: `1598924675.82525000`\ \ This timestamp is used as part of the transaction ID and can be set to a future date/time. |
| **Generated Transaction ID** | For child transactions in nested transactions, the transaction ID is generated with an additional nonce value.\ \ Parent Transaction ID: `payerAccountId@transactionValidStart`\ Child Transaction ID: `payerAccountId@transactionValidStart/nonce`\ \ Example:\ \- Parent: `0.0.2252@1640119571.329880313`\ \- Child 1: `0.0.2252@1640119571.329880313/1`\ \- Child 2: `0.0.2252@1640119571.329880313/2` |
| **Consensus Timestamp** | Generated by the network once consensus is reached; it reflects when the majority of nodes first received the transaction and is computed as the median of those times. This information is critical for record-keeping and audit trails. |
| **Transaction Receipt** | Produced after processing; it details the outcome (including status codes and new entity ids, if applicable) and confirms that consensus has been reached. |
| **Transaction Hash** | A unique digest (typically computed using sha-384) representing the finalized transaction content; useful for integrity verification. |
| Method | Type | Description | Requirement |
|---|---|---|---|
| `setAccountId( | AccountId | The ID of the account to delete. | Required |
| `setTransferAccountId( | AccountId | The ID of the account to transfer the remaining funds to. | Required |
| Method | Type | Description |
|---|---|---|
| `getAccountId( | AccountId | The account to delete |
| `getTransferAccountId( | AccountId | The account to transfer the remaining funds to |
| Method | Type | Requirement |
|---|---|---|
| `setAccountId( | AccountId | Required |
| ` | AccountId | Optional |
| ` | String | Optional |
| ` | boolean | Optional |
| ` | Key | Optional |
| ` | HBAR | Optional |
| ` | boolean | Optional |
| ` | long | Optional |
| ` | int | Optional |
| ` | String | Optional |
| ` | Instant | Optional |
| ` | Duration | Optional |
| ` | LedgerId | Optional |
| ` | long | Optional |
| ` | StakingInfo | Optional |
| ` | Map\ | Optional |
| Method | Type | Description | Requirement |
|---|---|---|---|
| `setTopicId( | TopicId | The ID of the topic to delete | Required |
| Method | Type | Requirement |
|---|---|---|
| `setTopicId( | TopicId | Required |
| ` | [Key](/native/keys/generate-key-pair) | Optional |
| ` | [Key](/native/keys/generate-key-pair) | Optional |
| ` | [TopicId](/native/fundamentals/specialized-types#topicid) | Optional |
| ` | long | Optional |
| ` | ByteString | Optional |
| ` | String | Optional |
| ` | LedgerId | Optional |
| ` | Instant | Optional |
| ` | [AccountId](/native/fundamentals/specialized-types#accountid) | Optional |
| ` | Instant | Optional |
| Method | Type | Description | Requirement |
|---|---|---|---|
|
`setTopicId( |
TopicId | The topic ID to submit the message to | Required |
|
`setMessage( |
String | The message in a String format | Optional |
|
`setMessage( |
byte \[ ] | The message in a byte array format | Optional |
|
`setMessage( |
ByteString | The message in a ByteString format | Optional |
| `setChunkSize()` | int | The max size of individual chunk for a given message. Default: 1024 bytes | Optional |
| `setMaxChunks()` | int | The max number of chunks a given message can be split into. Default: 20 | Optional |
| `setCustomFeeLimits()` | List\ |
The maximum custom fees the sender is willing to pay | Optional |
| `addCustomFeeLimit()` | CustomFeeLimit | Adds a custom fee limit | Optional |
| Field | Description |
|---|---|
| **Topic ID** | Update the topic ID |
| **Admin Key** | Set a new admin key that authorizes update topic and delete topic transactions. |
| **Submit Key** | Set a new submit key for a topic that authorizes sending messages to this topic. |
| **Topic Memo** | Set a new short publicly visible memo on the new topic and is stored with the topic. (100 bytes) |
| **Auto Renew Account** | Set a new auto-renew account ID for this topic. Currently, rent is not enforced for topics so auto-renew payments will not be made. |
| **Auto Renew Period** | Set a new auto-renew period for this topic. Currently, rent is not enforced for topics so auto-renew payments will not be made.\ \ **NOTE:** The minimum period of time is approximately 30 days (2592000 seconds) and the maximum period of time is approximately 92 days (8000001 seconds). Any other value outside of this range will return the following error: AUTORENEW\_DURATION\_NOT\_IN\_RANGE. |
| **Fee Schedule Key** | (Optional) A key that controls updates and deletions of topic fees. **Must be set at creation; cannot be added later via `updateTopic`**. |
| **Fee Exempt Keys** | (Optional) A list of keys that, if used to sign a message submission, allow the sender to bypass fees. **Can be updated later via `updateTopic`**. |
| **Custom Fees** | (Optional) A fee structure applied to message submissions for revenue generation. **Can be updated later via `updateTopic`, but must be signed by the Fee Schedule Key**.\ Defines a fixed fee required for each message submission to the topic. This fee can be set in HBAR or HTS fungible tokens and applies when messages are submitted. |
| Method | Type | Requirements |
|---|---|---|
| `setTopicId( | TopicId | Required |
| `setAdminKey( | Key | Optional |
| `setSubmitKey( | Key | Optional |
| `setExpirationTime( | Instant | Optional |
| `setTopicMemo( | String | Optional |
| `setAutoRenewAccountId( | AccountId | Optional |
| `setAutoRenewPeriod( | Duration | Optional |
| `setFeeScheduleKey()` | Key | Optional |
| `setFeeExemptKeys()` | List\ | Optional |
| `setCustomFees()` | List\ | Optional |
| `addCustomFee()` | CustomFixedFee | Optional |
| `addFeeExemptKey()` | Key | Optional |
| `clearAdminKey()` | Optional | |
| `clearSubmitKey()` | Optional | |
| `clearTopicMemo()` | Optional | |
| `clearAutoRenewAccountId()` | Optional |
| Method | Type | Requirements |
|---|---|---|
| `getTopicId()` | TopicId | Required |
| `getAdminKey()` | Key | Optional |
| `getSubmitKey()` | Key | Optional |
| `getTopicMemo()` | String | Optional |
| `getAutoRenewAccountId()` | AccountId | Required |
| `getAutoRenewPeriod()` | Duration | Required |
| `getFeeScheduleKey()` | Key | Optional |
| `getFeeExemptKeys()` | List | Optional |
| `getCustomFees()` | List | Optional |
| **Method** | **Type** | **Description** |
| `Client.forPreviewnet()` | Constructs a Hedera client pre-configured for Previewnet access | |
| `Client.forTestnet()` | Constructs a Hedera client pre-configured for Testnet access | |
| `Client.forMainnet()` | Constructs a Hedera client pre-configured for Mainnet access | |
| `Client.forNetwork( | Map\ | Construct a client given a set of nodes. It is the responsibility of the caller to ensure that all nodes in the map are part of the same Hedera network. Failure to do so will result in undefined behavior. |
| `Client.fromConfig( | String | Configure a client from the given JSON string describing a [ClientConfiguration object](https://github.com/hashgraph/hedera-sdk-js/blob/3240cd5c1ddef1eab1b796d0a4b44f23c884621f/src/client/Client.js#L48-L53) |
| `Client.fromConfig( | Reader | Configure a client from the given JSON reader |
| `Client.fromConfigFile( | File | Configure a client based on a JSON file. |
| `Client.fromConfigFile( | String | Configure a client based on a JSON file at the given path. |
| `Client.forName( | String | Provide the name of the network.\ `mainnet`\ `testnet`\ `previewnet` |
| `Client. | List\ | Define a specific mirror network node(s) ip:port in string format |
| `Client. | List\ | Return the mirror network node(s) ip:port in string format |
| `Client.setTransportSecurity()` | boolean | Set if transport security should be used. If transport security is enabled all connections to nodes will use TLS, and the server's certificate hash will be compared to the hash stored in the node address book for the given network. |
| `Client.setNetworkUpdatePeriod()` | Duration | Client automatically updates the network via a mirror node query at regular intervals. You can set the interval at which the address book is updated. |
| `Client.setNetworkFromAddressBook( | AddressBook | Client can be set from a `NodeAddressBook`. |
| `Client.setLedgerId( | LedgerId | The ID of the network.\ `LedgerId.MAINNET`\ `LedgerId.TESTNET`\ `LedgerId.PREVIEWNET` |
| `Client.getLedgerId()` | LedgerId | Get the ledger ID |
| `Client.setVerifyCertificates()` | boolean | Set if server certificates should be verified against an existing address book. |
| Method | Type | Description |
|---|---|---|
| `Client. | boolean | Whether or not to regenerate the transaction IDs |
| `Client. | boolean | Get the default regenerate transaction ID boolean value |
| `Client. | Hbar | The maximum transaction fee the client is willing to pay |
| `Client. | Hbar | Get the default max transaction fee that is set |
| `Client | Hbar | The maximum query payment the client will pay.Default: 1 hbar |
| `Client | Hbar | Get the default max query payment |
| `Client. | Map\ | Replace all nodes in this Client with a new set of nodes (e.g. for an Address Book update)\ \ |
| `Client. | Map\ | Get the network nodes |
| `Client. | Duration | The period of time a transaction or query request will retry from a "busy" network response |
| `Client. | Duration | Get the period of time a transaction or query request will retry from a "busy" network response |
| `Client. | Duration | The minimum amount of time to wait between retries. When retrying, the delay will start at this time and increase exponentially until it reaches the maxBackoff |
| `Client. | Duration | Get the minimum amount of time to wait between retries |
| `Client. | Duration | The maximum amount of time to wait between retries. Every retry attempt will increase the wait time exponentially until it reaches this time. |
| `Client. | Duration | Get the maximum amount of time to wait between retries |
| `Client. | boolean | Validate checksums |
| `Client. | Duration | Timeout for closing either a single node when setting a new network, or closing the entire network |
| `Client. | int | Set the max number of times a node can return a bad gRPC status before we remove it from the list |
| `Client. | int | Get the max node attempts set |
| `Client. | Duration | The min time to wait before attempting to readmit nodes |
| `Client. | Duration | Get the minimum node readmit time |
| `Client. | Duration | The max time to wait before attempting to readmit nodes |
| `Client. | Duration | Get the max node readmit time |
| **Constructor** | **Type** | **Description** |
| `new AccountId( | long, long, long | Constructs an `AccountId` with 0 for `shardNum` and `realmNum` (e.g., `0.0. |
| **Methods** | **Type** | **Description** |
| `AccountId.fromString( | String | Constructs an `AccountId` from a string formatted as \ |
| `AccountId.fromEvmAddress()` | String | Constructs an `AccountId` from a solidity address in string format |
| `AccountId.fromBytes(bytes)` | byte\[] | Constructs an `AccountId` from bytes |
| `AccountId.toSolidityAddress()` | String | Constructs a solidity address from `AccountID` |
| `AccountId.toString()` | String | Constructs an `AccountID` from string |
| `AccountId.aliasKey` | PublicKey | The alias key of the `AccountID` |
| `AccountId.aliasEvmAddress` | EVM address | The EVM address of the `AccountID` |
| `AccountId.toBytes()` | byte\[] | Constructs an `AccountID` from bytes |
| **Constructor** | **Type** | **Description** |
| `new FileId( | long, long, long | Constructs a `FileId` with 0 for `shardNum` and `realmNum` (e.g., `0.0. |
| **Methods** | **Type** | **Description** |
| `FileId.fromString()` | String | Constructs an `FileId` from a string formatted as\ |
| `FileId.fromSolidityAddress()` | String | Constructs an `FileId` from a solidity address in string format |
| `FileId.ADDRESS_BOOK` | FileId | The public node address book for the current network |
| `FileId.EXCHANGE_RATES` | FileId | The current exchange rate of HBAR to USD |
| `FileId.FEE_SCHEDULE` | FileId | The current fee schedule for the network |
| **Methods** | **Type** | **Description** |
| `ContractId.fromString( | String | Constructs a `ContractId` from a string formatted as\ |
| `ContractId.fromSolidityAddress()[deprecated use ConractId.fromEvmAddress()]` | String | Constructs a `ContractId` from a solidity address in string format \[deprecated use `ContractId.fromEvmAddres()]` |
| `ContractId.toSolidityAddress( | String | Contruct a Solidity address from a Hedera contract ID |
| `ContractId.fromEvmAddress( | long, long, String | Constructs a `ContractId` from evm address |
| **Constructor** | **Type** | **Description** |
| `new ConsensusTopicId( | long, long, long | Constructs a `TopicId` with `0` for `shardNum` and `realmNum` (e.g., `0.0. |
| **Methods** | **Type** | **Description** |
| `fromString( | String | Constructs a topic ID from a String |
| `ConsensusTopicId.toString()` | Constructs a topic ID to String format |
| **Method** | **Type** | **Description** |
| `PrivateKey.fromString( |