--- components: responses: {} schemas: Address: additionalProperties: false description: Address properties: ens_domain_name: description: ENS domain name associated with the address nullable: true type: string x-struct: x-validate: hash: $ref: '#/components/schemas/AddressHash' implementations: description: Implementations linked with the contract items: $ref: '#/components/schemas/Implementation' type: array x-struct: x-validate: is_contract: description: Has address contract code? nullable: true type: boolean x-struct: x-validate: is_scam: description: Has address scam badge? nullable: false type: boolean x-struct: x-validate: is_verified: description: Has address associated source code? nullable: true type: boolean x-struct: x-validate: metadata: allOf: - $ref: '#/components/schemas/Metadata' nullable: true x-struct: x-validate: name: description: Name associated with the address nullable: true type: string x-struct: x-validate: private_tags: description: Private tags associated with the address items: $ref: '#/components/schemas/Tag' type: array x-struct: x-validate: proxy_type: $ref: '#/components/schemas/ProxyType' public_tags: description: Public tags associated with the address items: $ref: '#/components/schemas/Tag' type: array x-struct: x-validate: reputation: description: Reputation of the address enum: - ok - scam nullable: false type: string x-struct: x-validate: watchlist_names: description: Watchlist name associated with the address items: $ref: '#/components/schemas/WatchlistName' type: array x-struct: x-validate: required: - hash - is_contract - name - is_scam - reputation - proxy_type - implementations - is_verified - ens_domain_name - metadata title: Address type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Address x-validate: NFTCollection: additionalProperties: false properties: amount: $ref: '#/components/schemas/IntegerStringNullable' token: $ref: '#/components/schemas/Token' token_instances: items: $ref: '#/components/schemas/TokenInstanceInList' nullable: false type: array x-struct: x-validate: required: - token - amount - token_instances title: NFTCollection type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.NFTCollection x-validate: ForbiddenResponse: additionalProperties: false description: Response returned when the user is not authorized to access the resource properties: message: description: Error message indicating the user is not authorized to access the resource example: Restricted access type: string x-struct: x-validate: title: ForbiddenResponse type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.ErrorResponses.ForbiddenResponse x-validate: Log: additionalProperties: false properties: address: $ref: '#/components/schemas/Address' block_hash: $ref: '#/components/schemas/FullHash' block_number: nullable: false type: integer x-struct: x-validate: data: $ref: '#/components/schemas/HexString' decoded: allOf: - $ref: '#/components/schemas/DecodedLogInput' nullable: true x-struct: x-validate: index: nullable: false type: integer x-struct: x-validate: smart_contract: allOf: - $ref: '#/components/schemas/Address' nullable: true x-struct: x-validate: topics: items: $ref: '#/components/schemas/HexStringNullable' nullable: false type: array x-struct: x-validate: transaction_hash: $ref: '#/components/schemas/FullHash' required: - transaction_hash - address - topics - data - index - decoded - smart_contract - block_hash - block_number title: Log type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Log x-validate: WatchlistName: additionalProperties: false description: Watchlist name struct properties: display_name: nullable: false type: string x-struct: x-validate: label: nullable: false type: string x-struct: x-validate: required: - display_name - label title: WatchlistName type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.WatchlistName x-validate: EmptyString: maxLength: 0 minLength: 0 title: EmptyString type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.EmptyString x-validate: Type: enum: - ERC-20 - ERC-721 - ERC-1155 - ERC-404 title: Type type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Token.Type x-validate: NullString: pattern: ^null$ title: NullString type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.NullString x-validate: Metadata: additionalProperties: false description: Metadata struct properties: tags: description: Metadata tags linked with the address items: $ref: '#/components/schemas/MetadataTag' type: array x-struct: x-validate: required: - tags title: Metadata type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Proxy.Metadata x-validate: TotalERC721: additionalProperties: false properties: token_id: $ref: '#/components/schemas/IntegerStringNullable' token_instance: allOf: - $ref: '#/components/schemas/TokenInstance' nullable: true x-struct: x-validate: required: - token_id - token_instance title: TotalERC721 type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.TokenTransfer.TotalERC721 x-validate: TotalERC1155: additionalProperties: false properties: decimals: $ref: '#/components/schemas/IntegerStringNullable' token_id: $ref: '#/components/schemas/IntegerStringNullable' token_instance: allOf: - $ref: '#/components/schemas/TokenInstance' nullable: true x-struct: x-validate: value: $ref: '#/components/schemas/IntegerStringNullable' required: - token_id - value - decimals - token_instance title: TotalERC1155 type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.TokenTransfer.TotalERC1155 x-validate: SummaryJustRequestBody: additionalProperties: false properties: chain_id: nullable: true type: integer x-struct: x-validate: data: additionalProperties: false properties: decoded_input: nullable: true type: object x-struct: x-validate: from: allOf: - $ref: '#/components/schemas/Address' nullable: true x-struct: x-validate: hash: type: string x-struct: x-validate: internal_transactions: items: allOf: - $ref: '#/components/schemas/InternalTransaction' nullable: true x-struct: x-validate: type: array x-struct: x-validate: method: nullable: true type: string x-struct: x-validate: raw_input: type: string x-struct: x-validate: status: type: string x-struct: x-validate: to: allOf: - $ref: '#/components/schemas/Address' nullable: true x-struct: x-validate: token_transfers: items: allOf: - $ref: '#/components/schemas/TokenTransfer' nullable: true x-struct: x-validate: type: array x-struct: x-validate: transaction_types: items: type: string x-struct: x-validate: type: array x-struct: x-validate: type: nullable: true type: integer x-struct: x-validate: value: type: string x-struct: x-validate: required: - status - type - value - hash - from - to - method - token_transfers - internal_transactions - transaction_types - decoded_input - raw_input type: object x-struct: x-validate: logs_data: additionalProperties: false properties: items: items: allOf: - $ref: '#/components/schemas/Log' nullable: true x-struct: x-validate: type: array x-struct: x-validate: required: - items type: object x-struct: x-validate: required: - data title: SummaryJustRequestBody type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Transaction.SummaryJustRequestBody x-validate: HotContract: additionalProperties: false properties: balance: $ref: '#/components/schemas/IntegerStringNullable' contract_address: $ref: '#/components/schemas/Address' total_gas_used: minimum: 1 type: integer x-struct: x-validate: transactions_count: minimum: 1 type: integer x-struct: x-validate: required: - contract_address - transactions_count - total_gas_used - balance title: HotContract type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Stats.HotContract x-validate: Withdrawal: additionalProperties: false properties: amount: $ref: '#/components/schemas/IntegerString' block_number: nullable: false type: integer x-struct: x-validate: index: nullable: false type: integer x-struct: x-validate: receiver: $ref: '#/components/schemas/Address' timestamp: $ref: '#/components/schemas/Timestamp' validator_index: nullable: false type: integer x-struct: x-validate: required: - index - validator_index - amount title: Withdrawal type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Withdrawal x-validate: AddressTabsCounters: additionalProperties: false description: Counters for address tabs properties: beacon_deposits_count: nullable: false type: integer x-struct: x-validate: celo_election_rewards_count: nullable: false type: integer x-struct: x-validate: internal_transactions_count: nullable: false type: integer x-struct: x-validate: logs_count: nullable: false type: integer x-struct: x-validate: token_balances_count: nullable: false type: integer x-struct: x-validate: token_transfers_count: nullable: false type: integer x-struct: x-validate: transactions_count: nullable: false type: integer x-struct: x-validate: validations_count: nullable: false type: integer x-struct: x-validate: withdrawals_count: nullable: false type: integer x-struct: x-validate: title: AddressTabsCounters type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Address.TabsCounters x-validate: TokenHolderResponse: additionalProperties: false description: Token holder response example: address: ens_domain_name: hash: '0xF977814e90dA44bFA03b6295A0616a897441aceC' implementations: [] is_contract: false is_scam: false is_verified: false metadata: tags: - meta: main_entity: Binance tooltipUrl: https://www.binance.com/ name: 'Binance: Hot Wallet 20' ordinal: 10 slug: binance-hot-wallet-20 tagType: name - meta: tooltipUrl: https://www.binance.com name: Binance 8 ordinal: 10 slug: binance-8 tagType: name - meta: {} name: HOT WALLET ordinal: 0 slug: hot-wallet tagType: generic - meta: {} name: Exchange ordinal: 0 slug: exchange tagType: generic - meta: {} name: Binance ordinal: 0 slug: binance tagType: protocol name: private_tags: [] proxy_type: public_tags: [] reputation: ok watchlist_names: [] token_id: value: '19474530513868000' properties: address: additionalProperties: false description: Address properties: ens_domain_name: description: ENS domain name associated with the address nullable: true type: string x-struct: x-validate: hash: $ref: '#/components/schemas/AddressHash' implementations: description: Implementations linked with the contract items: $ref: '#/components/schemas/Implementation' type: array x-struct: x-validate: is_contract: description: Has address contract code? nullable: true type: boolean x-struct: x-validate: is_scam: description: Has address scam badge? nullable: false type: boolean x-struct: x-validate: is_verified: description: Has address associated source code? nullable: true type: boolean x-struct: x-validate: metadata: allOf: - $ref: '#/components/schemas/Metadata' nullable: true x-struct: x-validate: name: description: Name associated with the address nullable: true type: string x-struct: x-validate: private_tags: description: Private tags associated with the address items: $ref: '#/components/schemas/Tag' type: array x-struct: x-validate: proxy_type: $ref: '#/components/schemas/ProxyType' public_tags: description: Public tags associated with the address items: $ref: '#/components/schemas/Tag' type: array x-struct: x-validate: reputation: description: Reputation of the address enum: - ok - scam nullable: false type: string x-struct: x-validate: watchlist_names: description: Watchlist name associated with the address items: $ref: '#/components/schemas/WatchlistName' type: array x-struct: x-validate: required: - hash - is_contract - name - is_scam - reputation - proxy_type - implementations - is_verified - ens_domain_name - metadata title: Address type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Address x-validate: token_id: $ref: '#/components/schemas/IntegerStringNullable' value: $ref: '#/components/schemas/IntegerString' required: - address - token_id - value title: TokenHolderResponse type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Token.Holder x-validate: AddressResponse: additionalProperties: false description: Address response properties: block_number_balance_updated_at: minimum: 0 nullable: true type: integer x-struct: x-validate: coin_balance: $ref: '#/components/schemas/IntegerStringNullable' creation_status: description: Creation status of the contract enum: - success - failed - selfdestructed nullable: true type: string x-struct: x-validate: creation_transaction_hash: $ref: '#/components/schemas/FullHashNullable' creator_address_hash: $ref: '#/components/schemas/AddressHashNullable' ens_domain_name: description: ENS domain name associated with the address nullable: true type: string x-struct: x-validate: exchange_rate: $ref: '#/components/schemas/FloatStringNullable' has_beacon_chain_withdrawals: nullable: false type: boolean x-struct: x-validate: has_logs: nullable: false type: boolean x-struct: x-validate: has_token_transfers: nullable: false type: boolean x-struct: x-validate: has_tokens: nullable: false type: boolean x-struct: x-validate: has_validated_blocks: nullable: false type: boolean x-struct: x-validate: hash: $ref: '#/components/schemas/AddressHash' implementations: description: Implementations linked with the contract items: $ref: '#/components/schemas/Implementation' type: array x-struct: x-validate: is_contract: description: Has address contract code? nullable: true type: boolean x-struct: x-validate: is_scam: description: Has address scam badge? nullable: false type: boolean x-struct: x-validate: is_verified: description: Has address associated source code? nullable: true type: boolean x-struct: x-validate: metadata: allOf: - $ref: '#/components/schemas/Metadata' nullable: true x-struct: x-validate: name: description: Name associated with the address nullable: true type: string x-struct: x-validate: private_tags: description: Private tags associated with the address items: $ref: '#/components/schemas/Tag' type: array x-struct: x-validate: proxy_type: $ref: '#/components/schemas/ProxyType' public_tags: description: Public tags associated with the address items: $ref: '#/components/schemas/Tag' type: array x-struct: x-validate: reputation: description: Reputation of the address enum: - ok - scam nullable: false type: string x-struct: x-validate: token: allOf: - $ref: '#/components/schemas/Token' nullable: true x-struct: x-validate: watchlist_address_id: nullable: true type: integer x-struct: x-validate: watchlist_names: description: Watchlist name associated with the address items: $ref: '#/components/schemas/WatchlistName' type: array x-struct: x-validate: required: - hash - is_contract - name - is_scam - reputation - proxy_type - implementations - is_verified - ens_domain_name - metadata - creator_address_hash - creation_transaction_hash - token - coin_balance - exchange_rate - block_number_balance_updated_at - has_validated_blocks - has_logs - has_tokens - has_token_transfers - watchlist_address_id - has_beacon_chain_withdrawals - creation_status title: AddressResponse type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Address x-validate: RawTrace: items: additionalProperties: false properties: action: additionalProperties: false properties: callType: enum: - call - callcode - delegatecall - staticcall type: string x-struct: x-validate: from: $ref: '#/components/schemas/AddressHash' gas: $ref: '#/components/schemas/HexString' init: $ref: '#/components/schemas/HexString' input: $ref: '#/components/schemas/HexString' to: $ref: '#/components/schemas/AddressHash' value: $ref: '#/components/schemas/HexString' required: - from - gas - input - value type: object x-struct: x-validate: result: additionalProperties: false properties: gasUsed: $ref: '#/components/schemas/HexString' output: $ref: '#/components/schemas/HexString' required: - gasUsed - output type: object x-struct: x-validate: subtraces: minimum: 0 type: integer x-struct: x-validate: traceAddress: items: type: integer x-struct: x-validate: type: array x-struct: x-validate: transactionHash: $ref: '#/components/schemas/FullHashNullable' type: enum: - call - create - create2 - reward - selfdestruct - stop - invalid type: string x-struct: x-validate: required: - action - subtraces - traceAddress - type type: object x-struct: x-validate: title: RawTrace type: array x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Transaction.RawTrace x-validate: DecodedLogInput: additionalProperties: false nullable: false properties: method_call: nullable: true type: string x-struct: x-validate: method_id: nullable: true type: string x-struct: x-validate: parameters: items: additionalProperties: false nullable: false properties: indexed: nullable: false type: boolean x-struct: x-validate: name: nullable: false type: string x-struct: x-validate: type: nullable: false type: string x-struct: x-validate: value: anyOf: - type: object x-struct: x-validate: - items: anyOf: - type: object x-struct: x-validate: - items: type: string x-struct: x-validate: type: array x-struct: x-validate: - type: string x-struct: x-validate: x-struct: x-validate: type: array x-struct: x-validate: - type: string x-struct: x-validate: nullable: false x-struct: x-validate: required: - name - type - indexed - value type: object x-struct: x-validate: nullable: false type: array x-struct: x-validate: required: - method_id - method_call - parameters title: DecodedLogInput type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.DecodedLogInput x-validate: Language: enum: - solidity - vyper - yul - geas title: Language type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.SmartContract.Language x-validate: Counters: description: Smart contracts counters properties: new_smart_contracts_24h: $ref: '#/components/schemas/IntegerString' new_verified_smart_contracts_24h: $ref: '#/components/schemas/IntegerString' smart_contracts: $ref: '#/components/schemas/IntegerString' verified_smart_contracts: $ref: '#/components/schemas/IntegerString' title: Counters type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.SmartContract.Counters x-validate: CoinBalance: additionalProperties: false properties: block_number: nullable: false type: integer x-struct: x-validate: block_timestamp: $ref: '#/components/schemas/Timestamp' delta: $ref: '#/components/schemas/IntegerString' transaction_hash: $ref: '#/components/schemas/FullHashNullable' value: $ref: '#/components/schemas/IntegerString' required: - transaction_hash - block_number - delta - value - block_timestamp title: CoinBalance type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.CoinBalance x-validate: FloatStringNullable: nullable: true pattern: ^([1-9][0-9]*|0)(\.[0-9]+)?$ title: FloatStringNullable type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.FloatStringNullable x-validate: Summary: additionalProperties: false properties: data: additionalProperties: false properties: summaries: items: additionalProperties: false properties: summary_template: type: string x-struct: x-validate: summary_template_variables: additionalProperties: additionalProperties: false properties: type: type: string x-struct: x-validate: value: anyOf: - type: string x-struct: x-validate: - type: number x-struct: x-validate: - type: object x-struct: x-validate: x-struct: x-validate: required: - type - value type: object x-struct: x-validate: type: object x-struct: x-validate: required: - summary_template - summary_template_variables type: object x-struct: x-validate: type: array x-struct: x-validate: required: - summaries type: object x-struct: x-validate: success: type: boolean x-struct: x-validate: required: - data - success title: Summary type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Transaction.Summary x-validate: URLNullable: example: https://example.com format: uri nullable: true title: URLNullable type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.URLNullable x-validate: FloatString: pattern: ^([1-9][0-9]*|0)(\.[0-9]+)?$ title: FloatString type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.FloatString x-validate: FullHashNullable: nullable: true pattern: ^0x([A-Fa-f0-9]{64})$ title: FullHashNullable type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.FullHashNullable x-validate: Block: additionalProperties: false properties: base_fee_per_gas: $ref: '#/components/schemas/IntegerStringNullable' burnt_fees: $ref: '#/components/schemas/IntegerStringNullable' burnt_fees_percentage: format: float nullable: true type: number x-struct: x-validate: difficulty: $ref: '#/components/schemas/IntegerStringNullable' gas_limit: $ref: '#/components/schemas/IntegerString' gas_target_percentage: format: float nullable: false type: number x-struct: x-validate: gas_used: $ref: '#/components/schemas/IntegerString' gas_used_percentage: format: float nullable: false type: number x-struct: x-validate: hash: $ref: '#/components/schemas/FullHash' height: minimum: 0 nullable: false type: integer x-struct: x-validate: internal_transactions_count: nullable: true type: integer x-struct: x-validate: is_pending_update: nullable: false type: boolean x-struct: x-validate: miner: $ref: '#/components/schemas/Address' nonce: $ref: '#/components/schemas/HexStringNullable' parent_hash: $ref: '#/components/schemas/FullHash' priority_fee: $ref: '#/components/schemas/IntegerStringNullable' rewards: items: additionalProperties: false properties: address_hash: $ref: '#/components/schemas/AddressHash' reward: $ref: '#/components/schemas/IntegerString' type: nullable: false type: string x-struct: x-validate: required: - type - reward type: object x-struct: x-validate: nullable: false type: array x-struct: x-validate: size: nullable: false type: integer x-struct: x-validate: timestamp: $ref: '#/components/schemas/Timestamp' total_difficulty: $ref: '#/components/schemas/IntegerStringNullable' transaction_fees: $ref: '#/components/schemas/IntegerString' transactions_count: nullable: false type: integer x-struct: x-validate: type: enum: - block - uncle - reorg nullable: false type: string x-struct: x-validate: uncles_hashes: items: additionalProperties: false nullable: false properties: hash: $ref: '#/components/schemas/FullHash' required: - hash type: object x-struct: x-validate: nullable: false type: array x-struct: x-validate: withdrawals_count: minimum: 0 nullable: true type: integer x-struct: x-validate: zksync: additionalProperties: false nullable: false properties: batch_number: nullable: true type: integer x-struct: x-validate: commit_transaction_hash: $ref: '#/components/schemas/FullHashNullable' commit_transaction_timestamp: $ref: '#/components/schemas/TimestampNullable' execute_transaction_hash: $ref: '#/components/schemas/FullHashNullable' execute_transaction_timestamp: $ref: '#/components/schemas/TimestampNullable' prove_transaction_hash: $ref: '#/components/schemas/FullHashNullable' prove_transaction_timestamp: $ref: '#/components/schemas/TimestampNullable' status: enum: - Executed on L1 - Validated on L1 - Sent to L1 - Sealed on L2 - Processed on L2 nullable: false type: string x-struct: x-validate: required: - batch_number - status - commit_transaction_hash - commit_transaction_timestamp - prove_transaction_hash - prove_transaction_timestamp - execute_transaction_hash - execute_transaction_timestamp type: object x-struct: x-validate: required: - height - timestamp - transactions_count - internal_transactions_count - miner - size - hash - parent_hash - difficulty - total_difficulty - gas_used - gas_limit - nonce - base_fee_per_gas - burnt_fees - priority_fee - uncles_hashes - rewards - gas_target_percentage - gas_used_percentage - burnt_fees_percentage - type - transaction_fees - withdrawals_count - is_pending_update title: Block type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Block x-validate: Implementation: additionalProperties: false description: Proxy smart contract implementation properties: address_hash: $ref: '#/components/schemas/AddressHash' name: nullable: true type: string x-struct: x-validate: required: - address_hash - name title: Implementation type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.Implementation x-validate: AddressHash: nullable: false pattern: ^0x([A-Fa-f0-9]{40})$ title: AddressHash type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.AddressHash x-validate: IntegerString: nullable: false pattern: ^-?([1-9][0-9]*|0)$ title: IntegerString type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.IntegerString x-validate: TokenInstance: additionalProperties: false nullable: false properties: animation_url: $ref: '#/components/schemas/URLNullable' external_app_url: $ref: '#/components/schemas/URLNullable' id: $ref: '#/components/schemas/IntegerString' image_url: $ref: '#/components/schemas/URLNullable' is_unique: nullable: true type: boolean x-struct: x-validate: media_type: description: Mime type of the media in media_url example: image/png nullable: true type: string x-struct: x-validate: media_url: $ref: '#/components/schemas/URLNullable' metadata: example: description: Test image: https://example.com/image.png name: Test nullable: true type: object x-struct: x-validate: owner: allOf: - $ref: '#/components/schemas/Address' nullable: true x-struct: x-validate: thumbnails: nullable: true properties: 250x250: format: uri type: string x-struct: x-validate: 500x500: format: uri type: string x-struct: x-validate: 60x60: format: uri type: string x-struct: x-validate: original: format: uri type: string x-struct: x-validate: required: - original type: object x-struct: x-validate: token: allOf: - $ref: '#/components/schemas/Token' nullable: true x-struct: x-validate: token_type: allOf: - $ref: '#/components/schemas/Type' nullable: true x-struct: x-validate: value: $ref: '#/components/schemas/IntegerStringNullable' required: - id - metadata - owner - token - external_app_url - animation_url - image_url - is_unique - thumbnails - media_type - media_url title: TokenInstance type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.TokenInstance x-validate: CoinBalanceByDay: additionalProperties: false properties: date: format: date nullable: false type: string x-struct: x-validate: value: $ref: '#/components/schemas/IntegerString' required: - date - value title: CoinBalanceByDay type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.CoinBalanceByDay x-validate: Counter: additionalProperties: false properties: withdrawals_count: $ref: '#/components/schemas/IntegerString' withdrawals_sum: $ref: '#/components/schemas/IntegerString' required: - withdrawals_count - withdrawals_sum title: Counter type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Withdrawal.Counter x-validate: IntegerStringNullable: nullable: true pattern: ^-?([1-9][0-9]*|0)$ title: IntegerStringNullable type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.IntegerStringNullable x-validate: ProxyType: enum: - eip1167 - eip1967 - eip1822 - eip1967_oz - eip1967_beacon - master_copy - basic_implementation - basic_get_implementation - comptroller - eip2535 - clone_with_immutable_arguments - eip7702 - resolved_delegate_proxy - erc7760 nullable: true title: ProxyType type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.ProxyType x-validate: MethodNameNullable: description: Method name or hex method id example: transfer nullable: true title: MethodNameNullable type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.MethodNameNullable x-validate: Total: additionalProperties: false properties: decimals: $ref: '#/components/schemas/IntegerStringNullable' value: $ref: '#/components/schemas/IntegerStringNullable' required: - value - decimals title: Total type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.TokenTransfer.Total x-validate: SearchResult: description: Search results containing blocks, transactions, and addresses properties: items: items: type: object x-struct: x-validate: type: array x-struct: x-validate: next_page_params: nullable: true type: object x-struct: x-validate: title: SearchResult type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Search.Results x-validate: TokenCountersResponse: additionalProperties: false description: Token counters response example: token_holders_count: '0' transfers_count: '0' properties: token_holders_count: $ref: '#/components/schemas/IntegerString' transfers_count: $ref: '#/components/schemas/IntegerString' required: - token_holders_count - transfers_count title: TokenCountersResponse type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Token.Counters x-validate: BlockResponse: additionalProperties: false description: Block response properties: base_fee_per_gas: $ref: '#/components/schemas/IntegerStringNullable' burnt_fees: $ref: '#/components/schemas/IntegerStringNullable' burnt_fees_percentage: format: float nullable: true type: number x-struct: x-validate: difficulty: $ref: '#/components/schemas/IntegerStringNullable' gas_limit: $ref: '#/components/schemas/IntegerString' gas_target_percentage: format: float nullable: false type: number x-struct: x-validate: gas_used: $ref: '#/components/schemas/IntegerString' gas_used_percentage: format: float nullable: false type: number x-struct: x-validate: hash: $ref: '#/components/schemas/FullHash' height: minimum: 0 nullable: false type: integer x-struct: x-validate: internal_transactions_count: nullable: true type: integer x-struct: x-validate: is_pending_update: nullable: false type: boolean x-struct: x-validate: miner: $ref: '#/components/schemas/Address' nonce: $ref: '#/components/schemas/HexStringNullable' parent_hash: $ref: '#/components/schemas/FullHash' priority_fee: $ref: '#/components/schemas/IntegerStringNullable' rewards: items: additionalProperties: false properties: address_hash: $ref: '#/components/schemas/AddressHash' reward: $ref: '#/components/schemas/IntegerString' type: nullable: false type: string x-struct: x-validate: required: - type - reward type: object x-struct: x-validate: nullable: false type: array x-struct: x-validate: size: nullable: false type: integer x-struct: x-validate: timestamp: $ref: '#/components/schemas/Timestamp' total_difficulty: $ref: '#/components/schemas/IntegerStringNullable' transaction_fees: $ref: '#/components/schemas/IntegerString' transactions_count: nullable: false type: integer x-struct: x-validate: type: enum: - block - uncle - reorg nullable: false type: string x-struct: x-validate: uncles_hashes: items: additionalProperties: false nullable: false properties: hash: $ref: '#/components/schemas/FullHash' required: - hash type: object x-struct: x-validate: nullable: false type: array x-struct: x-validate: withdrawals_count: minimum: 0 nullable: true type: integer x-struct: x-validate: zksync: additionalProperties: false nullable: false properties: batch_number: nullable: true type: integer x-struct: x-validate: commit_transaction_hash: $ref: '#/components/schemas/FullHashNullable' commit_transaction_timestamp: $ref: '#/components/schemas/TimestampNullable' execute_transaction_hash: $ref: '#/components/schemas/FullHashNullable' execute_transaction_timestamp: $ref: '#/components/schemas/TimestampNullable' prove_transaction_hash: $ref: '#/components/schemas/FullHashNullable' prove_transaction_timestamp: $ref: '#/components/schemas/TimestampNullable' status: enum: - Executed on L1 - Validated on L1 - Sent to L1 - Sealed on L2 - Processed on L2 nullable: false type: string x-struct: x-validate: required: - batch_number - status - commit_transaction_hash - commit_transaction_timestamp - prove_transaction_hash - prove_transaction_timestamp - execute_transaction_hash - execute_transaction_timestamp type: object x-struct: x-validate: required: - height - timestamp - transactions_count - internal_transactions_count - miner - size - hash - parent_hash - difficulty - total_difficulty - gas_used - gas_limit - nonce - base_fee_per_gas - burnt_fees - priority_fee - uncles_hashes - rewards - gas_target_percentage - gas_used_percentage - burnt_fees_percentage - type - transaction_fees - withdrawals_count - is_pending_update title: BlockResponse type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Block x-validate: AuditReport: description: Smart contract audit report item properties: audit_company_name: nullable: true type: string x-struct: x-validate: audit_publish_date: format: date nullable: true type: string x-struct: x-validate: audit_report_url: nullable: true type: string x-struct: x-validate: title: AuditReport type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.SmartContract.AuditReport x-validate: HexString: nullable: false pattern: ^0x([A-Fa-f0-9]*)$ title: HexString type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.HexString x-validate: JsonErrorResponse: properties: errors: items: properties: detail: example: null value where string expected type: string x-struct: x-validate: source: properties: pointer: example: /data/attributes/petName type: string x-struct: x-validate: required: - pointer type: object x-struct: x-validate: title: example: Invalid value type: string x-struct: x-validate: required: - title - source - detail type: object x-struct: x-validate: type: array x-struct: x-validate: required: - errors title: JsonErrorResponse type: object x-struct: Elixir.OpenApiSpex.JsonErrorResponse x-validate: MetadataTag: additionalProperties: false description: Metadata tag struct properties: meta: nullable: false type: object x-struct: x-validate: name: nullable: false type: string x-struct: x-validate: ordinal: nullable: false type: integer x-struct: x-validate: slug: nullable: false type: string x-struct: x-validate: tagType: nullable: false type: string x-struct: x-validate: required: - slug - name - tagType - ordinal - meta title: MetadataTag type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Proxy.MetadataTag x-validate: TokenInstanceInList: additionalProperties: false nullable: false properties: animation_url: $ref: '#/components/schemas/URLNullable' external_app_url: $ref: '#/components/schemas/URLNullable' id: $ref: '#/components/schemas/IntegerString' image_url: $ref: '#/components/schemas/URLNullable' is_unique: nullable: true type: boolean x-struct: x-validate: media_type: description: Mime type of the media in media_url example: image/png nullable: true type: string x-struct: x-validate: media_url: $ref: '#/components/schemas/URLNullable' metadata: example: description: Test image: https://example.com/image.png name: Test nullable: true type: object x-struct: x-validate: owner: allOf: - $ref: '#/components/schemas/Address' nullable: true x-struct: x-validate: thumbnails: nullable: true properties: 250x250: format: uri type: string x-struct: x-validate: 500x500: format: uri type: string x-struct: x-validate: 60x60: format: uri type: string x-struct: x-validate: original: format: uri type: string x-struct: x-validate: required: - original type: object x-struct: x-validate: token: allOf: - $ref: '#/components/schemas/Token' nullable: true x-struct: x-validate: token_type: $ref: '#/components/schemas/Type' value: $ref: '#/components/schemas/IntegerStringNullable' required: - id - metadata - owner - token - external_app_url - animation_url - image_url - is_unique - thumbnails - media_type - media_url - token_type - value title: TokenInstanceInList type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.TokenInstance x-validate: DecodedInput: additionalProperties: false nullable: false properties: method_call: nullable: true type: string x-struct: x-validate: method_id: nullable: true type: string x-struct: x-validate: parameters: items: additionalProperties: false nullable: false properties: name: nullable: false type: string x-struct: x-validate: type: nullable: false type: string x-struct: x-validate: value: anyOf: - type: object x-struct: x-validate: - items: anyOf: - type: object x-struct: x-validate: - items: type: string x-struct: x-validate: type: array x-struct: x-validate: - type: string x-struct: x-validate: x-struct: x-validate: type: array x-struct: x-validate: - type: string x-struct: x-validate: nullable: false x-struct: x-validate: type: object x-struct: x-validate: type: array x-struct: x-validate: required: - method_id - method_call - parameters title: DecodedInput type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.DecodedInput x-validate: AddressHashNullable: nullable: true pattern: ^0x([A-Fa-f0-9]{40})$ title: AddressHashNullable type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.AddressHashNullable x-validate: InternalTransaction: additionalProperties: false properties: block_index: description: The index of this internal transaction inside the block. nullable: false type: integer x-struct: x-validate: block_number: nullable: false type: integer x-struct: x-validate: created_contract: allOf: - $ref: '#/components/schemas/Address' nullable: true x-struct: x-validate: error: nullable: true type: string x-struct: x-validate: from: $ref: '#/components/schemas/Address' gas_limit: $ref: '#/components/schemas/IntegerStringNullable' index: description: The index of this internal transaction inside the transaction. nullable: false type: integer x-struct: x-validate: success: nullable: false type: boolean x-struct: x-validate: timestamp: $ref: '#/components/schemas/Timestamp' to: $ref: '#/components/schemas/Address' transaction_hash: $ref: '#/components/schemas/FullHash' transaction_index: description: The index of the parent transaction inside the block. nullable: false type: integer x-struct: x-validate: type: description: Type of the internal transaction (call, create, etc.) nullable: false type: string x-struct: x-validate: value: $ref: '#/components/schemas/IntegerString' required: - error - success - type - transaction_hash - transaction_index - from - to - created_contract - value - block_number - timestamp - index - gas_limit - block_index title: InternalTransaction type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.InternalTransaction x-validate: Tag: additionalProperties: false description: Address tag struct properties: address_hash: $ref: '#/components/schemas/AddressHash' display_name: nullable: false type: string x-struct: x-validate: label: nullable: false type: string x-struct: x-validate: required: - address_hash - display_name - label title: Tag type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.Tag x-validate: NotFoundResponse: description: Response returned when the requested resource is not found properties: message: description: Error message indicating the requested resource was not found example: Resource not found type: string x-struct: x-validate: title: NotFoundResponse type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.ErrorResponses.NotFoundResponse x-validate: TimestampNullable: format: date-time nullable: true title: TimestampNullable type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.TimestampNullable x-validate: TokenResponse: additionalProperties: false description: Token response properties: address_hash: $ref: '#/components/schemas/AddressHash' bridge_type: description: Type of bridge used for this bridged token enum: - omni - amb nullable: true type: string x-struct: x-validate: circulating_market_cap: $ref: '#/components/schemas/FloatStringNullable' decimals: $ref: '#/components/schemas/IntegerStringNullable' exchange_rate: $ref: '#/components/schemas/FloatStringNullable' foreign_address: nullable: true pattern: ^0x([A-Fa-f0-9]{40})$ type: string x-struct: x-validate: holders_count: $ref: '#/components/schemas/IntegerStringNullable' icon_url: $ref: '#/components/schemas/URLNullable' name: nullable: true type: string x-struct: x-validate: origin_chain_id: $ref: '#/components/schemas/IntegerStringNullable' reputation: description: Reputation of the token enum: - ok - scam nullable: true type: string x-struct: x-validate: symbol: nullable: true type: string x-struct: x-validate: total_supply: $ref: '#/components/schemas/IntegerStringNullable' type: allOf: - $ref: '#/components/schemas/Type' nullable: true x-struct: x-validate: volume_24h: $ref: '#/components/schemas/FloatStringNullable' required: - address_hash - symbol - name - decimals - type - holders_count - exchange_rate - volume_24h - total_supply - icon_url - circulating_market_cap - reputation title: TokenResponse type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Token x-validate: StateChange: additionalProperties: false properties: address: $ref: '#/components/schemas/Address' balance_after: $ref: '#/components/schemas/IntegerStringNullable' balance_before: $ref: '#/components/schemas/IntegerStringNullable' change: $ref: '#/components/schemas/IntegerStringNullable' is_miner: type: boolean x-struct: x-validate: token: allOf: - $ref: '#/components/schemas/Token' nullable: true x-struct: x-validate: token_id: $ref: '#/components/schemas/IntegerStringNullable' type: enum: - token - coin type: string x-struct: x-validate: required: - address - balance_after - balance_before - change - is_miner - token - type title: StateChange type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Transaction.StateChange x-validate: BlockCountdown: description: Block countdown information showing estimated time until a target block is reached example: countdown_block: 22600000 current_block: 22566361 estimated_time_in_sec: 404868.0 remaining_blocks: 33639 properties: countdown_block: description: The target block number for the countdown example: 22600000 minimum: 0 type: integer x-struct: x-validate: current_block: description: The current highest block number in the blockchain example: 22566361 minimum: 0 type: integer x-struct: x-validate: estimated_time_in_sec: description: Estimated time in seconds until the target block is reached example: 404868.0 format: float minimum: 0 type: number x-struct: x-validate: remaining_blocks: description: Number of blocks remaining until the target block is reached example: 33639 minimum: 0 type: integer x-struct: x-validate: required: - current_block - countdown_block - remaining_blocks - estimated_time_in_sec title: BlockCountdown type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Block.Countdown x-validate: AddressCounters: additionalProperties: false description: Address counters properties: gas_usage_count: $ref: '#/components/schemas/IntegerString' token_transfers_count: $ref: '#/components/schemas/IntegerString' transactions_count: $ref: '#/components/schemas/IntegerString' validations_count: $ref: '#/components/schemas/IntegerString' required: - transactions_count - token_transfers_count - gas_usage_count - validations_count title: AddressCounters type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Address.Counters x-validate: TokenTransfer: additionalProperties: false properties: block_hash: $ref: '#/components/schemas/FullHash' block_number: nullable: false type: integer x-struct: x-validate: from: $ref: '#/components/schemas/Address' log_index: nullable: false type: integer x-struct: x-validate: method: $ref: '#/components/schemas/MethodNameNullable' timestamp: $ref: '#/components/schemas/TimestampNullable' to: $ref: '#/components/schemas/Address' token: $ref: '#/components/schemas/Token' token_type: $ref: '#/components/schemas/Type' total: anyOf: - $ref: '#/components/schemas/TotalERC721' - $ref: '#/components/schemas/TotalERC1155' - $ref: '#/components/schemas/Total' nullable: true x-struct: x-validate: transaction_hash: $ref: '#/components/schemas/FullHash' type: enum: - token_burning - token_minting - token_spawning - token_transfer type: string x-struct: x-validate: required: - transaction_hash - from - to - total - token - type - timestamp - method - block_hash - block_number - log_index - token_type title: TokenTransfer type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.TokenTransfer x-validate: TokenBalance: additionalProperties: false properties: token: allOf: - $ref: '#/components/schemas/Token' nullable: true x-struct: x-validate: token_id: $ref: '#/components/schemas/IntegerStringNullable' token_instance: allOf: - $ref: '#/components/schemas/TokenInstance' nullable: true x-struct: x-validate: value: $ref: '#/components/schemas/IntegerString' required: - value - token - token_id - token_instance title: TokenBalance type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Address.TokenBalance x-validate: SmartContract: additionalProperties: false description: Smart contract properties: constructor_args: nullable: true type: string x-struct: x-validate: is_partially_verified: nullable: true type: boolean x-struct: x-validate: is_changed_bytecode: nullable: true type: boolean x-struct: x-validate: abi: items: type: object x-struct: x-validate: nullable: true type: array x-struct: x-validate: conflicting_implementations: items: type: object x-struct: x-validate: nullable: true type: array x-struct: x-validate: certified: type: boolean x-struct: x-validate: additional_sources: items: properties: file_path: type: string x-struct: x-validate: source_code: type: string x-struct: x-validate: type: object x-struct: x-validate: nullable: true type: array x-struct: x-validate: is_verified_via_sourcify: nullable: true type: boolean x-struct: x-validate: can_be_visualized_via_sol2uml: nullable: true type: boolean x-struct: x-validate: zk_compiler_version: nullable: true type: string x-struct: x-validate: evm_version: nullable: true type: string x-struct: x-validate: language: nullable: true type: string x-struct: x-validate: address: $ref: '#/components/schemas/Address' is_verified_via_eth_bytecode_db: nullable: true type: boolean x-struct: x-validate: coin_balance: nullable: true type: string x-struct: x-validate: is_fully_verified: nullable: true type: boolean x-struct: x-validate: license_type: nullable: true type: string x-struct: x-validate: is_blueprint: nullable: true type: boolean x-struct: x-validate: name: nullable: true type: string x-struct: x-validate: creation_bytecode: nullable: true type: string x-struct: x-validate: external_libraries: items: properties: address_hash: $ref: '#/components/schemas/AddressHash' name: nullable: true type: string x-struct: x-validate: type: object x-struct: x-validate: nullable: true type: array x-struct: x-validate: market_cap: nullable: true type: string x-struct: x-validate: proxy_type: nullable: true type: string x-struct: x-validate: implementations: items: properties: address_hash: $ref: '#/components/schemas/AddressHash' name: nullable: true type: string x-struct: x-validate: type: object x-struct: x-validate: nullable: true type: array x-struct: x-validate: verified_at: format: date-time nullable: true type: string x-struct: x-validate: is_verified_via_verifier_alliance: nullable: true type: boolean x-struct: x-validate: compiler_version: nullable: true type: string x-struct: x-validate: decoded_constructor_args: items: items: anyOf: - type: object x-struct: x-validate: - type: string x-struct: x-validate: x-struct: x-validate: type: array x-struct: x-validate: nullable: true type: array x-struct: x-validate: sourcify_repo_url: nullable: true type: string x-struct: x-validate: optimization_runs: nullable: true type: integer x-struct: x-validate: compiler_settings: nullable: true type: object x-struct: x-validate: verification_metadata: nullable: true type: object x-struct: x-validate: is_verified: nullable: true type: boolean x-struct: x-validate: reputation: nullable: true type: string x-struct: x-validate: verified_twin_address_hash: nullable: true type: string x-struct: x-validate: optimization_enabled: nullable: true type: boolean x-struct: x-validate: deployed_bytecode: nullable: true type: string x-struct: x-validate: source_code: nullable: true type: string x-struct: x-validate: transactions_count: nullable: true type: integer x-struct: x-validate: creation_status: nullable: true type: string x-struct: x-validate: file_path: nullable: true type: string x-struct: x-validate: has_constructor_args: nullable: true type: boolean x-struct: x-validate: title: SmartContract type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.SmartContract x-validate: Fee: additionalProperties: false properties: type: enum: - maximum - actual type: string x-struct: x-validate: value: $ref: '#/components/schemas/IntegerStringNullable' required: - type - value title: Fee type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Transaction.Fee x-validate: FullHash: nullable: false pattern: ^0x([A-Fa-f0-9]{64})$ title: FullHash type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.FullHash x-validate: StatsResponse: description: Stats response properties: average_block_time: format: float type: number x-struct: x-validate: coin_image: nullable: true type: string x-struct: x-validate: coin_price: $ref: '#/components/schemas/FloatStringNullable' coin_price_change_percentage: format: float nullable: true type: number x-struct: x-validate: gas_price_updated_at: $ref: '#/components/schemas/TimestampNullable' gas_prices: nullable: true type: object x-struct: x-validate: gas_prices_update_in: nullable: true type: integer x-struct: x-validate: gas_used_today: anyOf: - $ref: '#/components/schemas/IntegerStringNullable' - type: integer x-struct: x-validate: x-struct: x-validate: market_cap: $ref: '#/components/schemas/FloatString' network_utilization_percentage: nullable: true type: number x-struct: x-validate: secondary_coin_image: nullable: true type: string x-struct: x-validate: secondary_coin_price: $ref: '#/components/schemas/FloatStringNullable' static_gas_price: $ref: '#/components/schemas/IntegerStringNullable' total_addresses: $ref: '#/components/schemas/IntegerString' total_blocks: $ref: '#/components/schemas/IntegerString' total_gas_used: $ref: '#/components/schemas/IntegerString' total_transactions: $ref: '#/components/schemas/IntegerString' transactions_today: $ref: '#/components/schemas/IntegerString' tvl: $ref: '#/components/schemas/IntegerStringNullable' title: StatsResponse type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Stats.Response x-validate: Token: additionalProperties: false description: Token struct properties: address_hash: $ref: '#/components/schemas/AddressHash' bridge_type: description: Type of bridge used for this bridged token enum: - omni - amb nullable: true type: string x-struct: x-validate: circulating_market_cap: $ref: '#/components/schemas/FloatStringNullable' decimals: $ref: '#/components/schemas/IntegerStringNullable' exchange_rate: $ref: '#/components/schemas/FloatStringNullable' foreign_address: nullable: true pattern: ^0x([A-Fa-f0-9]{40})$ type: string x-struct: x-validate: holders_count: $ref: '#/components/schemas/IntegerStringNullable' icon_url: $ref: '#/components/schemas/URLNullable' name: nullable: true type: string x-struct: x-validate: origin_chain_id: $ref: '#/components/schemas/IntegerStringNullable' reputation: description: Reputation of the token enum: - ok - scam nullable: true type: string x-struct: x-validate: symbol: nullable: true type: string x-struct: x-validate: total_supply: $ref: '#/components/schemas/IntegerStringNullable' type: allOf: - $ref: '#/components/schemas/Type' nullable: true x-struct: x-validate: volume_24h: $ref: '#/components/schemas/FloatStringNullable' required: - address_hash - symbol - name - decimals - type - holders_count - exchange_rate - volume_24h - total_supply - icon_url - circulating_market_cap - reputation title: Token type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Token x-validate: Transaction: additionalProperties: false properties: has_error_in_internal_transactions: nullable: true type: boolean x-struct: x-validate: block_number: nullable: true type: integer x-struct: x-validate: exchange_rate: $ref: '#/components/schemas/FloatStringNullable' transaction_types: items: enum: - coin_transfer - contract_call - contract_creation - rootstock_bridge - rootstock_remasc - token_creation - token_transfer - blob_transaction - set_code_transaction type: string x-struct: x-validate: type: array x-struct: x-validate: historic_exchange_rate: $ref: '#/components/schemas/FloatStringNullable' nonce: minimum: 0 nullable: false type: integer x-struct: x-validate: timestamp: $ref: '#/components/schemas/TimestampNullable' base_fee_per_gas: $ref: '#/components/schemas/IntegerStringNullable' token_transfers: items: $ref: '#/components/schemas/TokenTransfer' nullable: true type: array x-struct: x-validate: decoded_input: allOf: - $ref: '#/components/schemas/DecodedInput' nullable: true x-struct: x-validate: gas_price: $ref: '#/components/schemas/IntegerStringNullable' gas_limit: $ref: '#/components/schemas/IntegerString' actions: items: additionalProperties: false properties: data: description: Transaction action details (json formatted) nullable: false type: object x-struct: x-validate: protocol: enum: - uniswap_v3 - opensea_v1_1 - wrapping - approval - zkbob - aave_v3 nullable: false type: string x-struct: x-validate: type: enum: - mint_nft - mint - burn - collect - swap - sale - cancel - transfer - wrap - unwrap - approve - revoke - withdraw - deposit - borrow - supply - repay - flash_loan - enable_collateral - disable_collateral - liquidation_call nullable: false type: string x-struct: x-validate: required: - protocol - type - data type: object x-struct: x-validate: nullable: true type: array x-struct: x-validate: fee: $ref: '#/components/schemas/Fee' method: $ref: '#/components/schemas/MethodNameNullable' authorization_list: items: $ref: '#/components/schemas/SignedAuthorization' nullable: true type: array x-struct: x-validate: to: $ref: '#/components/schemas/Address' status: enum: - ok - error nullable: true type: string x-struct: x-validate: gas_used: $ref: '#/components/schemas/IntegerStringNullable' from: $ref: '#/components/schemas/Address' value: $ref: '#/components/schemas/IntegerString' created_contract: allOf: - $ref: '#/components/schemas/Address' nullable: true x-struct: x-validate: zksync: additionalProperties: false nullable: false properties: batch_number: nullable: true type: integer x-struct: x-validate: commit_transaction_hash: $ref: '#/components/schemas/FullHashNullable' commit_transaction_timestamp: $ref: '#/components/schemas/TimestampNullable' execute_transaction_hash: $ref: '#/components/schemas/FullHashNullable' execute_transaction_timestamp: $ref: '#/components/schemas/TimestampNullable' prove_transaction_hash: $ref: '#/components/schemas/FullHashNullable' prove_transaction_timestamp: $ref: '#/components/schemas/TimestampNullable' status: enum: - Executed on L1 - Validated on L1 - Sent to L1 - Sealed on L2 - Processed on L2 nullable: true type: string x-struct: x-validate: required: - batch_number - status - commit_transaction_hash - commit_transaction_timestamp - prove_transaction_hash - prove_transaction_timestamp - execute_transaction_hash - execute_transaction_timestamp type: object x-struct: x-validate: transaction_tag: description: Transaction tag set in My Account example: personal nullable: true type: string x-struct: x-validate: max_priority_fee_per_gas: $ref: '#/components/schemas/IntegerStringNullable' position: minimum: 0 nullable: true type: integer x-struct: x-validate: confirmations: minimum: 0 type: integer x-struct: x-validate: token_transfers_overflow: nullable: true type: boolean x-struct: x-validate: type: nullable: true type: integer x-struct: x-validate: transaction_burnt_fee: $ref: '#/components/schemas/IntegerStringNullable' confirmation_duration: description: Array of time intervals in milliseconds. Can be empty [] (no info), single value [interval] (means that the transaction was confirmed within {interval} milliseconds), or two values [short_interval, long_interval] (means that the transaction's confirmation took from {short_interval} to {long_interval} milliseconds) example: - 1000 - 2000 items: description: Duration in milliseconds minimum: 0 type: integer x-struct: x-validate: maxItems: 2 type: array x-struct: x-validate: revert_reason: nullable: true oneOf: - $ref: '#/components/schemas/DecodedInput' - additionalProperties: false nullable: false properties: raw: anyOf: - $ref: '#/components/schemas/HexString' - type: string x-struct: x-validate: nullable: true x-struct: x-validate: required: - raw type: object x-struct: x-validate: x-struct: x-validate: max_fee_per_gas: $ref: '#/components/schemas/IntegerStringNullable' hash: $ref: '#/components/schemas/FullHash' result: anyOf: - enum: - pending - awaiting_internal_transactions - success - dropped/replaced type: string x-struct: x-validate: - description: Error message example: out of gas type: string x-struct: x-validate: nullable: false x-struct: x-validate: is_pending_update: nullable: true type: boolean x-struct: x-validate: raw_input: $ref: '#/components/schemas/HexString' priority_fee: $ref: '#/components/schemas/IntegerStringNullable' required: - hash - result - status - block_number - timestamp - from - to - created_contract - confirmations - confirmation_duration - value - fee - gas_price - type - gas_used - gas_limit - max_fee_per_gas - max_priority_fee_per_gas - base_fee_per_gas - priority_fee - transaction_burnt_fee - nonce - position - revert_reason - raw_input - decoded_input - token_transfers - token_transfers_overflow - actions - exchange_rate - historic_exchange_rate - method - transaction_types - transaction_tag - has_error_in_internal_transactions - authorization_list - is_pending_update title: Transaction type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Transaction x-validate: SignedAuthorization: additionalProperties: false properties: address_hash: $ref: '#/components/schemas/AddressHash' authority: $ref: '#/components/schemas/AddressHash' chain_id: nullable: false type: integer x-struct: x-validate: nonce: $ref: '#/components/schemas/IntegerString' r: $ref: '#/components/schemas/IntegerString' s: $ref: '#/components/schemas/IntegerString' status: enum: - ok - invalid_chain_id - invalid_signature - invalid_nonce nullable: true type: string x-struct: x-validate: v: nullable: false type: integer x-struct: x-validate: required: - address_hash - chain_id - nonce - r - s - v - authority - status title: SignedAuthorization type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.SignedAuthorization x-validate: TransactionResponse: additionalProperties: false description: Transaction response properties: has_error_in_internal_transactions: nullable: true type: boolean x-struct: x-validate: block_number: nullable: true type: integer x-struct: x-validate: exchange_rate: $ref: '#/components/schemas/FloatStringNullable' transaction_types: items: enum: - coin_transfer - contract_call - contract_creation - rootstock_bridge - rootstock_remasc - token_creation - token_transfer - blob_transaction - set_code_transaction type: string x-struct: x-validate: type: array x-struct: x-validate: historic_exchange_rate: $ref: '#/components/schemas/FloatStringNullable' nonce: minimum: 0 nullable: false type: integer x-struct: x-validate: timestamp: $ref: '#/components/schemas/TimestampNullable' base_fee_per_gas: $ref: '#/components/schemas/IntegerStringNullable' token_transfers: items: $ref: '#/components/schemas/TokenTransfer' nullable: true type: array x-struct: x-validate: decoded_input: allOf: - $ref: '#/components/schemas/DecodedInput' nullable: true x-struct: x-validate: gas_price: $ref: '#/components/schemas/IntegerStringNullable' gas_limit: $ref: '#/components/schemas/IntegerString' actions: items: additionalProperties: false properties: data: description: Transaction action details (json formatted) nullable: false type: object x-struct: x-validate: protocol: enum: - uniswap_v3 - opensea_v1_1 - wrapping - approval - zkbob - aave_v3 nullable: false type: string x-struct: x-validate: type: enum: - mint_nft - mint - burn - collect - swap - sale - cancel - transfer - wrap - unwrap - approve - revoke - withdraw - deposit - borrow - supply - repay - flash_loan - enable_collateral - disable_collateral - liquidation_call nullable: false type: string x-struct: x-validate: required: - protocol - type - data type: object x-struct: x-validate: nullable: true type: array x-struct: x-validate: fee: $ref: '#/components/schemas/Fee' method: $ref: '#/components/schemas/MethodNameNullable' authorization_list: items: $ref: '#/components/schemas/SignedAuthorization' nullable: true type: array x-struct: x-validate: to: $ref: '#/components/schemas/Address' status: enum: - ok - error nullable: true type: string x-struct: x-validate: gas_used: $ref: '#/components/schemas/IntegerStringNullable' from: $ref: '#/components/schemas/Address' value: $ref: '#/components/schemas/IntegerString' created_contract: allOf: - $ref: '#/components/schemas/Address' nullable: true x-struct: x-validate: zksync: additionalProperties: false nullable: false properties: batch_number: nullable: true type: integer x-struct: x-validate: commit_transaction_hash: $ref: '#/components/schemas/FullHashNullable' commit_transaction_timestamp: $ref: '#/components/schemas/TimestampNullable' execute_transaction_hash: $ref: '#/components/schemas/FullHashNullable' execute_transaction_timestamp: $ref: '#/components/schemas/TimestampNullable' prove_transaction_hash: $ref: '#/components/schemas/FullHashNullable' prove_transaction_timestamp: $ref: '#/components/schemas/TimestampNullable' status: enum: - Executed on L1 - Validated on L1 - Sent to L1 - Sealed on L2 - Processed on L2 nullable: true type: string x-struct: x-validate: required: - batch_number - status - commit_transaction_hash - commit_transaction_timestamp - prove_transaction_hash - prove_transaction_timestamp - execute_transaction_hash - execute_transaction_timestamp type: object x-struct: x-validate: transaction_tag: description: Transaction tag set in My Account example: personal nullable: true type: string x-struct: x-validate: max_priority_fee_per_gas: $ref: '#/components/schemas/IntegerStringNullable' position: minimum: 0 nullable: true type: integer x-struct: x-validate: confirmations: minimum: 0 type: integer x-struct: x-validate: token_transfers_overflow: nullable: true type: boolean x-struct: x-validate: type: nullable: true type: integer x-struct: x-validate: transaction_burnt_fee: $ref: '#/components/schemas/IntegerStringNullable' confirmation_duration: description: Array of time intervals in milliseconds. Can be empty [] (no info), single value [interval] (means that the transaction was confirmed within {interval} milliseconds), or two values [short_interval, long_interval] (means that the transaction's confirmation took from {short_interval} to {long_interval} milliseconds) example: - 1000 - 2000 items: description: Duration in milliseconds minimum: 0 type: integer x-struct: x-validate: maxItems: 2 type: array x-struct: x-validate: revert_reason: nullable: true oneOf: - $ref: '#/components/schemas/DecodedInput' - additionalProperties: false nullable: false properties: raw: anyOf: - $ref: '#/components/schemas/HexString' - type: string x-struct: x-validate: nullable: true x-struct: x-validate: required: - raw type: object x-struct: x-validate: x-struct: x-validate: max_fee_per_gas: $ref: '#/components/schemas/IntegerStringNullable' hash: $ref: '#/components/schemas/FullHash' result: anyOf: - enum: - pending - awaiting_internal_transactions - success - dropped/replaced type: string x-struct: x-validate: - description: Error message example: out of gas type: string x-struct: x-validate: nullable: false x-struct: x-validate: is_pending_update: nullable: true type: boolean x-struct: x-validate: raw_input: $ref: '#/components/schemas/HexString' priority_fee: $ref: '#/components/schemas/IntegerStringNullable' required: - hash - result - status - block_number - timestamp - from - to - created_contract - confirmations - confirmation_duration - value - fee - gas_price - type - gas_used - gas_limit - max_fee_per_gas - max_priority_fee_per_gas - base_fee_per_gas - priority_fee - transaction_burnt_fee - nonce - position - revert_reason - raw_input - decoded_input - token_transfers - token_transfers_overflow - actions - exchange_rate - historic_exchange_rate - method - transaction_types - transaction_tag - has_error_in_internal_transactions - authorization_list - is_pending_update title: TransactionResponse type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Transaction x-validate: HexStringNullable: nullable: true pattern: ^0x([A-Fa-f0-9]*)$ title: HexStringNullable type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.HexStringNullable x-validate: Timestamp: format: date-time nullable: false title: Timestamp type: string x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.Timestamp x-validate: info: contact: email: info@blockscout.com title: Blockscout version: 9.4.2 openapi: 3.0.0 paths: /v2/blocks/{block_hash_or_number_param}/internal-transactions: get: callbacks: {} description: Retrieves internal transactions included in a specific block with optional filtering by type and call type. operationId: BlockScoutWeb.API.V2.BlockController.internal_transactions parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Block hash or number in the path in: path name: block_hash_or_number_param required: true schema: anyOf: - type: integer x-struct: x-validate: - $ref: '#/components/schemas/FullHash' x-struct: x-validate: - description: | Filter internal transactions by type: * all - Show all internal transactions (default) * call - Only show call internal transactions * create - Only show create internal transactions * create2 - Only show create2 internal transactions * reward - Only show reward internal transactions * selfdestruct - Only show selfdestruct internal transactions * stop - Only show stop internal transactions * invalid - Only show invalid internal transactions (Arbitrum only) in: query name: internal_type required: false schema: enum: - call - create - create2 - reward - selfdestruct - stop type: string x-struct: x-validate: - description: | Filter internal transactions by call type: * all - Show all internal transactions (default) * call - Only show call internal transactions * callcode - Only show callcode internal transactions * delegatecall - Only show delegatecall internal transactions * staticcall - Only show staticcall internal transactions * invalid - Only show invalid internal transactions (Arbitrum only) in: query name: call_type required: false schema: enum: - call - callcode - delegatecall - staticcall type: string x-struct: x-validate: - description: Transaction index for paging in: query name: transaction_index required: false schema: type: integer x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/InternalTransaction' nullable: false type: array x-struct: x-validate: next_page_params: example: index: 8 items_count: 50 transaction_index: 3 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Internal transactions in the specified block. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List internal transactions in a specific block tags: - blocks /v2/tokens/{address_hash_param}: get: callbacks: {} description: Retrieves detailed information for a specific token identified by its contract address. operationId: BlockScoutWeb.API.V2.TokenController.token parameters: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/TokenResponse' description: Detailed information about the specified token. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Retrieve detailed information about a specific token tags: - tokens /v2/config/csv-export: get: callbacks: {} description: Returns configured limits for CSV export endpoints. operationId: BlockScoutWeb.API.V2.ConfigController.csv_export parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: properties: limit: type: integer x-struct: x-validate: type: object x-struct: x-validate: description: CSV export limits. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: CSV export limits tags: - config /v2/transactions/{transaction_hash_param}: get: callbacks: {} description: Retrieves detailed information for a specific transaction identified by its hash. operationId: BlockScoutWeb.API.V2.TransactionController.transaction parameters: - description: Transaction hash in the path in: path name: transaction_hash_param required: true schema: $ref: '#/components/schemas/FullHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/TransactionResponse' description: Detailed information about the specified transaction. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Retrieve detailed information about a specific transaction tags: - transactions /v2/main-page/transactions/watchlist: get: callbacks: {} description: Retrieves a list of last 6 transactions from the current user's watchlist. operationId: BlockScoutWeb.API.V2.MainPageController.watchlist_transactions parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/TransactionResponse' nullable: false type: array x-struct: x-validate: description: List of watchlist transactions '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Last 6 transactions from the current user's watchlist tags: - main_page /v2/tokens/{address_hash_param}/holders/csv: get: callbacks: {} description: Exports the holders of a specific token as a CSV file. operationId: BlockScoutWeb.API.V2.CsvExportController.export_token_holders parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Address hash in the query in: query name: address_id required: false schema: $ref: '#/components/schemas/AddressHash' - description: Start of the time period (ISO 8601 format) in CSV export in: query name: from_period required: true schema: anyOf: - nullable: false pattern: ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:T(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d(?:(?::|%3A)[0-5]\d(?:\.\d{1,9})?)?)?(?:Z|(?:\+|%2B|-)(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d)?)?)?$ type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: End of the time period (ISO 8601 format) In CSV export in: query name: to_period required: true schema: anyOf: - nullable: false pattern: ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:T(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d(?:(?::|%3A)[0-5]\d(?:\.\d{1,9})?)?)?(?:Z|(?:\+|%2B|-)(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d)?)?)?$ type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Filter type in CSV export in: query name: filter_type required: false schema: anyOf: - enum: - address nullable: true type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Filter value in CSV export in: query name: filter_value required: false schema: anyOf: - enum: - to - from nullable: true type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: responses: '200': content: application/csv: {} description: CSV file of token holders. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Export token holders as CSV tags: - tokens /v2/transactions/zksync-batch/{batch_number_param}: get: callbacks: {} description: Retrieves L2 transactions bound to a specific ZkSync batch number. operationId: BlockScoutWeb.API.V2.TransactionController.zksync_batch parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Batch number in: path name: batch_number_param required: true schema: minimum: 0 type: integer x-struct: x-validate: - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/TransactionResponse' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 65361291 index: 1 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: ZkSync batch transactions. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List L2 transactions in a ZkSync batch tags: - transactions /v2/tokens/: get: callbacks: {} description: Retrieves a paginated list of tokens with optional filtering by name, symbol, or type. operationId: BlockScoutWeb.API.V2.TokenController.tokens_list parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: | Filter by token type. Comma-separated list of: * ERC-20 - Fungible tokens * ERC-721 - Non-fungible tokens * ERC-1155 - Multi-token standard * ERC-404 - Hybrid fungible/non-fungible tokens Example: `ERC-20,ERC-721` to show both fungible and NFT transfers in: query name: type required: false schema: anyOf: - $ref: '#/components/schemas/EmptyString' - pattern: ^\[?(ERC-20|ERC-721|ERC-1155|ERC-404)(,(ERC-20|ERC-721|ERC-1155|ERC-404))*\]?$ type: string x-struct: x-validate: x-struct: x-validate: - description: Search query filter in: query name: q required: false schema: nullable: true type: string x-struct: x-validate: - description: Limit result items in the response in: query name: limit required: false schema: nullable: true type: integer x-struct: x-validate: - description: | Sort transactions by: * block_number - Sort by block number * value - Sort by transaction value * fee - Sort by transaction fee * balance - Sort by account balance * transactions_count - Sort by number of transactions on address * fiat_value - Sort by fiat value of the token transfer * holders_count - Sort by number of token holders * circulating_market_cap - Sort by circulating market cap of the token Should be used together with `order` parameter. in: query name: sort required: false schema: enum: - fiat_value - holders_count - circulating_market_cap type: string x-struct: x-validate: - description: | Sort order: * asc - Ascending order * desc - Descending order Should be used together with `sort` parameter. in: query name: order required: false schema: enum: - asc - desc type: string x-struct: x-validate: - description: Contract address hash for paging in: query name: contract_address_hash required: false schema: $ref: '#/components/schemas/AddressHashNullable' - description: Fiat value for paging in: query name: fiat_value required: false schema: anyOf: - $ref: '#/components/schemas/FloatString' - $ref: '#/components/schemas/EmptyString' - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Number of holders returned per page in: query name: holders_count required: false schema: anyOf: - $ref: '#/components/schemas/IntegerString' - $ref: '#/components/schemas/EmptyString' - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Is name null for paging in: query name: is_name_null required: false schema: type: boolean x-struct: x-validate: - description: Market cap for paging in: query name: market_cap required: false schema: anyOf: - $ref: '#/components/schemas/FloatString' - $ref: '#/components/schemas/EmptyString' - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Name for paging in: query name: name required: false schema: type: string x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/Token' nullable: false type: array x-struct: x-validate: next_page_params: example: contract_address_hash: '0xbe9895146f7af43049ca1c1ae358b0541ea49704' fiat_value: '4724.32' holders_count: 59731 is_name_null: false items_count: 50 market_cap: '570958125.135513' name: Wrapped Staked ETH nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: List of tokens matching the filter criteria, with pagination. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List tokens with optional filtering by name, symbol, or type tags: - tokens /v2/addresses/{address_hash_param}/token-transfers/csv: get: callbacks: {} description: Exports token transfers for a specific address as a CSV file. operationId: BlockScoutWeb.API.V2.CsvExportController.token_transfers_csv parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Address hash in the query in: query name: address_id required: false schema: $ref: '#/components/schemas/AddressHash' - description: Start of the time period (ISO 8601 format) in CSV export in: query name: from_period required: true schema: anyOf: - nullable: false pattern: ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:T(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d(?:(?::|%3A)[0-5]\d(?:\.\d{1,9})?)?)?(?:Z|(?:\+|%2B|-)(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d)?)?)?$ type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: End of the time period (ISO 8601 format) In CSV export in: query name: to_period required: true schema: anyOf: - nullable: false pattern: ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:T(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d(?:(?::|%3A)[0-5]\d(?:\.\d{1,9})?)?)?(?:Z|(?:\+|%2B|-)(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d)?)?)?$ type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Filter type in CSV export in: query name: filter_type required: false schema: anyOf: - enum: - address nullable: true type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Filter value in CSV export in: query name: filter_value required: false schema: anyOf: - enum: - to - from nullable: true type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: responses: '200': content: application/csv: {} description: CSV file of token transfers. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Export token transfers as CSV tags: - addresses /v2/addresses/{address_hash_param}/token-balances: get: callbacks: {} description: Retrieves all token balances held by a specific address, including ERC-20, ERC-721, ERC-1155, and ERC-404 tokens. operationId: BlockScoutWeb.API.V2.AddressController.token_balances parameters: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/TokenBalance' type: array x-struct: x-validate: description: All token balances for the specified address. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List all token balances held by a specific address tags: - addresses /v2/blocks/{block_hash_or_number_param}/withdrawals: get: callbacks: {} description: Retrieves withdrawals processed in a specific block (typically for proof-of-stake networks). operationId: BlockScoutWeb.API.V2.BlockController.withdrawals parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Block hash or number in the path in: path name: block_hash_or_number_param required: true schema: anyOf: - type: integer x-struct: x-validate: - $ref: '#/components/schemas/FullHash' x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/Withdrawal' nullable: false type: array x-struct: x-validate: next_page_params: example: index: 88192653 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Withdrawals in the specified block, with pagination. Note that block_number and timestamp fields are not included in this endpoint. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List validator withdrawals including amounts, index and receiver details processed in a specific block tags: - blocks /v2/tokens/{address_hash_param}/holders: get: callbacks: {} description: Retrieves addresses holding a specific token, sorted by balance. Useful for analyzing token distribution. operationId: BlockScoutWeb.API.V2.TokenController.holders parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Address hash for paging in: query name: address_hash required: false schema: $ref: '#/components/schemas/AddressHash' - description: Transaction value for paging in: query name: value required: false schema: $ref: '#/components/schemas/IntegerString' - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/TokenHolderResponse' nullable: false type: array x-struct: x-validate: next_page_params: example: address_hash: '0x48bb9b14483e43c7726df702b271d410e7460656' items_count: 50 value: '200000000000000' nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Holders of the specified token, with pagination. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List addresses holding a specific token sorted by balance tags: - tokens /v2/blocks/{block_hash_or_number_param}: get: callbacks: {} description: Retrieves detailed information for a specific block, including transactions, internal transactions, and metadata. operationId: BlockScoutWeb.API.V2.BlockController.block parameters: - description: Block hash or number in the path in: path name: block_hash_or_number_param required: true schema: anyOf: - type: integer x-struct: x-validate: - $ref: '#/components/schemas/FullHash' x-struct: x-validate: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/BlockResponse' description: Detailed information about the specified block. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Retrieves detailed information for a specific block identified by its number or hash. tags: - blocks /v2/addresses/{address_hash_param}/tokens: get: callbacks: {} description: Retrieves token balances for a specific address with pagination and filtering by token type. Useful for displaying large token portfolios. operationId: BlockScoutWeb.API.V2.AddressController.tokens parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: | Filter by token type. Comma-separated list of: * ERC-20 - Fungible tokens * ERC-721 - Non-fungible tokens * ERC-1155 - Multi-token standard * ERC-404 - Hybrid fungible/non-fungible tokens Example: `ERC-20,ERC-721` to show both fungible and NFT transfers in: query name: type required: false schema: anyOf: - $ref: '#/components/schemas/EmptyString' - pattern: ^\[?(ERC-20|ERC-721|ERC-1155|ERC-404)(,(ERC-20|ERC-721|ERC-1155|ERC-404))*\]?$ type: string x-struct: x-validate: x-struct: x-validate: - description: Fiat value for paging in: query name: fiat_value required: false schema: anyOf: - $ref: '#/components/schemas/FloatString' - $ref: '#/components/schemas/EmptyString' - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: ID for paging in: query name: id required: false schema: type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: - description: Transaction value for paging in: query name: value required: false schema: $ref: '#/components/schemas/IntegerString' responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/TokenBalance' nullable: false type: array x-struct: x-validate: next_page_params: example: fiat_value: id: 12519063346 items_count: 50 value: '3750000000000000000000' nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Token balances for the specified address with pagination. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List token balances for an address with pagination and type filtering tags: - addresses /v2/smart-contracts/{address_hash_param}/audit-reports: get: callbacks: {} description: Returns audit reports for a given smart contract address. operationId: BlockScoutWeb.API.V2.SmartContractController.audit_reports_list parameters: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false description: List of smart-contract's audit reports properties: items: items: $ref: '#/components/schemas/AuditReport' nullable: false type: array x-struct: x-validate: next_page_params: nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Audit reports. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Audit reports list tags: - smart_contracts post: callbacks: {} description: Submits an audit report for a given smart contract address. operationId: BlockScoutWeb.API.V2.SmartContractController.audit_report_submission parameters: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: requestBody: content: application/json: schema: properties: audit_company_name: type: string x-struct: x-validate: audit_publish_date: format: date type: string x-struct: x-validate: audit_report_url: type: string x-struct: x-validate: comment: nullable: true type: string x-struct: x-validate: is_project_owner: type: boolean x-struct: x-validate: project_name: type: string x-struct: x-validate: project_url: type: string x-struct: x-validate: submitter_email: type: string x-struct: x-validate: submitter_name: type: string x-struct: x-validate: required: - submitter_name - submitter_email - is_project_owner - project_name - project_url - audit_company_name - audit_report_url - audit_publish_date type: object x-struct: x-validate: required: false responses: '200': content: application/json: schema: properties: message: type: string x-struct: x-validate: type: object x-struct: x-validate: description: Audit report submission is successful. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Submit audit report tags: - smart_contracts /v2/addresses/{address_hash_param}/token-transfers: get: callbacks: {} description: Retrieves token transfers involving a specific address, with optional filtering by token type, direction, and specific token. operationId: BlockScoutWeb.API.V2.AddressController.token_transfers parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: | Filter transactions by direction: * to - Only show transactions sent to this address * from - Only show transactions sent from this address If omitted, all transactions involving the address are returned. in: query name: filter required: false schema: enum: - to - from type: string x-struct: x-validate: - description: | Filter by token type. Comma-separated list of: * ERC-20 - Fungible tokens * ERC-721 - Non-fungible tokens * ERC-1155 - Multi-token standard * ERC-404 - Hybrid fungible/non-fungible tokens Example: `ERC-20,ERC-721` to show both fungible and NFT transfers in: query name: type required: false schema: anyOf: - $ref: '#/components/schemas/EmptyString' - pattern: ^\[?(ERC-20|ERC-721|ERC-1155|ERC-404)(,(ERC-20|ERC-721|ERC-1155|ERC-404))*\]?$ type: string x-struct: x-validate: x-struct: x-validate: - description: Filter token transfers by token contract address. in: query name: token required: false schema: $ref: '#/components/schemas/AddressHash' - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: - description: Batch log index for paging in: query name: batch_log_index required: false schema: type: integer x-struct: x-validate: - description: Batch block hash for paging in: query name: batch_block_hash required: false schema: $ref: '#/components/schemas/FullHash' - description: Batch transaction hash for paging in: query name: batch_transaction_hash required: false schema: $ref: '#/components/schemas/FullHash' - description: Index in batch for paging in: query name: index_in_batch required: false schema: type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/TokenTransfer' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 12345678 index: 0 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: All token transfers for the specified address. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List token transfers involving a specific address with filtering options tags: - addresses /v2/addresses/{address_hash_param}/nft: get: callbacks: {} description: Retrieves a list of NFTs (non-fungible tokens) owned by a specific address, with optional filtering by token type. operationId: BlockScoutWeb.API.V2.AddressController.nft_list parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: | Filter by token type. Comma-separated list of: * ERC-721 - Non-fungible tokens * ERC-1155 - Multi-token standard * ERC-404 - Hybrid fungible/non-fungible tokens Example: `ERC-721,ERC-1155` to show both NFT and multi-token transfers in: query name: type required: false schema: anyOf: - $ref: '#/components/schemas/EmptyString' - pattern: ^\[?(ERC-20|ERC-721|ERC-1155|ERC-404)(,(ERC-20|ERC-721|ERC-1155|ERC-404))*\]?$ type: string x-struct: x-validate: x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: - description: Token contract address hash for paging in: query name: token_contract_address_hash required: false schema: $ref: '#/components/schemas/AddressHash' - description: Token ID for paging in: query name: token_id required: false schema: $ref: '#/components/schemas/IntegerStringNullable' - description: Token type for paging in: query name: token_type required: false schema: $ref: '#/components/schemas/Type' responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/TokenInstanceInList' nullable: false type: array x-struct: x-validate: next_page_params: example: items_count: 50 token_contract_address_hash: '0x1ffe11b9fb7f6ff1b153ab8608cf403ecaf9d44a' token_id: '24950' token_type: ERC-721 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: NFTs owned by the specified address, with pagination. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List NFTs owned by a specific address with optional type filtering tags: - addresses /v2/stats: get: callbacks: {} description: Retrieves blockchain network statistics including total blocks, transactions, addresses, average block time, market data, and network utilization. operationId: BlockScoutWeb.API.V2.StatsController.stats parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/StatsResponse' description: Blockchain network statistics. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Retrieve blockchain network statistics and metrics tags: - stats /v2/tokens/{address_hash_param}/instances: get: callbacks: {} description: Retrieves instances of NFTs for a specific token contract. This endpoint is primarily for ERC-721 and ERC-1155 tokens. operationId: BlockScoutWeb.API.V2.TokenController.instances parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Token holder address hash in the query in: query name: holder_address_hash required: false schema: $ref: '#/components/schemas/AddressHash' - description: Token ID for paging in: query name: unique_token required: false schema: $ref: '#/components/schemas/IntegerStringNullable' responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/TokenInstance' nullable: false type: array x-struct: x-validate: next_page_params: example: unique_token: 782098 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: NFT instances for the specified token contract, with pagination. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List individual NFT instances for a token contract tags: - tokens /v2/main-page/blocks: get: callbacks: {} description: Retrieves a limited set of recent blocks for display on the main page or dashboard. operationId: BlockScoutWeb.API.V2.MainPageController.blocks parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/BlockResponse' nullable: false type: array x-struct: x-validate: description: List of recent blocks on the home page. summary: Retrieve recent blocks as displayed on Blockscout homepage tags: - main_page /v2/stats/charts/secondary-coin-market: get: callbacks: {} description: Returns market history for the secondary coin used for charting. operationId: BlockScoutWeb.API.V2.StatsController.secondary_coin_market_chart parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: properties: chart_data: items: type: object x-struct: x-validate: type: array x-struct: x-validate: type: object x-struct: x-validate: description: Secondary coin market chart data. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Secondary coin market history chart data tags: - stats /v2/addresses/{address_hash_param}/blocks-validated: get: callbacks: {} description: Retrieves blocks that were validated (mined) by a specific address. Useful for tracking validator/miner performance. operationId: BlockScoutWeb.API.V2.AddressController.blocks_validated parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/Block' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 22546398 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Blocks validated by the specified address, with pagination. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List blocks validated (mined) by a specific validator/miner address tags: - addresses /v2/addresses/{address_hash_param}/internal-transactions: get: callbacks: {} description: Retrieves all internal transactions involving a specific address, with optional filtering for internal transactions sent from or to the address. operationId: BlockScoutWeb.API.V2.AddressController.internal_transactions parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: | Filter transactions by direction: * to - Only show transactions sent to this address * from - Only show transactions sent from this address If omitted, all transactions involving the address are returned. in: query name: filter required: false schema: enum: - to - from type: string x-struct: x-validate: - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: - description: Transaction index for paging in: query name: transaction_index required: false schema: type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/InternalTransaction' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 22530770 index: 8 items_count: 50 transaction_index: 8 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: All internal transactions for the specified address. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List all internal transactions involving a specific address tags: - addresses /v2/transactions/{transaction_hash_param}/external-transactions: get: callbacks: {} description: Retrieves external transactions that are linked to the specified transaction (e.g., Solana transactions in `neon` chain type). operationId: BlockScoutWeb.API.V2.TransactionController.external_transactions parameters: - description: Transaction hash in the path in: path name: transaction_hash_param required: true schema: $ref: '#/components/schemas/FullHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: items: type: string x-struct: x-validate: nullable: false type: array x-struct: x-validate: description: Linked external transactions. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List external transactions linked to a transaction tags: - transactions /v2/tokens/{address_hash_param}/transfers: get: callbacks: {} description: Retrieves transfer history for a specific NFT instance, showing ownership changes over time. operationId: BlockScoutWeb.API.V2.TokenController.transfers parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Batch log index for paging in: query name: batch_log_index required: false schema: type: integer x-struct: x-validate: - description: Batch block hash for paging in: query name: batch_block_hash required: false schema: $ref: '#/components/schemas/FullHash' - description: Batch transaction hash for paging in: query name: batch_transaction_hash required: false schema: $ref: '#/components/schemas/FullHash' - description: Index in batch for paging in: query name: index_in_batch required: false schema: type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/TokenTransfer' nullable: false type: array x-struct: x-validate: next_page_params: example: batch_block_hash: '0x789' batch_log_index: 3 batch_transaction_hash: '0xabc' block_number: 23484141 index: 259 index_in_batch: 2 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Transfers of the specified token, with pagination. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List ownership transfer history for a specific NFT tags: - tokens /v2/transactions: get: callbacks: {} description: Retrieves a paginated list of transactions with optional filtering by status, type, and method. operationId: BlockScoutWeb.API.V2.TransactionController.transactions parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: | Filter transactions by status: * pending - Transactions waiting to be mined/validated * validated - Confirmed transactions included in blocks If omitted, default value "validated" is used. in: query name: filter required: false schema: enum: - validated - pending type: string x-struct: x-validate: - description: | Filter by transaction type. Comma-separated list of: * blob_transaction - Only show blob transactions in: query name: type required: false schema: enum: - blob_transaction type: string x-struct: x-validate: - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: - description: Transaction hash for paging in: query name: hash required: false schema: $ref: '#/components/schemas/FullHash' - description: Inserted at timestamp for paging (ISO8601) in: query name: inserted_at required: false schema: format: date-time type: string x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/TransactionResponse' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 23532302 index: 375 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: List of transactions with pagination information. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List blockchain transactions with filtering options for status, type, and method tags: - transactions /v2/tokens/{address_hash_param}/instances/{token_id_param}/holders: get: callbacks: {} description: Retrieves current holders of a specific NFT instance. For ERC-721, this will typically be a single address. For ERC-1155, multiple addresses may hold the same token ID. operationId: BlockScoutWeb.API.V2.TokenController.holders_by_instance parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Token ID for ERC-721/1155/404 tokens in: path name: token_id_param required: true schema: $ref: '#/components/schemas/IntegerStringNullable' - description: Address hash for paging in: query name: address_hash required: false schema: $ref: '#/components/schemas/AddressHash' - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: - description: Token ID for paging in: query name: token_id required: false schema: $ref: '#/components/schemas/IntegerStringNullable' - description: Transaction value for paging in: query name: value required: false schema: $ref: '#/components/schemas/IntegerString' responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/TokenHolderResponse' nullable: false type: array x-struct: x-validate: next_page_params: example: address_hash: '0x1d2c163fbda9486c3a384b6fa5e34c96fe948e9a' items_count: 50 token_id: '0' value: '4217417051704137590935' nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Current holders of the specified NFT instance, with pagination. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List current holders of a specific NFT tags: - tokens /v2/stats/hot-smart-contracts: get: callbacks: {} description: Retrieves paginated list of hot smart-contracts operationId: BlockScoutWeb.API.V2.StatsController.hot_smart_contracts parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: | Sort transactions by: * block_number - Sort by block number * value - Sort by transaction value * fee - Sort by transaction fee * balance - Sort by account balance * transactions_count - Sort by number of transactions on address * fiat_value - Sort by fiat value of the token transfer * holders_count - Sort by number of token holders * circulating_market_cap - Sort by circulating market cap of the token Should be used together with `order` parameter. in: query name: sort required: false schema: enum: - transactions_count - total_gas_used type: string x-struct: x-validate: - description: | Sort order: * asc - Ascending order * desc - Descending order Should be used together with `sort` parameter. in: query name: order required: false schema: enum: - asc - desc type: string x-struct: x-validate: - description: Time scale for hot contracts aggregation (5m=5 minutes, 1h=1 hour, 3h=3 hours, 1d=1 day, 7d=7 days, 30d=30 days) in: query name: scale required: true schema: enum: - 5m - 1h - 3h - 1d - 7d - 30d nullable: false type: string x-struct: x-validate: - description: Transactions count for paging in: query name: transactions_count required: false schema: minimum: 1 type: integer x-struct: x-validate: - description: Total gas used for paging in: query name: total_gas_used required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Contract address hash for paging in: query name: contract_address_hash required: false schema: $ref: '#/components/schemas/AddressHash' - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/HotContract' nullable: false type: array x-struct: x-validate: next_page_params: example: contract_address_hash: '0x01a2A10583675E0e5dF52DE1b62734109201477a' items_count: 50 total_gas_used: '100' transactions_count: 100 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Paginated list of hot smart-contracts. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Retrieve hot smart-contracts tags: - stats /v2/smart-contracts/{address_hash_param}: get: callbacks: {} description: Retrieves detailed information about a specific verified smart contract, including source code, ABI, and deployment details. operationId: BlockScoutWeb.API.V2.SmartContractController.smart_contract parameters: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/SmartContract' description: Detailed information about the specified verified smart contract. summary: Retrieve detailed information about a verified smart contract tags: - smart_contracts /v2/tokens/{address_hash_param}/instances/{token_id_param}/transfers: get: callbacks: {} description: Retrieves token transfers for a specific token instance (by token address and token ID). operationId: BlockScoutWeb.API.V2.TokenController.transfers_by_instance parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Token ID for ERC-721/1155/404 tokens in: path name: token_id_param required: true schema: $ref: '#/components/schemas/IntegerStringNullable' - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Token ID for paging in: query name: token_id required: false schema: $ref: '#/components/schemas/IntegerStringNullable' responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/TokenTransfer' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 23489243 index: 920 token_id: '4' nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Transfer history for the specified NFT instance, with pagination. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List token transfers for a specific token instance tags: - tokens /v2/config/backend-version: get: callbacks: {} description: Returns application backend version string. operationId: BlockScoutWeb.API.V2.ConfigController.backend_version parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: properties: backend_version: nullable: true type: string x-struct: x-validate: type: object x-struct: x-validate: description: Backend version. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get backend version tags: - config /v2/token-transfers: get: callbacks: {} description: Retrieves a paginated list of token transfers across all token types (ERC-20, ERC-721, ERC-1155). operationId: BlockScoutWeb.API.V2.TokenTransferController.token_transfers parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: | Filter by token type. Comma-separated list of: * ERC-20 - Fungible tokens * ERC-721 - Non-fungible tokens * ERC-1155 - Multi-token standard * ERC-404 - Hybrid fungible/non-fungible tokens Example: `ERC-20,ERC-721` to show both fungible and NFT transfers in: query name: type required: false schema: anyOf: - $ref: '#/components/schemas/EmptyString' - pattern: ^\[?(ERC-20|ERC-721|ERC-1155|ERC-404)(,(ERC-20|ERC-721|ERC-1155|ERC-404))*\]?$ type: string x-struct: x-validate: x-struct: x-validate: - description: Limit result items in the response in: query name: limit required: false schema: nullable: true type: integer x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Batch log index for paging in: query name: batch_log_index required: false schema: type: integer x-struct: x-validate: - description: Batch block hash for paging in: query name: batch_block_hash required: false schema: $ref: '#/components/schemas/FullHash' - description: Batch transaction hash for paging in: query name: batch_transaction_hash required: false schema: $ref: '#/components/schemas/FullHash' - description: Index in batch for paging in: query name: index_in_batch required: false schema: type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/TokenTransfer' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 22133247 index: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: List of token transfers with pagination information. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List token transfers across all token types (ERC-20, ERC-721, ERC-1155) tags: - token_transfers /v2/transactions/{transaction_hash_param}/token-transfers: get: callbacks: {} description: Retrieves token transfers that occurred within a specific transaction, with optional filtering by token type. operationId: BlockScoutWeb.API.V2.TransactionController.token_transfers parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Transaction hash in the path in: path name: transaction_hash_param required: true schema: $ref: '#/components/schemas/FullHash' - description: | Filter by token type. Comma-separated list of: * ERC-20 - Fungible tokens * ERC-721 - Non-fungible tokens * ERC-1155 - Multi-token standard * ERC-404 - Hybrid fungible/non-fungible tokens Example: `ERC-20,ERC-721` to show both fungible and NFT transfers in: query name: type required: false schema: anyOf: - $ref: '#/components/schemas/EmptyString' - pattern: ^\[?(ERC-20|ERC-721|ERC-1155|ERC-404)(,(ERC-20|ERC-721|ERC-1155|ERC-404))*\]?$ type: string x-struct: x-validate: x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Batch log index for paging in: query name: batch_log_index required: false schema: type: integer x-struct: x-validate: - description: Batch block hash for paging in: query name: batch_block_hash required: false schema: $ref: '#/components/schemas/FullHash' - description: Batch transaction hash for paging in: query name: batch_transaction_hash required: false schema: $ref: '#/components/schemas/FullHash' - description: Index in batch for paging in: query name: index_in_batch required: false schema: type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/TokenTransfer' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 21307214 index: 442 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Token transfers within the specified transaction, with pagination. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List token transfers within a specific transaction tags: - transactions /v2/stats/charts/market: get: callbacks: {} description: Retrieves time series data of market information (daily closing price, market cap) for rendering charts. operationId: BlockScoutWeb.API.V2.StatsController.market_chart parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: properties: available_supply: anyOf: - $ref: '#/components/schemas/FloatString' - type: integer x-struct: x-validate: x-struct: x-validate: chart_data: items: type: object x-struct: x-validate: type: array x-struct: x-validate: type: object x-struct: x-validate: description: Time series data for market charts and available token supply. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get daily closing price and market cap for native coin tags: - stats /v2/search/quick: get: callbacks: {} description: Performs a quick, unpaginated search for short queries. operationId: BlockScoutWeb.API.V2.SearchController.quick_search parameters: - description: Search query filter in: query name: q required: false schema: nullable: true type: string x-struct: x-validate: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: items: type: object x-struct: x-validate: nullable: false type: array x-struct: x-validate: description: Quick search results. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Quick (unpaginated) search tags: - search /v2/main-page/transactions: get: callbacks: {} description: Retrieves a limited set of recent transactions displayed on the home page. operationId: BlockScoutWeb.API.V2.MainPageController.transactions parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/TransactionResponse' nullable: false type: array x-struct: x-validate: description: List of recent transactions on the home page. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Retrieve recent transactions as displayed on Blockscout homepage tags: - main_page /v2/addresses/{address_hash_param}/counters: get: callbacks: {} description: Retrieves count statistics for an address, including transactions, token transfers, gas usage, and validations. operationId: BlockScoutWeb.API.V2.AddressController.counters parameters: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/AddressCounters' description: Count statistics for the specified address. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get activity count stats for a specific address tags: - addresses /v2/tokens/{address_hash_param}/counters: get: callbacks: {} description: Retrieves count statistics for a specific token, including holders count and transfers count. operationId: BlockScoutWeb.API.V2.TokenController.counters parameters: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/TokenCountersResponse' description: Count statistics for the specified token. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get holder and transfer count statistics for a specific token tags: - tokens /v2/config/indexer: get: callbacks: {} description: Returns config of indexer. operationId: BlockScoutWeb.API.V2.ConfigController.indexer parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: properties: block_reward_fetcher_enabled: type: boolean x-struct: x-validate: indexer_enabled: type: boolean x-struct: x-validate: internal_transactions_fetcher_enabled: type: boolean x-struct: x-validate: pending_transactions_fetcher_enabled: type: boolean x-struct: x-validate: token_instance_retry_fetcher_enabled: type: boolean x-struct: x-validate: token_instance_sanitize_fetcher_enabled: type: boolean x-struct: x-validate: type: object x-struct: x-validate: description: Indexer configuration. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Indexer configuration tags: - config /v2/config/smart-contracts/languages: get: callbacks: {} description: Returns list of smart contract languages supported by the database schema. operationId: BlockScoutWeb.API.V2.ConfigController.languages_list parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: properties: languages: items: $ref: '#/components/schemas/Language' type: array x-struct: x-validate: type: object x-struct: x-validate: description: Smart contract languages. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Smart contract languages list tags: - config /v2/tokens/{address_hash_param}/instances/{token_id_param}: get: callbacks: {} description: Retrieves detailed information about a specific NFT instance, identified by its token contract address and token ID. operationId: BlockScoutWeb.API.V2.TokenController.instance parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Token ID for ERC-721/1155/404 tokens in: path name: token_id_param required: true schema: $ref: '#/components/schemas/IntegerStringNullable' responses: '200': content: application/json: schema: $ref: '#/components/schemas/TokenInstance' description: Detailed information about the specified NFT instance. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Retrieve detailed information about a specific NFT tags: - tokens /v2/stats/charts/transactions: get: callbacks: {} description: Retrieves time series data of daily transaction counts for rendering charts. operationId: BlockScoutWeb.API.V2.StatsController.transactions_chart parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: properties: chart_data: items: type: object x-struct: x-validate: type: array x-struct: x-validate: type: object x-struct: x-validate: description: Time series data for transaction count charts. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get daily transaction counts tags: - stats /v2/addresses/{address_hash_param}/tabs-counters: get: callbacks: {} description: Retrieves counters for various address-related entities (max counter value is 51). operationId: BlockScoutWeb.API.V2.AddressController.tabs_counters parameters: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/AddressTabsCounters' description: Counters for address tabs. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get counters for address tabs tags: - addresses /v2/smart-contracts/: get: callbacks: {} description: Retrieves a paginated list of verified smart contracts with optional filtering by proxy status or programming language. operationId: BlockScoutWeb.API.V2.SmartContractController.smart_contracts_list parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: | Sort transactions by: * block_number - Sort by block number * value - Sort by transaction value * fee - Sort by transaction fee * balance - Sort by account balance * transactions_count - Sort by number of transactions on address * fiat_value - Sort by fiat value of the token transfer * holders_count - Sort by number of token holders * circulating_market_cap - Sort by circulating market cap of the token Should be used together with `order` parameter. in: query name: sort required: false schema: enum: - balance - transactions_count type: string x-struct: x-validate: - description: | Sort order: * asc - Ascending order * desc - Descending order Should be used together with `sort` parameter. in: query name: order required: false schema: enum: - asc - desc type: string x-struct: x-validate: - description: Search query filter in: query name: q required: false schema: nullable: true type: string x-struct: x-validate: - description: Filter to apply in: query name: filter required: false schema: $ref: '#/components/schemas/Language' - description: Smart-contract ID for paging in: query name: smart_contract_id required: false schema: type: integer x-struct: x-validate: - description: Coin balance for paging in: query name: coin_balance required: false schema: anyOf: - type: integer x-struct: x-validate: - $ref: '#/components/schemas/EmptyString' - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Address hash for paging in: query name: hash required: false schema: $ref: '#/components/schemas/AddressHash' - description: Transactions count for paging in: query name: transactions_count required: false schema: anyOf: - type: integer x-struct: x-validate: - $ref: '#/components/schemas/EmptyString' - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/SmartContract' nullable: false type: array x-struct: x-validate: next_page_params: example: items_count: 50 smart_contract_id: 1947801 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: List of verified smart contracts matching the filter criteria, with pagination. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List verified smart contracts with optional filtering options tags: - smart_contracts /v2/addresses/{address_hash_param}/coin-balance-history: get: callbacks: {} description: Retrieves historical native coin balance changes for a specific address, tracking how an address's balance has changed over time. operationId: BlockScoutWeb.API.V2.AddressController.coin_balance_history parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/CoinBalance' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 22546398 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Historical coin balance changes for the specified address, with pagination. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get native coin balance history for an address showing all balance changes tags: - addresses /v2/tokens/{address_hash_param}/instances/refetch-metadata: patch: callbacks: {} description: Triggers a metadata refetch for a token's NFT collection (by token address). Requires API key. operationId: BlockScoutWeb.API.V2.TokenController.trigger_nft_collection_metadata_refetch parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: API key required for sensitive endpoints in: header name: x-api-key required: false schema: type: string x-struct: x-validate: - description: API key required for sensitive endpoints in: query name: api_key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: properties: message: type: string x-struct: x-validate: type: object x-struct: x-validate: description: NFT collection metadata refetch triggered. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Trigger metadata refetch for a token's NFT collection tags: - tokens /v2/transactions/{transaction_hash_param}/state-changes: get: callbacks: {} description: Retrieves state changes (balance changes, token transfers) caused by a specific transaction. operationId: BlockScoutWeb.API.V2.TransactionController.state_changes parameters: - description: Transaction hash in the path in: path name: transaction_hash_param required: true schema: $ref: '#/components/schemas/FullHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: State changes for paging in: query name: state_changes required: false schema: nullable: true type: string x-struct: x-validate: - description: Cumulative number of items to skip for keyset-based pagination of state changes in: query name: items_count required: false schema: minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/StateChange' nullable: false type: array x-struct: x-validate: next_page_params: example: items_count: 50 state_changes: nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: State changes caused by the specified transaction, with pagination. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get on-chain state changes caused by a specific transaction tags: - transactions /v2/addresses/{address_hash_param}: get: callbacks: {} description: Retrieves detailed information for a specific address, including balance, transaction count, and metadata. operationId: BlockScoutWeb.API.V2.AddressController.address parameters: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/AddressResponse' description: Detailed information about the specified address. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Retrieve detailed information about a specific address or contract tags: - addresses /v2/blocks/{block_number_param}/countdown: get: callbacks: {} description: Calculates the estimated time remaining until a specified block number is reached based on current block and average block time. operationId: BlockScoutWeb.API.V2.BlockController.block_countdown parameters: - description: Block number in the path in: path name: block_number_param required: true schema: minimum: 0 type: integer x-struct: x-validate: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/BlockCountdown' description: Block countdown information. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get countdown information for a target block number tags: - blocks /v2/addresses: get: callbacks: {} description: Retrieves a paginated list of addresses holding the native coin, sorted by balance. operationId: BlockScoutWeb.API.V2.AddressController.addresses_list parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: | Sort transactions by: * block_number - Sort by block number * value - Sort by transaction value * fee - Sort by transaction fee * balance - Sort by account balance * transactions_count - Sort by number of transactions on address * fiat_value - Sort by fiat value of the token transfer * holders_count - Sort by number of token holders * circulating_market_cap - Sort by circulating market cap of the token Should be used together with `order` parameter. in: query name: sort required: false schema: enum: - balance - transactions_count type: string x-struct: x-validate: - description: | Sort order: * asc - Ascending order * desc - Descending order Should be used together with `sort` parameter. in: query name: order required: false schema: enum: - asc - desc type: string x-struct: x-validate: - description: Fetched coin balance for paging in: query name: fetched_coin_balance required: false schema: $ref: '#/components/schemas/IntegerStringNullable' - description: Address hash for paging in: query name: hash required: false schema: $ref: '#/components/schemas/AddressHash' - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: - description: Transactions count for paging in: query name: transactions_count required: false schema: anyOf: - type: integer x-struct: x-validate: - $ref: '#/components/schemas/EmptyString' - $ref: '#/components/schemas/NullString' x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: exchange_rate: $ref: '#/components/schemas/FloatStringNullable' items: items: additionalProperties: false description: Address properties: coin_balance: $ref: '#/components/schemas/IntegerStringNullable' ens_domain_name: description: ENS domain name associated with the address nullable: true type: string x-struct: x-validate: hash: $ref: '#/components/schemas/AddressHash' implementations: description: Implementations linked with the contract items: $ref: '#/components/schemas/Implementation' type: array x-struct: x-validate: is_contract: description: Has address contract code? nullable: true type: boolean x-struct: x-validate: is_scam: description: Has address scam badge? nullable: false type: boolean x-struct: x-validate: is_verified: description: Has address associated source code? nullable: true type: boolean x-struct: x-validate: metadata: allOf: - $ref: '#/components/schemas/Metadata' nullable: true x-struct: x-validate: name: description: Name associated with the address nullable: true type: string x-struct: x-validate: private_tags: description: Private tags associated with the address items: $ref: '#/components/schemas/Tag' type: array x-struct: x-validate: proxy_type: $ref: '#/components/schemas/ProxyType' public_tags: description: Public tags associated with the address items: $ref: '#/components/schemas/Tag' type: array x-struct: x-validate: reputation: description: Reputation of the address enum: - ok - scam nullable: false type: string x-struct: x-validate: transactions_count: anyOf: - $ref: '#/components/schemas/IntegerString' - $ref: '#/components/schemas/EmptyString' nullable: true x-struct: x-validate: watchlist_names: description: Watchlist name associated with the address items: $ref: '#/components/schemas/WatchlistName' type: array x-struct: x-validate: required: - hash - is_contract - name - is_scam - reputation - proxy_type - implementations - is_verified - ens_domain_name - metadata - coin_balance - transactions_count title: Address type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Address x-validate: nullable: false type: array x-struct: x-validate: next_page_params: example: fetched_coin_balance: '124355417998347240251800' hash: '0x59708733fbbf64378d9293ec56b977c011a08fd2' items_count: 50 transactions_count: nullable: true type: object x-struct: x-validate: total_supply: $ref: '#/components/schemas/FloatStringNullable' required: - items - next_page_params - exchange_rate - total_supply type: object x-struct: x-validate: description: List of native coin holders with their balances, with pagination. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden summary: List addresses holding native coins sorted by balance - top accounts tags: - addresses /v2/addresses/{address_hash_param}/withdrawals: get: callbacks: {} description: Retrieves withdrawals involving a specific address, typically for proof-of-stake networks supporting validator withdrawals. operationId: BlockScoutWeb.API.V2.AddressController.withdrawals parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/Withdrawal' nullable: false type: array x-struct: x-validate: next_page_params: example: index: 88192653 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Withdrawals for the specified address, with pagination. Note that receiver field is not included in this endpoint. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List validator withdrawals involving a specific address tags: - addresses /v2/internal-transactions: get: callbacks: {} description: Retrieves a paginated list of internal transactions. Internal transactions are generated during contract execution and not directly recorded on the blockchain. operationId: BlockScoutWeb.API.V2.InternalTransactionController.internal_transactions parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Transaction hash in the query in: query name: transaction_hash required: false schema: $ref: '#/components/schemas/FullHash' - description: Limit result items in the response in: query name: limit required: false schema: nullable: true type: integer x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Transaction index for paging in: query name: transaction_index required: false schema: type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/InternalTransaction' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 22133247 index: 50 items_count: 50 transaction_index: 68 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: List of internal transactions with pagination information. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List internal transactions generated during smart contract execution tags: - internal_transactions /v2/addresses/{address_hash_param}/coin-balance-history-by-day: get: callbacks: {} description: Retrieves daily snapshots of native coin balance for a specific address. Useful for generating balance-over-time charts. operationId: BlockScoutWeb.API.V2.AddressController.coin_balance_history_by_day parameters: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: days: nullable: false type: integer x-struct: x-validate: items: items: $ref: '#/components/schemas/CoinBalanceByDay' type: array x-struct: x-validate: type: object x-struct: x-validate: description: Daily coin balance history for the specified address. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get daily native coin balance snapshots for an address from previous 10 days tags: - addresses /v2/smart-contracts/counters: get: callbacks: {} description: Retrieves count statistics for smart contracts, including total contracts, verified contracts, and new contracts in the last 24 hours. operationId: BlockScoutWeb.API.V2.SmartContractController.smart_contracts_counters parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/Counters' description: Count statistics for smart contracts. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get count statistics (new & newly verified) for deployed smart contracts tags: - smart_contracts /v2/tokens/{address_hash_param}/instances/{token_id_param}/transfers-count: get: callbacks: {} description: Retrieves the total number of transfers for a specific NFT instance. Useful for determining how frequently an NFT has changed hands. operationId: BlockScoutWeb.API.V2.TokenController.transfers_count_by_instance parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Token ID for ERC-721/1155/404 tokens in: path name: token_id_param required: true schema: $ref: '#/components/schemas/IntegerStringNullable' responses: '200': content: application/json: schema: properties: transfers_count: type: integer x-struct: x-validate: type: object x-struct: x-validate: description: Total number of transfers for the specified NFT instance. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get total number of ownership transfers for a specific NFT tags: - tokens /v2/main-page/indexing-status: get: callbacks: {} description: Retrieves the current status of blockchain data indexing by the BlockScout instance. operationId: BlockScoutWeb.API.V2.MainPageController.indexing_status parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: properties: finished_indexing: type: boolean x-struct: x-validate: finished_indexing_blocks: type: boolean x-struct: x-validate: indexed_blocks_ratio: format: float type: number x-struct: x-validate: indexed_internal_transactions_ratio: format: float nullable: true type: number x-struct: x-validate: type: object x-struct: x-validate: description: Current blockchain indexing status. summary: Check if indexing is finished with indexing ratio tags: - main_page /v2/blocks/{block_hash_or_number_param}/transactions: get: callbacks: {} description: Retrieves transactions included in a specific block, ordered by transaction index. operationId: BlockScoutWeb.API.V2.BlockController.transactions parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Block hash or number in the path in: path name: block_hash_or_number_param required: true schema: anyOf: - type: integer x-struct: x-validate: - $ref: '#/components/schemas/FullHash' x-struct: x-validate: - description: | Filter by transaction type. Comma-separated list of: * token_transfer - Token transfer transactions * contract_creation - Contract deployment transactions * contract_call - Contract method call transactions * coin_transfer - Native coin transfer transactions * token_creation - Token creation transactions * blob_transaction - Only show blob transactions (Ethereum only) in: query name: type required: false schema: enum: - coin_transfer - contract_call - contract_creation - token_transfer - token_creation type: string x-struct: x-validate: - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/Transaction' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 12345678 index: 103 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Transactions in the specified block, with pagination. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List transactions and tx details included in a specific block tags: - blocks /v2/transactions/{transaction_hash_param}/summary: get: callbacks: {} description: Retrieves a human-readable summary of what a transaction did, presented in natural language. operationId: BlockScoutWeb.API.V2.TransactionController.summary parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Transaction hash in the path in: path name: transaction_hash_param required: true schema: $ref: '#/components/schemas/FullHash' - description: If true, returns only the request body in the summary endpoint in: query name: just_request_body required: false schema: type: boolean x-struct: x-validate: responses: '200': content: application/json: schema: anyOf: - $ref: '#/components/schemas/Summary' - $ref: '#/components/schemas/SummaryJustRequestBody' x-struct: x-validate: description: Human-readable summary of the specified transaction. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get a human-readable, LLM-based transaction summary tags: - transactions /v2/withdrawals/counters: get: callbacks: {} description: Returns total withdrawals count and sum from cache. operationId: BlockScoutWeb.API.V2.WithdrawalController.withdrawals_counters parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/Counter' description: Withdrawals counters. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Withdrawals counters tags: - withdrawals /v2/blocks: get: callbacks: {} description: Retrieves a paginated list of blocks with optional filtering by block type. operationId: BlockScoutWeb.API.V2.BlockController.blocks parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: | Filter by block type: * block - Standard blocks in the main chain * uncle - Uncle/ommer blocks (valid but not in main chain) * reorg - Blocks from chain reorganizations If omitted, default value "block" is used. in: query name: type required: false schema: enum: - uncle - reorg - block type: string x-struct: x-validate: - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/Block' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 22566361 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: List of blocks with pagination information. summary: List blocks with optional filtering by block type tags: - blocks /v2/tokens/{address_hash_param}/instances/{token_id_param}/refetch-metadata: patch: callbacks: {} description: Triggers a refresh of metadata for a specific NFT instance. Useful when the NFT's metadata has been updated but is not yet reflected in the BlockScout database. operationId: BlockScoutWeb.API.V2.TokenController.refetch_metadata parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Token ID for ERC-721/1155/404 tokens in: path name: token_id_param required: true schema: $ref: '#/components/schemas/IntegerStringNullable' - description: reCAPTCHA response token in: query name: recaptcha_response required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: properties: message: type: string x-struct: x-validate: type: object x-struct: x-validate: description: Metadata refresh has been successfully initiated. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Trigger a refresh of metadata for a specific NFT tags: - tokens /v2/addresses/{address_hash_param}/logs: get: callbacks: {} description: Retrieves event logs emitted by or involving a specific address. operationId: BlockScoutWeb.API.V2.AddressController.logs parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Log topic param in the query in: query name: topic required: false schema: $ref: '#/components/schemas/HexString' - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/Log' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 22546398 index: 268 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Event logs for the specified address, with pagination. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List event logs emitted by or involving a specific address tags: - addresses /v2/addresses/{address_hash_param}/internal-transactions/csv: get: callbacks: {} description: Exports internal transactions for a specific address as a CSV file. operationId: BlockScoutWeb.API.V2.CsvExportController.internal_transactions_csv parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Address hash in the query in: query name: address_id required: false schema: $ref: '#/components/schemas/AddressHash' - description: Start of the time period (ISO 8601 format) in CSV export in: query name: from_period required: true schema: anyOf: - nullable: false pattern: ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:T(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d(?:(?::|%3A)[0-5]\d(?:\.\d{1,9})?)?)?(?:Z|(?:\+|%2B|-)(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d)?)?)?$ type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: End of the time period (ISO 8601 format) In CSV export in: query name: to_period required: true schema: anyOf: - nullable: false pattern: ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:T(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d(?:(?::|%3A)[0-5]\d(?:\.\d{1,9})?)?)?(?:Z|(?:\+|%2B|-)(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d)?)?)?$ type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Filter type in CSV export in: query name: filter_type required: false schema: anyOf: - enum: - address nullable: true type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Filter value in CSV export in: query name: filter_value required: false schema: anyOf: - enum: - to - from nullable: true type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: responses: '200': content: application/csv: {} description: CSV file of internal transactions. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Export internal transactions as CSV tags: - addresses /v2/search/check-redirect: get: callbacks: {} description: Checks if a search query redirects to a specific entity page rather than showing search results. operationId: BlockScoutWeb.API.V2.SearchController.check_redirect parameters: - description: Search query filter in: query name: q required: false schema: nullable: true type: string x-struct: x-validate: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: properties: parameter: nullable: true type: string x-struct: x-validate: redirect: nullable: true type: boolean x-struct: x-validate: type: enum: - address - block - transaction - user_operation - blob nullable: true type: string x-struct: x-validate: type: object x-struct: x-validate: description: Response indicating whether the query should redirect to a specific entity page. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Check if search query should redirect to a specific entity page tags: - search /v2/transactions/stats: get: callbacks: {} description: Retrieves statistics for transactions, including counts and fee summaries for the last 24 hours. operationId: BlockScoutWeb.API.V2.TransactionController.stats parameters: [] responses: '200': content: application/json: schema: additionalProperties: false properties: pending_transactions_count: $ref: '#/components/schemas/IntegerString' transaction_fees_avg_24h: $ref: '#/components/schemas/IntegerString' transaction_fees_sum_24h: $ref: '#/components/schemas/IntegerString' transactions_count_24h: $ref: '#/components/schemas/IntegerString' required: - transactions_count_24h - pending_transactions_count - transaction_fees_sum_24h - transaction_fees_avg_24h type: object x-struct: x-validate: description: Transaction statistics. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get transaction statistics tags: - transactions /v2/config/public-metrics: get: callbacks: {} description: Returns update period / configuration for public metrics. operationId: BlockScoutWeb.API.V2.ConfigController.public_metrics parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: properties: update_period_hours: type: integer x-struct: x-validate: type: object x-struct: x-validate: description: Public metrics config. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Public metrics configuration tags: - config /v1/search: get: callbacks: {} description: Performs a unified search across multiple blockchain entity types including tokens, addresses, contracts, blocks, transactions and other resources. operationId: BlockScoutWeb.API.V2.SearchController.search parameters: - description: Search query filter in: query name: q required: false schema: nullable: true type: string x-struct: x-validate: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Next page params type for paging in: query name: next_page_params_type required: false schema: type: string x-struct: x-validate: - description: Label for paging in the search results in: query name: label required: false schema: type: object x-struct: x-validate: - description: Token for paging in the search results in: query name: token required: false schema: type: object x-struct: x-validate: - description: Contract for paging in the search results in: query name: contract required: false schema: type: object x-struct: x-validate: - description: TAC operation for paging in the search results in: query name: tac_operation required: false schema: type: object x-struct: x-validate: - description: Metadata tag for paging in the search results in: query name: metadata_tag required: false schema: type: object x-struct: x-validate: - description: Block for paging in the search results in: query name: block required: false schema: type: object x-struct: x-validate: - description: Blob for paging in the search results in: query name: blob required: false schema: type: object x-struct: x-validate: - description: User operation for paging in the search results in: query name: user_operation required: false schema: type: object x-struct: x-validate: - description: Address for paging in the search results in: query name: address required: false schema: type: object x-struct: x-validate: - description: ENS domain for paging in the search results in: query name: ens_domain required: false schema: type: object x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/SearchResult' description: |- Successful search response containing matched items and pagination information. Results are ordered by relevance and limited to 50 items per page. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Search for tokens, addresses, contracts, blocks, or transactions by identifier tags: - search /v2/transactions/{transaction_hash_param}/logs: get: callbacks: {} description: Retrieves event logs emitted during the execution of a specific transaction. Logs contain information about contract events and state changes. operationId: BlockScoutWeb.API.V2.TransactionController.logs parameters: - description: Transaction hash in the path in: path name: transaction_hash_param required: true schema: $ref: '#/components/schemas/FullHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/Log' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 21925703 index: 124 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Event logs for the specified transaction, with pagination. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List event logs emitted during a specific transaction tags: - transactions /v2/transactions/watchlist: get: callbacks: {} description: Retrieves transactions in the authenticated user's watchlist. operationId: BlockScoutWeb.API.V2.TransactionController.watchlist_transactions parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/TransactionResponse' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 23617990 index: 128 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Watchlist transactions. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List transactions in a user's watchlist tags: - transactions /v2/transactions/{transaction_hash_param}/internal-transactions: get: callbacks: {} description: Retrieves internal transactions generated during the execution of a specific transaction. Useful for analyzing contract interactions and debugging failed transactions. operationId: BlockScoutWeb.API.V2.TransactionController.internal_transactions parameters: - description: Transaction hash in the path in: path name: transaction_hash_param required: true schema: $ref: '#/components/schemas/FullHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Block number for paging in: query name: block_number required: false schema: minimum: 0 type: integer x-struct: x-validate: - description: Transaction index for paging in: query name: transaction_index required: false schema: type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/InternalTransaction' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 22133247 index: 50 items_count: 50 transaction_index: 68 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: Internal transactions for the specified transaction, with pagination. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List internal transactions triggered during a specific transaction tags: - transactions /v2/addresses/{address_hash_param}/logs/csv: get: callbacks: {} description: Exports logs for a specific address as a CSV file. operationId: BlockScoutWeb.API.V2.CsvExportController.logs_csv parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Address hash in the query in: query name: address_id required: false schema: $ref: '#/components/schemas/AddressHash' - description: Start of the time period (ISO 8601 format) in CSV export in: query name: from_period required: true schema: anyOf: - nullable: false pattern: ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:T(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d(?:(?::|%3A)[0-5]\d(?:\.\d{1,9})?)?)?(?:Z|(?:\+|%2B|-)(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d)?)?)?$ type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: End of the time period (ISO 8601 format) In CSV export in: query name: to_period required: true schema: anyOf: - nullable: false pattern: ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:T(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d(?:(?::|%3A)[0-5]\d(?:\.\d{1,9})?)?)?(?:Z|(?:\+|%2B|-)(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d)?)?)?$ type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Filter type in CSV export in: query name: filter_type required: false schema: anyOf: - enum: - address nullable: true type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Filter value in CSV export in: query name: filter_value required: false schema: anyOf: - enum: - to - from nullable: true type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: responses: '200': content: application/csv: {} description: CSV file of logs. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Export logs as CSV tags: - addresses /v2/withdrawals: get: callbacks: {} description: Retrieves a paginated list of withdrawals, typically for proof-of-stake networks supporting validator withdrawals. operationId: BlockScoutWeb.API.V2.WithdrawalController.withdrawals_list parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: type: integer x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/Withdrawal' nullable: false type: array x-struct: x-validate: next_page_params: example: index: 50 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: List of withdrawals with pagination. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List validator withdrawal details on proof-of-stake networks tags: - withdrawals /v2/search: get: callbacks: {} description: Performs a unified search across multiple blockchain entity types including tokens, addresses, contracts, blocks, transactions and other resources. operationId: BlockScoutWeb.API.V2.SearchController.search (2) parameters: - description: Search query filter in: query name: q required: false schema: nullable: true type: string x-struct: x-validate: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Next page params type for paging in: query name: next_page_params_type required: false schema: type: string x-struct: x-validate: - description: Label for paging in the search results in: query name: label required: false schema: type: object x-struct: x-validate: - description: Token for paging in the search results in: query name: token required: false schema: type: object x-struct: x-validate: - description: Contract for paging in the search results in: query name: contract required: false schema: type: object x-struct: x-validate: - description: TAC operation for paging in the search results in: query name: tac_operation required: false schema: type: object x-struct: x-validate: - description: Metadata tag for paging in the search results in: query name: metadata_tag required: false schema: type: object x-struct: x-validate: - description: Block for paging in the search results in: query name: block required: false schema: type: object x-struct: x-validate: - description: Blob for paging in the search results in: query name: blob required: false schema: type: object x-struct: x-validate: - description: User operation for paging in the search results in: query name: user_operation required: false schema: type: object x-struct: x-validate: - description: Address for paging in the search results in: query name: address required: false schema: type: object x-struct: x-validate: - description: ENS domain for paging in the search results in: query name: ens_domain required: false schema: type: object x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/SearchResult' description: |- Successful search response containing matched items and pagination information. Results are ordered by relevance and limited to 50 items per page. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Search for tokens, addresses, contracts, blocks, or transactions by identifier tags: - search /v2/addresses/{address_hash_param}/transactions: get: callbacks: {} description: Retrieves transactions involving a specific address, with optional filtering for transactions sent from or to the address. operationId: BlockScoutWeb.API.V2.AddressController.transactions parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: | Filter transactions by direction: * to - Only show transactions sent to this address * from - Only show transactions sent from this address If omitted, all transactions involving the address are returned. in: query name: filter required: false schema: enum: - to - from type: string x-struct: x-validate: - description: | Sort transactions by: * block_number - Sort by block number * value - Sort by transaction value * fee - Sort by transaction fee * balance - Sort by account balance * transactions_count - Sort by number of transactions on address * fiat_value - Sort by fiat value of the token transfer * holders_count - Sort by number of token holders * circulating_market_cap - Sort by circulating market cap of the token Should be used together with `order` parameter. in: query name: sort required: false schema: enum: - block_number - value - fee type: string x-struct: x-validate: - description: | Sort order: * asc - Ascending order * desc - Descending order Should be used together with `sort` parameter. in: query name: order required: false schema: enum: - asc - desc type: string x-struct: x-validate: - description: Block number for paging in: query name: block_number required: false schema: anyOf: - type: integer x-struct: x-validate: - $ref: '#/components/schemas/EmptyString' - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Transaction index for paging in: query name: index required: false schema: anyOf: - type: integer x-struct: x-validate: - $ref: '#/components/schemas/EmptyString' - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Inserted at timestamp for paging (ISO8601) in: query name: inserted_at required: false schema: format: date-time type: string x-struct: x-validate: - description: Transaction hash for paging in: query name: hash required: false schema: $ref: '#/components/schemas/FullHash' - description: Transaction value for paging in: query name: value required: false schema: $ref: '#/components/schemas/IntegerString' - description: Transaction fee for paging in: query name: fee required: false schema: $ref: '#/components/schemas/IntegerString' - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/Transaction' nullable: false type: array x-struct: x-validate: next_page_params: example: block_number: 22566361 fee: '19206937428000' hash: '0xe38d616dade747097354b0731b5560f581536dacf22121feb4bb4a0b776018aa' index: 103 inserted_at: 2025-05-26T10:26:51.474448Z items_count: 50 value: '24741049597737' nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: All transactions for the specified address. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List transactions involving a specific address with to-from filtering tags: - addresses /v2/transactions/{transaction_hash_param}/raw-trace: get: callbacks: {} description: Retrieves the raw execution trace for a transaction, showing the step-by-step execution path and all contract interactions. operationId: BlockScoutWeb.API.V2.TransactionController.raw_trace parameters: - description: Transaction hash in the path in: path name: transaction_hash_param required: true schema: $ref: '#/components/schemas/FullHash' - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: responses: '200': content: application/json: schema: $ref: '#/components/schemas/RawTrace' description: Raw execution trace for the specified transaction. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Get step-by-step execution trace for a specific transaction tags: - transactions /v2/addresses/{address_hash_param}/transactions/csv: get: callbacks: {} description: Exports transactions for a specific address as a CSV file. operationId: BlockScoutWeb.API.V2.CsvExportController.transactions_csv parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Address hash in the query in: query name: address_id required: false schema: $ref: '#/components/schemas/AddressHash' - description: Start of the time period (ISO 8601 format) in CSV export in: query name: from_period required: true schema: anyOf: - nullable: false pattern: ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:T(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d(?:(?::|%3A)[0-5]\d(?:\.\d{1,9})?)?)?(?:Z|(?:\+|%2B|-)(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d)?)?)?$ type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: End of the time period (ISO 8601 format) In CSV export in: query name: to_period required: true schema: anyOf: - nullable: false pattern: ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:T(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d(?:(?::|%3A)[0-5]\d(?:\.\d{1,9})?)?)?(?:Z|(?:\+|%2B|-)(?:[01]\d|2[0-3])(?:(?::|%3A)[0-5]\d)?)?)?$ type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Filter type in CSV export in: query name: filter_type required: false schema: anyOf: - enum: - address nullable: true type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: - description: Filter value in CSV export in: query name: filter_value required: false schema: anyOf: - enum: - to - from nullable: true type: string x-struct: x-validate: - $ref: '#/components/schemas/NullString' x-struct: x-validate: responses: '200': content: application/csv: {} description: CSV file of transactions. '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: Not Found '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: Export transactions as CSV tags: - addresses /v2/addresses/{address_hash_param}/nft/collections: get: callbacks: {} description: Retrieves NFTs owned by a specific address, organized by collection. Useful for displaying an address's NFT portfolio grouped by project. operationId: BlockScoutWeb.API.V2.AddressController.nft_collections parameters: - description: API key for rate limiting or for sensitive endpoints in: query name: apikey required: false schema: type: string x-struct: x-validate: - description: Secret key for getting access to restricted resources in: query name: key required: false schema: type: string x-struct: x-validate: - description: Address hash in the path in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: | Filter by token type. Comma-separated list of: * ERC-721 - Non-fungible tokens * ERC-1155 - Multi-token standard * ERC-404 - Hybrid fungible/non-fungible tokens Example: `ERC-721,ERC-1155` to show both NFT and multi-token transfers in: query name: type required: false schema: anyOf: - $ref: '#/components/schemas/EmptyString' - pattern: ^\[?(ERC-20|ERC-721|ERC-1155|ERC-404)(,(ERC-20|ERC-721|ERC-1155|ERC-404))*\]?$ type: string x-struct: x-validate: x-struct: x-validate: - description: Number of items returned per page in: query name: items_count required: false schema: maximum: 50 minimum: 1 type: integer x-struct: x-validate: - description: Token contract address hash for paging in: query name: token_contract_address_hash required: false schema: $ref: '#/components/schemas/AddressHash' - description: Token type for paging in: query name: token_type required: false schema: $ref: '#/components/schemas/Type' responses: '200': content: application/json: schema: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/NFTCollection' nullable: false type: array x-struct: x-validate: next_page_params: example: items_count: 50 token_contract_address_hash: '0x1ffe11b9fb7f6ff1b153ab8608cf403ecaf9d44a' token_type: ERC-721 nullable: true type: object x-struct: x-validate: required: - items - next_page_params type: object x-struct: x-validate: description: NFTs owned by the specified address, grouped by collection, with pagination. '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponse' description: Forbidden '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List NFTs owned by an address grouped by collection/project tags: - addresses security: [] servers: - url: http://localhost/api variables: {} tags: []