UNPKG

@bugbytes/hapi-mirror

Version:
1,066 lines 150 kB
/** * This file was auto-generated by openapi-typescript. * Do not make direct changes to the file. */ export interface paths { "/api/v1/accounts": { /** * List account entities on network * @description Returns a list of all account entity items on the network. */ get: operations["listAccounts"]; }; "/api/v1/accounts/{idOrAliasOrEvmAddress}": { /** * Get account by alias, id, or evm address * @description 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 stake and reward information is not currently available so these fields contain current data. Historical ethereum nonce information is also currently not available and may not be the exact value at a provided timestamp. */ get: operations["getAccountByIdOrAliasOrEvmAddress"]; }; "/api/v1/accounts/{idOrAliasOrEvmAddress}/nfts": { /** * Get nfts for an account info * @description 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: operations["listNftByAccountId"]; }; "/api/v1/accounts/{idOrAliasOrEvmAddress}/rewards": { /** * Get past staking reward payouts for an account * @description Returns information for all past staking reward payouts for an account. */ get: operations["listStakingRewardsByAccountId"]; }; "/api/v1/accounts/{idOrAliasOrEvmAddress}/tokens": { /** * Get token relationships info for an account * @description Returns information for all token relationships for an account. */ get: operations["listTokenRelationshipByAccountId"]; }; "/api/v1/accounts/{idOrAliasOrEvmAddress}/allowances/crypto": { /** * Get crypto allowances for an account info * @description Returns information for all crypto allowances for an account. */ get: operations["listCryptoAllowancesByAccountId"]; }; "/api/v1/accounts/{idOrAliasOrEvmAddress}/allowances/tokens": { /** * Get fungible token allowances for an account * @description 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: operations["listTokenAllowancesByAccountId"]; }; "/api/v1/balances": { /** * List account balances * @description Returns a timestamped list of account balances on the network, limited to at most 50 token balances per account as outlined in HIP-367. This includes both HBAR and token balances for accounts. */ get: operations["listAccountBalances"]; }; "/api/v1/blocks": { /** * List blocks * @description Returns a list of blocks on the network. */ get: operations["listBlocks"]; }; "/api/v1/blocks/{hashOrNumber}": { /** * Get block by hash or number * @description Returns the block information by given hash or number. */ get: operations["getByHashOrNumber"]; }; "/api/v1/contracts/call": { /** * Invoke a smart contract * @description * 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 `estimate` field is set to true gas estimation is executed. * * **The table below defines the restrictions and support for the endpoint** * * | Estimate | Operation Type | Mirror Node Version | * | ------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------| * | false | static contract state reads for non precompile functions | 0.78+ | * | | static contract state reads for precompile functions except allowance/isApprovedForAll | 0.78+ | * | | static contract state reads for precompile functions with allowance | 0.79+ | * | | static contract state reads for precompile functions with isApprovedForAll | 0.81+ | * | | non-static contract state reads for non precompile functions | 0.83+ | * | | non-static contract state reads for precompile functions | 0.83+ | * | true | non-static contract state reads and modifications for non precompile functions except lazy account creation | 0.83+ | * | | non-static contract state reads and modifications for non precompile functions with lazy account creation | Not supported | * | | non-static contract state reads and modifications for precompile functions | Not supported | * * The operations types which are not currently supported should return 501 error status. */ post: operations["contractsCall"]; }; "/api/v1/contracts": { /** * List contract entities on network * @description Returns a list of all contract entity items on the network. */ get: operations["listContracts"]; }; "/api/v1/contracts/{contractIdOrAddress}": { /** * Get contract by id * @description Return the contract information given an id */ get: operations["getContractById"]; }; "/api/v1/contracts/{contractIdOrAddress}/results": { /** * List contract results from a contract on the network * @description Returns a list of all ContractResults for a contract's function executions. */ get: operations["listContractResults"]; }; "/api/v1/contracts/{contractIdOrAddress}/state": { /** * The contract state from a contract on the network * @description Returns a list of all contract's slots. If no timestamp is provided, returns the current state. */ get: operations["listContractState"]; }; "/api/v1/contracts/{contractIdOrAddress}/results/{timestamp}": { /** * Get the contract result from a contract on the network executed at a given timestamp * @description Returns a single ContractResult for a contract's function executions at a specific timestamp. */ get: operations["getContractResultByIdAndTimestamp"]; }; "/api/v1/contracts/results": { /** * List contract results from all contracts on the network * @description Returns a list of all ContractResults for all contract's function executions. */ get: operations["listAllContractsResults"]; }; "/api/v1/contracts/results/{transactionIdOrHash}": { /** * Get the contract result from a contract on the network for a given transactionId or ethereum transaction hash * @description Returns a single ContractResult for a contract's function executions for a given transactionId or ethereum transaction hash. */ get: operations["getContractResultByTransactionIdOrHash"]; }; "/api/v1/contracts/results/{transactionIdOrHash}/actions": { /** * Get the contract actions from a contract on the network for a given transactionId or ethereum transaction hash * @description Returns a list of ContractActions for a contract's function executions for a given transactionId or ethereum transaction hash. */ get: operations["getContractActionsByTransactionIdOrHash"]; }; "/api/v1/contracts/{contractIdOrAddress}/results/logs": { /** * List contract logs from a contract on the network * @description 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. */ get: operations["listContractLogs"]; }; "/api/v1/contracts/results/logs": { /** * List contracts logs across many contracts on the network * @description 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. */ get: operations["listContractsLogs"]; }; "/api/v1/network/exchangerate": { /** * Get the network exchange rate to estimate costs * @description Returns the network's exchange rate, current and next. */ get: operations["getNetworkExchangeRate"]; }; "/api/v1/network/fees": { /** * Get the network fees * @description 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: operations["getNetworkFees"]; }; "/api/v1/network/nodes": { /** * Get the network address book nodes * @description Returns the network's list of nodes used in consensus */ get: operations["getNetworkNodes"]; }; "/api/v1/network/stake": { /** * Get network stake information * @description Returns the network's current stake information. */ get: operations["getNetworkStake"]; }; "/api/v1/network/supply": { /** * Get the network supply * @description Returns the network's released supply of hbars */ get: operations["getNetworkSupply"]; }; "/api/v1/schedules": { /** * List schedules entities * @description Lists schedules on the network that govern the execution logic of scheduled transactions. This includes executed and non executed schedules. */ get: operations["listSchedules"]; }; "/api/v1/schedules/{scheduleId}": { /** * Get schedule by id * @description Returns schedule information based on the given schedule id */ get: operations["getScheduleById"]; }; "/api/v1/transactions": { /** * List transactions * @description Lists transactions on the network. This includes successful and unsuccessful transactions. */ get: operations["listTransactions"]; }; "/api/v1/transactions/{transactionId}": { /** * Get transaction by id * @description Returns transaction information based on the given transaction id */ get: operations["getTransactionById"]; }; "/api/v1/transactions/{transactionId}/stateproof": { /** * Get stateproof information * @description Returns the contents of the address book file, signature files, and record file that can be used to validate the transaction occurred on the Hedera network given transaction id. */ get: operations["getStateproofInfo"]; }; "/api/v1/topics/{topicId}/messages": { /** * List topic messages by id * @description Returns the list of topic messages for the given topic id. */ get: operations["listTopicMessagesById"]; }; "/api/v1/topics/{topicId}/messages/{sequenceNumber}": { /** * Get topic message by id and sequence number * @description Returns a single topic message the given topic id and sequence number. */ get: operations["getTopicMessageByIdAndSequenceNumber"]; }; "/api/v1/topics/messages/{timestamp}": { /** * Get topic message by consensusTimestamp * @description Returns a topic message the given the consensusTimestamp. */ get: operations["getTopicMessagesByConsensusTimestamp"]; }; "/api/v1/tokens": { /** * List tokens * @description Returns a list of tokens on the network. */ get: operations["listTokens"]; }; "/api/v1/tokens/{tokenId}": { /** * Get token by id * @description Returns token entity information given the id */ get: operations["getTokenById"]; }; "/api/v1/tokens/{tokenId}/balances": { /** * List token balances * @description Returns a list of token balances given the id. This represents the Token supply distribution across the network */ get: operations["listTokenBalancesById"]; }; "/api/v1/tokens/{tokenId}/nfts": { /** * List nfts * @description Returns a list of non-fungible tokens */ get: operations["listNfts"]; }; "/api/v1/tokens/{tokenId}/nfts/{serialNumber}": { /** * Get nft info * @description Returns information for a non-fungible token */ get: operations["listNftBySerialnumber"]; }; "/api/v1/tokens/{tokenId}/nfts/{serialNumber}/transactions": { /** * Get an nfts transction history * @description Returns a list of transactions for a given non-fungible token */ get: operations["listNftTransactions"]; }; } export type webhooks = Record<string, never>; export interface components { schemas: { /** @description Account alias in the format of 'shard.realm.alias', 'realm.alias', or 'alias'. 'alias' is the RFC4648 no-padding base32 encoded string of the account's alias. */ AccountAlias: string; AccountsResponse: { accounts: components["schemas"]["Accounts"]; links: components["schemas"]["Links"]; }; Allowance: { /** * Format: int64 * @description The granted amount of the spender's allowance. * @example 100 */ amount_granted?: number; owner?: components["schemas"]["EntityId"]; spender?: components["schemas"]["EntityId"]; timestamp?: components["schemas"]["TimestampRange"]; }; BalancesResponse: { timestamp?: components["schemas"]["TimestampNullable"]; balances?: components["schemas"]["AccountBalance"][]; links?: components["schemas"]["Links"]; }; ContractResponse: components["schemas"]["Contract"] & ({ /** * Format: binary * @description The contract bytecode in hex during deployment * @example 0x01021a1fdc9b */ bytecode?: string | null; /** * Format: binary * @description The contract bytecode in hex after deployment * @example 0x0302fa1ad39c */ runtime_bytecode?: string | null; }); ContractsResponse: { contracts?: components["schemas"]["Contracts"]; links?: components["schemas"]["Links"]; }; ContractResultsResponse: { results?: components["schemas"]["ContractResults"]; links?: components["schemas"]["Links"]; }; ContractStateResponse: { state?: components["schemas"]["ContractState"][]; links?: components["schemas"]["Links"]; }; ContractActionsResponse: { actions?: components["schemas"]["ContractActions"]; links?: components["schemas"]["Links"]; }; ContractLogsResponse: { logs?: components["schemas"]["ContractLogs"]; }; CryptoAllowancesResponse: { allowances?: components["schemas"]["CryptoAllowances"]; links?: components["schemas"]["Links"]; }; NetworkExchangeRateSetResponse: { current_rate?: components["schemas"]["ExchangeRate"]; next_rate?: components["schemas"]["ExchangeRate"]; timestamp?: components["schemas"]["Timestamp"]; }; NetworkFeesResponse: { fees?: components["schemas"]["NetworkFees"]; timestamp?: components["schemas"]["Timestamp"]; }; NetworkNodesResponse: { nodes: components["schemas"]["NetworkNodes"]; links: components["schemas"]["Links"]; }; NetworkSupplyResponse: { /** * @description The network's released supply of hbars in tinybars * @example 3999999999999999949 */ released_supply?: string; timestamp?: components["schemas"]["Timestamp"]; /** * @description The network's total supply of hbars in tinybars * @example 5000000000000000000 */ total_supply?: string; }; SchedulesResponse: { schedules?: components["schemas"]["Schedules"]; links?: components["schemas"]["Links"]; }; BlocksResponse: { blocks?: components["schemas"]["Blocks"]; links?: components["schemas"]["Links"]; }; StakingRewardsResponse: { rewards?: components["schemas"]["StakingReward"][]; links?: components["schemas"]["Links"]; }; /** * @example { * "record_file": "YzNkOTg3Yzg3NDI5NGViOTViMmRmOWZkMzZiMDY1NjYyMzMxNTc2OWFmMmVmMzQ0YzM1ODY4NzgwMTAyYjVjMA==", * "address_books": [ * "MjljY2IxNGNjNWY2NWM1MmZlYjc0MjkyYjAxZDUyZmRjZjJkZTY0NWQzOTRiNTM3MDQ2ODBkYjZkMTMyZWM2Yw==" * ], * "signature_files": { * "0.0.3": "MWFmYzZlNWVjNGJiZTg0ZWJjNTVkMGViNDViMjE2Mzg2ZTQ2NjUzZTYyYmM1NjE2YThmZGJjNzQ1ZWIyMTQxNQ==", * "0.0.4": "ZDI4ZDIwMGJiYTdkNDhmNTA3ZTE0MGZhNjIyOGFiYTdmMjlmZjhiMmEzZjJhOGVlYjg1NzQyZGMwNTNjZWM3MQ==", * "0.0.5": "MWY0YmU5OGE3NWE4N2NkNjQ5ZTNlMWE1ODI1OTI3NTgwNWM1Y2RmNjNmYjA0YjMzMTdlZmI1MTEwNzQ2NDVjNw==", * "0.0.6": "NzNiZTVmMTZkNmY4NTQ4MjdiN2M4MTEzZmFlY2I1YzIwNGI5ZjFkNjhiMzdkMzczNTg4OTRkOWFiZmM5N2U4Mw==", * "0.0.7": "NDJiZTVmMTZkNmY4NTQ4MjdiN2M4MTEzZmFlY2I1YzIwNGI5ZjFkNjhiMzdkMzczNTg4OTRkOWFiZmM5N2U4Mw==" * } * } */ StateProofResponseFull: { /** @description The network address book valid at the time of the transaction */ address_books: string[]; /** * Format: byte * @description The content of the record file the transaction belongs to */ record_file: string; /** @description The nodes' signature files for the record file */ signature_files: { [key: string]: string; }; }; /** * @example { * "address_books": [ * "MjljY2IxNGNjNWY2NWM1MmZlYjc0MjkyYjAxZDUyZmRjZjJkZTY0NWQzOTRiNTM3MDQ2ODBkYjZkMTMyZWM2Yw==" * ], * "record_file": { * "head": "AAAABQAAAAAAAAAbAAAAAAAAAAE==", * "start_running_hash_object": "9CLag6JRdB4AAAABWP+BGwAAADCTEm5j2O9qy33fqKR/F0sKXYqPPQCt92kA2koMvkg4h6uhnEX/H0iXWL4CxWCK+C8=", * "end_running_hash_object": "9CLag6JRdB4AAAABWP+BGwAAADAkK6BKPFKbOX46Kul0OiAYR5x52X0cJLgPvmOjupycWgXRyItITx7HrfSjH5LpU6Q=", * "hashes_before": [ * "RxKzucDUGgqBgR+CXXfAKgYuE/xhIaBlo+hmMKyxrm8nmSiaG3a9hlLGHh6+yXFm" * ], * "hashes_after": [ * "TOJuZz3EUX1RNdRJBfz7n+V9cYyEm//ER9h3s/y1d8nzs0VqYltJFE0dPangRC6c", * "RiRHvjPQPqUXNlvDJ6lPiv40ZOPVV3VcWRH8GOKFf6Xv9jK0vUjR2qGfjI/IRZRy" * ], * "record_stream_object": "43CSm6VCnYsAAAABAAAA2gpgCBYqJAoQCLDqARCA3AsaBgjQ6f2WBhIQCLDqARCm5QsaBgjghf6WBjiR6EhCMDNd1b7xmTuNNiLcn2bdlAI=", * "block_number": "AAECoA==" * }, * "signature_files": { * "0.0.3": "MWFmYzZlNWVjNGJiZTg0ZWJjNTVkMGViNDViMjE2Mzg2ZTQ2NjUzZTYyYmM1NjE2YThmZGJjNzQ1ZWIyMTQxNQ==", * "0.0.4": "ZDI4ZDIwMGJiYTdkNDhmNTA3ZTE0MGZhNjIyOGFiYTdmMjlmZjhiMmEzZjJhOGVlYjg1NzQyZGMwNTNjZWM3MQ==", * "0.0.5": "MWY0YmU5OGE3NWE4N2NkNjQ5ZTNlMWE1ODI1OTI3NTgwNWM1Y2RmNjNmYjA0YjMzMTdlZmI1MTEwNzQ2NDVjNw==", * "0.0.6": "NzNiZTVmMTZkNmY4NTQ4MjdiN2M4MTEzZmFlY2I1YzIwNGI5ZjFkNjhiMzdkMzczNTg4OTRkOWFiZmM5N2U4Mw==", * "0.0.7": "NDJiZTVmMTZkNmY4NTQ4MjdiN2M4MTEzZmFlY2I1YzIwNGI5ZjFkNjhiMzdkMzczNTg4OTRkOWFiZmM5N2U4Mw==" * }, * "version": 6 * } */ StateProofResponseCompact: { /** @description The network address book valid at the time of the transaction */ address_books: string[]; /** @description The record file the transaction belongs to, in compact format */ record_file: { /** * Format: byte * @description The record file head */ head: string; /** * Format: byte * @description The start running hash object */ start_running_hash_object: string; /** * Format: byte * @description THe end running hash object */ end_running_hash_object: string; /** @description The hashes of the transactions before the transaction in query, in consensus timestamp ascending order */ hashes_before: string[]; /** @description The hashes of the transactions after the transaction in query, in consensus timestamp ascending order */ hashes_after: string[]; /** * Format: byte * @description The record stream object of the transaction in query */ record_stream_object: string; /** * Format: byte * @description The block number, in base64 encoding. Only present if version is 6 */ block_number: string | null; }; /** @description The nodes' signature files for the record file */ signature_files: { [key: string]: string; }; /** * Format: int32 * @description The record file format version, either 5 or 6 */ version: number; }; TokenAllowancesResponse: { allowances?: components["schemas"]["TokenAllowances"]; links?: components["schemas"]["Links"]; }; TokenBalancesResponse: { timestamp?: components["schemas"]["TimestampNullable"]; balances?: components["schemas"]["TokenDistribution"]; links?: components["schemas"]["Links"]; }; TokenRelationshipResponse: { tokens?: components["schemas"]["TokenRelationship"][]; links?: components["schemas"]["Links"]; }; TokensResponse: { tokens?: components["schemas"]["Tokens"]; links?: components["schemas"]["Links"]; }; TopicMessagesResponse: { messages?: components["schemas"]["TopicMessages"]; links?: components["schemas"]["Links"]; }; TransactionByIdResponse: { transactions?: components["schemas"]["TransactionDetails"]; }; TransactionsResponse: { transactions?: components["schemas"]["Transactions"]; links?: components["schemas"]["Links"]; }; /** * @example { * "account": "0.0.8", * "alias": "HIQQEXWKW53RKN4W6XXC4Q232SYNZ3SZANVZZSUME5B5PRGXL663UAQA", * "auto_renew_period": null, * "balance": { * "timestamp": "0.000002345", * "balance": 80, * "tokens": [ * { * "token_id": "0.0.200001", * "balance": 8 * } * ] * }, * "created_timestamp": "1562591528.000123456", * "decline_reward": false, * "deleted": false, * "ethereum_nonce": 10, * "evm_address": "0xac384c53f03855fa1b3616052f8ba32c6c2a2fec", * "expiry_timestamp": null, * "key": null, * "max_automatic_token_associations": 200, * "memo": "entity memo", * "pending_reward": 100, * "receiver_sig_required": false, * "staked_account_id": null, * "staked_node_id": 3, * "stake_period_start": "172800000.000000000" * } */ AccountInfo: { account: components["schemas"]["EntityId"]; alias: components["schemas"]["Alias"]; /** Format: int64 */ auto_renew_period: number | null; balance: components["schemas"]["Balance"]; created_timestamp: components["schemas"]["TimestampNullable"]; /** @description Whether the account declines receiving a staking reward */ decline_reward: boolean; deleted: boolean | null; /** Format: int64 */ ethereum_nonce: number | null; evm_address: components["schemas"]["EvmAddressNullable"]; expiry_timestamp: components["schemas"]["TimestampNullable"]; key: components["schemas"]["Key"]; /** Format: int32 */ max_automatic_token_associations: number | null; memo: string | null; /** * Format: int64 * @description The pending reward in tinybars the account will receive in the next reward payout. Note the value is updated * at the end of each staking period and there may be delay to reflect the changes in the past staking period. */ pending_reward?: number; receiver_sig_required: boolean | null; staked_account_id: components["schemas"]["EntityId"]; /** * Format: int64 * @description The id of the node to which this account is staking */ staked_node_id: number | null; stake_period_start: components["schemas"]["TimestampNullable"]; }; Accounts: components["schemas"]["AccountInfo"][]; /** * @example { * "account": "0.15.10", * "balance": 80, * "tokens": [ * { * "token_id": "0.0.200001", * "balance": 8 * } * ] * } */ AccountBalance: { account: components["schemas"]["EntityId"]; /** Format: int64 */ balance: number; tokens: components["schemas"]["TokenBalance"][]; }; AccountBalanceTransactions: components["schemas"]["AccountInfo"] & { transactions: components["schemas"]["Transactions"]; links: components["schemas"]["Links"]; }; /** * @description RFC4648 no-padding base32 encoded account alias * @example HIQQEXWKW53RKN4W6XXC4Q232SYNZ3SZANVZZSUME5B5PRGXL663UAQA */ Alias: string | null; /** * @example { * "timestamp": "0.000002345", * "balance": 80, * "tokens": [ * { * "token_id": "0.0.200001", * "balance": 8 * } * ] * } */ Balance: ({ timestamp: components["schemas"]["TimestampNullable"]; /** Format: int64 */ balance: number | null; tokens: { token_id?: components["schemas"]["EntityId"]; /** Format: int64 */ balance?: number; }[]; }) | null; /** * Format: binary * @example 0x549358c4c2e573e02410ef7b5a5ffa5f36dd7398 */ Bloom: string | null; ChunkInfo: { initial_transaction_id?: components["schemas"]["TransactionId"]; /** * Format: int32 * @example 1 */ number?: number; /** * Format: int32 * @example 2 */ total?: number; } | null; Contract: { admin_key?: components["schemas"]["Key"]; auto_renew_account?: components["schemas"]["EntityId"]; /** * Format: int64 * @example 7776000 */ auto_renew_period?: number | null; contract_id?: components["schemas"]["EntityId"]; created_timestamp?: components["schemas"]["TimestampNullable"]; /** @example false */ deleted?: boolean; evm_address?: components["schemas"]["EvmAddress"]; expiration_timestamp?: components["schemas"]["TimestampNullable"]; file_id?: components["schemas"]["EntityId"]; /** Format: int32 */ max_automatic_token_associations?: number | null; /** @example contract memo */ memo?: string; obtainer_id?: components["schemas"]["EntityId"]; permanent_removal?: boolean | null; proxy_account_id?: components["schemas"]["EntityId"]; timestamp?: components["schemas"]["TimestampRange"]; }; Contracts: components["schemas"]["Contract"][]; ContractLog: components["schemas"]["ContractResultLog"] & ({ /** * @description The hex encoded block (record file chain) hash * @example 0x553f9311833391c0a3b2f9ed64540a89f2190a511986cd94889f1c0cf7fa63e898b1c6730f14a61755d1fb4ca05fb073 */ block_hash?: string; /** * Format: int64 * @description The block number. Since Hedera does not have the native concept of blocks, this counts the number of record files seen since the mirror node's configured start date. This can vary between mirror nodes that use different start dates. * @example 10 */ block_number?: number; root_contract_id?: components["schemas"]["EntityId"]; timestamp?: components["schemas"]["Timestamp"]; /** * @description A hex encoded transaction hash * @example 0x397022d1e5baeb89d0ab66e6bf602640610e6fb7e55d78638db861e2c6339aa9 */ transaction_hash?: string; /** * Format: int32 * @description The position of the transaction in the block * @example 1 */ transaction_index?: number | null; }); /** * @description A list of hex encoded topics associated with this log event * @example [ * "0xf4757a49b326036464bec6fe419a4ae38c8a02ce3e68bf0809674f6aab8ad300" * ] */ ContractLogTopics: string[]; ContractAction: { /** * Format: int32 * @description The nesting depth of the call * @example 1 */ call_depth?: number; /** * @description The type of the call operation * @example CALL * @enum {string} */ call_operation_type?: "CALL" | "CALLCODE" | "CREATE" | "CREATE2" | "DELEGATECALL" | "STATICCALL" | "UNKNOWN"; /** * @description The type of the call * @example CALL * @enum {string} */ call_type?: "NO_ACTION" | "CALL" | "CREATE" | "PRECOMPILE" | "SYSTEM"; caller?: components["schemas"]["EntityId"]; /** * @description The entity type of the caller * @example ACCOUNT * @enum {string} */ caller_type?: "ACCOUNT" | "CONTRACT"; /** * @description The EVM address of the caller * @example 0x0000000000000000000000000000000000000065 */ from?: string; /** * Format: int64 * @description Gas cost in tinybars * @example 50000 */ gas?: number; /** * Format: int64 * @description Gas used in tinybars * @example 50000 */ gas_used?: number; /** * Format: int32 * @description The position of the action within the ordered list of actions * @example 0 */ index?: number; /** * @description The hex encoded input data * @example 0x123456 */ input?: string | null; recipient?: components["schemas"]["EntityId"]; /** * @description The entity type of the recipient * @example ACCOUNT * @enum {string|null} */ recipient_type?: "ACCOUNT" | "CONTRACT" | null; /** * @description The hex encoded result data * @example 0x123456 */ result_data?: string | null; /** * @description The type of the result data * @example OUTPUT * @enum {string} */ result_data_type?: "OUTPUT" | "REVERT_REASON" | "ERROR"; timestamp?: components["schemas"]["Timestamp"]; to?: components["schemas"]["EvmAddressNullable"]; /** * Format: int64 * @description The value of the transaction in tinybars * @example 50000 */ value?: number; }; ContractResult: { /** * @description The hex encoded evm address of contract * @example 0x25fe26adc577cc89172e6156c9e24f7b9751b762 */ address?: string; /** * Format: int64 * @description The number of tinybars sent to the function * @example 10 */ amount?: number | null; bloom?: components["schemas"]["Bloom"]; /** * @description The hex encoded result returned by the function * @example 0x2b048531b38d2882e86044bc972e940ee0a01938 */ call_result?: string | null; contract_id?: components["schemas"]["EntityId"]; /** @description The list of smart contracts that were created by the function call. */ created_contract_ids?: components["schemas"]["EntityId"][] | null; /** * @description The message when an error occurs during smart contract execution * @example Out of gas */ error_message?: string | null; from?: components["schemas"]["EvmAddress"]; /** * @description The hex encoded parameters passed to the function * @example 0xbb9f02dc6f0e3289f57a1f33b71c73aa8548ab8b */ function_parameters?: string | null; /** * Format: int64 * @description The maximum units of gas allowed for contract execution * @example 100000 */ gas_limit?: number; /** * Format: int64 * @description The units of gas used to execute contract * @example 1000 */ gas_used?: number | null; /** * @description A hex encoded 32 byte hash and it is only populated for Ethereum transaction case * @example 0xfebbaa29c513d124a6377246ea3506ad917d740c21a88f61a1c55ba338fc2bb1 */ hash?: string; /** * @description The result of the transaction * @example SUCCESS */ result?: string; /** * @description The status of the transaction, 0x1 for a SUCCESS transaction and 0x0 for all else * @example 1 */ status?: string; timestamp?: components["schemas"]["Timestamp"]; to?: components["schemas"]["EvmAddressNullable"]; }; ContractResultDetails: components["schemas"]["ContractResult"] & ({ /** * @description The hex encoded access_list of the wrapped ethereum transaction * @example 0xabcd */ access_list?: string | null; /** * @description The hex encoded evm address of contract * @example 0x25fe26adc577cc89172e6156c9e24f7b9751b762 */ address?: string; /** * Format: int64 * @description The total amount of gas used in the block * @example 2000 */ block_gas_used?: number | null; /** * @description The hex encoded block (record file chain) hash * @example 0x6ceecd8bb224da491 */ block_hash?: string | null; /** * Format: int64 * @description The block number. Since Hedera does not have the native concept of blocks, this counts the number of record files seen since the mirror node's configured start date. This can vary between mirror nodes that use different start dates. * @example 10 */ block_number?: number | null; /** * @description The hex encoded chain_id of the wrapped ethereum transaction * @example 0x0127 */ chain_id?: string | null; /** * @description The hex encoded initcode of a failed contract create transaction * @example 0x856739 */ failed_initcode?: string; /** * @description The hex encoded gas_price of the wrapped ethereum transaction * @example 0x4a817c800 */ gas_price?: string | null; /** * @description The hex encoded transaction hash * @example 0x3531396130303866616264653464 */ hash?: string; logs?: components["schemas"]["ContractResultLogs"]; /** * @description The hex encoded max_fee_per_gas of the wrapped ethereum transaction * @example 0x5 */ max_fee_per_gas?: string | null; /** * @description The hex encoded max_priority_fee_per_gas of the wrapped ethereum transaction * @example 0x100 */ max_priority_fee_per_gas?: string | null; /** * Format: int64 * @description The nonce of the wrapped ethereum transaction * @example 1 */ nonce?: number | null; /** * @description The hex encoded signature_r of the wrapped ethereum transaction * @example 0xd693b532a80fed6392b428604171fb32fdbf953728a3a7ecc7d4062b1652c043 */ r?: string | null; /** * @description The hex encoded signature_s of the wrapped ethereum transaction * @example 0x24e9c602ac800b983b035700a14b23f78a253ab762deab5dc27e3555a750b355 */ s?: string | null; state_changes?: components["schemas"]["ContractResultStateChanges"]; /** * Format: int64 * @description The position of the transaction in the block * @example 1 */ transaction_index?: number | null; /** * @description The type of the wrapped ethereum transaction, 0 (Pre-Eip1559) or 2