--- 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: AddressNFTCollectionsPaginatedResponse: 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 title: AddressNFTCollectionsPaginatedResponse type: object x-struct: 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: AddressCoinBalanceHistoryByDay: 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: title: AddressCoinBalanceHistoryByDay type: object x-struct: x-validate: TokenTransfersPaginatedResponse: 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 title: TokenTransfersPaginatedResponse type: object x-struct: 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: 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: AddressTokenBalances: items: $ref: '#/components/schemas/TokenBalance' title: AddressTokenBalances type: array x-struct: x-validate: TokenInstanceTransfersPaginatedResponse: 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 title: TokenInstanceTransfersPaginatedResponse type: object x-struct: x-validate: BlocksPaginatedResponse: 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 title: BlocksPaginatedResponse type: object x-struct: x-validate: AddressCoinBalanceHistoryPaginatedResponse: 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 title: AddressCoinBalanceHistoryPaginatedResponse type: object x-struct: x-validate: AddressTransactionsPaginatedResponse: 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 title: AddressTransactionsPaginatedResponse type: object x-struct: 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: TokensPaginatedResponse: 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 title: TokensPaginatedResponse type: object x-struct: x-validate: AddressInternalTransactionsPaginatedResponse: 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 title: AddressInternalTransactionsPaginatedResponse type: object x-struct: 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: - 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: 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: BlockTransactionsPaginatedResponse: 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 title: BlockTransactionsPaginatedResponse type: object x-struct: 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: AddressWithdrawalsPaginatedResponse: 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 title: AddressWithdrawalsPaginatedResponse type: object x-struct: x-validate: AddressListPaginatedResponse: 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: AddressWithCoinBalanceAndTransactionsCount 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 title: AddressListPaginatedResponse type: object x-struct: 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: AddressBlocksValidatedPaginatedResponse: 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 title: AddressBlocksValidatedPaginatedResponse type: object x-struct: x-validate: Block: additionalProperties: false properties: base_fee_per_gas: $ref: '#/components/schemas/IntegerStringNullable' bitcoin_merged_mining_coinbase_transaction: $ref: '#/components/schemas/HexString' bitcoin_merged_mining_header: $ref: '#/components/schemas/HexString' bitcoin_merged_mining_merkle_proof: $ref: '#/components/schemas/HexString' 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' hash_for_merged_mining: $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' minimum_gas_price: $ref: '#/components/schemas/IntegerString' 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: 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: 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: BlockInternalTransactionsPaginatedResponse: additionalProperties: false nullable: false properties: items: items: $ref: '#/components/schemas/InternalTransaction' nullable: false type: array x-struct: x-validate: next_page_params: example: block_index: 8 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params title: BlockInternalTransactionsPaginatedResponse type: object x-struct: 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' bitcoin_merged_mining_coinbase_transaction: $ref: '#/components/schemas/HexString' bitcoin_merged_mining_header: $ref: '#/components/schemas/HexString' bitcoin_merged_mining_merkle_proof: $ref: '#/components/schemas/HexString' 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' hash_for_merged_mining: $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' minimum_gas_price: $ref: '#/components/schemas/IntegerString' 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: 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: 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: TokenHoldersPaginatedResponse: 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 title: TokenHoldersPaginatedResponse type: object x-struct: 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: - 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: TokenInstancesPaginatedResponse: 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 title: TokenInstancesPaginatedResponse type: object x-struct: x-validate: TokenInstanceHoldersPaginatedResponse: 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 title: TokenInstanceHoldersPaginatedResponse type: object x-struct: 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: AddressTokenTransfersPaginatedResponse: 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 title: AddressTokenTransfersPaginatedResponse type: object x-struct: 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: BlockWithdrawalsPaginatedResponse: 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 title: BlockWithdrawalsPaginatedResponse type: object x-struct: x-validate: AddressWithCoinBalanceAndTransactionsCount: 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: AddressWithCoinBalanceAndTransactionsCount type: object x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Address 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: 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: 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: AddressNFTsPaginatedResponse: 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 title: AddressNFTsPaginatedResponse type: object x-struct: 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: 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: AddressTokensPaginatedResponse: 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 title: AddressTokensPaginatedResponse type: object x-struct: x-validate: AddressLogsPaginatedResponse: 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 title: AddressLogsPaginatedResponse type: object x-struct: 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: 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.2.1 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: - 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: Block index for paging in: query name: block_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_index: 8 items_count: 50 nullable: true type: object x-struct: x-validate: required: - items - next_page_params title: BlockInternalTransactionsPaginatedResponse 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, including metadata and statistics. operationId: BlockScoutWeb.API.V2.TokenController.token parameters: - 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/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: - in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - 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/tokens/: get: callbacks: {} description: Retrieves a paginated list of tokens with optional filtering and sorting. 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: 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: - 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 title: TokensPaginatedResponse type: object x-struct: x-validate: description: List of tokens. '422': content: application/json: schema: $ref: '#/components/schemas/JsonErrorResponse' description: Unprocessable Entity summary: List tokens with optional filtering and sorting 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: - in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - 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: - 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' title: AddressTokenBalances 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 validator withdrawals included in a specific block. 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: - 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 title: BlockWithdrawalsPaginatedResponse type: object x-struct: x-validate: description: Withdrawals 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 withdrawals in a specific block tags: - blocks /v2/tokens/{address_hash_param}/holders: get: callbacks: {} description: Retrieves holders for a specific token, with optional filtering and pagination. 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: - 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 title: TokenHoldersPaginatedResponse type: object x-struct: x-validate: description: List 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: List holders for a specific token 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: - 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: Retrieve detailed information about a specific block 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: - 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 title: AddressTokensPaginatedResponse 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/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: - 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 title: AddressTokenTransfersPaginatedResponse 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: - 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 title: AddressNFTsPaginatedResponse 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/tokens/{address_hash_param}/instances: get: callbacks: {} description: Retrieves all instances of a specific token, including holders and balances. 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: - in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - 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 title: TokenInstancesPaginatedResponse type: object x-struct: x-validate: description: List of token instances. '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 all instances of a specific token tags: - tokens /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: - 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 title: AddressBlocksValidatedPaginatedResponse 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: - 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 title: AddressInternalTransactionsPaginatedResponse 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/tokens/{address_hash_param}/transfers: get: callbacks: {} description: Retrieves token transfers for a specific token, with optional filtering and pagination. 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: - 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 title: TokenTransfersPaginatedResponse type: object x-struct: x-validate: description: List 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: List token transfers for a specific token tags: - tokens /v2/tokens/{address_hash_param}/instances/{token_id_param}/holders: get: callbacks: {} description: Retrieves holders for a specific token instance (by token address and 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: - 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 title: TokenInstanceHoldersPaginatedResponse type: object x-struct: x-validate: description: List of token holders for the 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: List holders for a specific token instance tags: - tokens /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: - 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 title: TokenInstanceTransfersPaginatedResponse type: object x-struct: x-validate: description: List of token transfers for the 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: List token transfers for a specific token instance tags: - tokens /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: - 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 token, including transfers, holders, and other metrics. operationId: BlockScoutWeb.API.V2.TokenController.counters parameters: - 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 activity count stats for a specific token tags: - tokens /v2/tokens/{address_hash_param}/instances/{token_id_param}: get: callbacks: {} description: Retrieves details for a specific token instance by token 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: - 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: Details for the token 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 details for a specific token instance tags: - tokens /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: - 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/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: - 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 title: AddressCoinBalanceHistoryPaginatedResponse 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: - 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/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: - 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: - 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: AddressWithCoinBalanceAndTransactionsCount 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 title: AddressListPaginatedResponse 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: - 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 title: AddressWithdrawalsPaginatedResponse 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/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: - 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: title: AddressCoinBalanceHistoryByDay 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/tokens/{address_hash_param}/instances/{token_id_param}/transfers-count: get: callbacks: {} description: Retrieves the number of transfers for a specific token instance (by token address and token ID). 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: - 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: Transfer count for the 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 transfer count for a specific token instance tags: - tokens /v2/blocks/{block_hash_or_number_param}/transactions: get: callbacks: {} description: Retrieves transactions included in a specific block with optional filtering and sorting. 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: - 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 transactions by type: * coin_transfer - Only show coin transfer transactions * contract_call - Only show contract call transactions * contract_creation - Only show contract creation transactions * token_transfer - Only show token transfer transactions * token_creation - Only show 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 title: BlockTransactionsPaginatedResponse type: object x-struct: x-validate: description: 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 transactions in a specific block tags: - blocks /v2/blocks: get: callbacks: {} description: Retrieves a paginated list of blocks with optional filtering by block type and sorting options. 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: * reorg - Only show reorgs * uncle - Only show uncle blocks * block - Only show main blocks 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 title: BlocksPaginatedResponse type: object x-struct: x-validate: description: List of blocks with pagination. summary: List blocks with optional filtering and sorting tags: - blocks /v2/tokens/{address_hash_param}/instances/{token_id_param}/refetch-metadata: patch: callbacks: {} description: Triggers a metadata refetch for a specific token instance (by token address and token ID). 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: - 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 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 specific token instance 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: - in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - description: Filter logs by topic 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 title: AddressLogsPaginatedResponse 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: - in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - 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/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: - in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - 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/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: - 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 title: AddressTransactionsPaginatedResponse 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/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: - in: path name: address_hash_param required: true schema: $ref: '#/components/schemas/AddressHash' - 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: - 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 title: AddressNFTCollectionsPaginatedResponse 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: []