{"uid":"cap_mYnOvtpryKJ6ja_7jtW2n","slug":"blockscout-optimism-batch-transactions-lookup-fe6e802d","name":"Blockscout Optimism Batch Transactions Lookup","description":"Explore crypto activities with Blockscout's multichain search. Find transactions, addresses, tokens, and dapps across top blockchain networks — your go-to explorer for cross-chain blockchain data","url":"https://api.blockscout.com/%7Bchain_id%7D/api/v2/transactions/optimism-batch/%7Bbatch_number_param%7D","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","properties":{"chain_id":{"type":"string"},"batch_number_param":{"type":"integer"}}},"queryParams":{"type":"object","properties":{"index":{"type":"integer"},"items_count":{"type":"integer"},"block_number":{"type":"integer"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"items":[{"to":{},"fee":{"type":"string","value":"string"},"from":{"hash":"string","name":"string","is_scam":true,"metadata":{},"proxy_type":"string","reputation":"string","is_contract":true,"is_verified":true,"public_tags":[{"label":"string","address_hash":"string","display_name":"string"}],"private_tags":[{"label":"string","address_hash":"string","display_name":"string"}],"ens_domain_name":"string","implementations":[{"name":"string","address_hash":"string"}],"watchlist_names":[{"label":"string","display_name":"string"}]},"hash":"string","type":0,"nonce":0,"value":"string","method":"string","result":{},"status":"string","arbitrum":{"status":"string","poster_fee":"string","network_fee":"string","batch_number":0,"gas_used_for_l1":"string","gas_used_for_l2":"string","contains_message":"string","batch_data_container":"string","message_related_info":{"message_id":0,"message_status":"string","associated_l1_transaction_hash":"string"},"commitment_transaction":{"hash":"string","status":"string","timestamp":"string"},"confirmation_transaction":{"hash":"string","status":"string","timestamp":"string"}},"gas_used":"string","position":0,"gas_limit":"string","gas_price":"string","raw_input":"string","timestamp":"string","block_number":0,"priority_fee":"string","confirmations":0,"decoded_input":{},"exchange_rate":"string","revert_reason":{},"max_fee_per_gas":"string","token_transfers":[{"to":{"hash":"string","name":"string","is_scam":true,"metadata":{},"proxy_type":"string","reputation":"string","is_contract":true,"is_verified":true,"public_tags":[{"label":"string","address_hash":"string","display_name":"string"}],"private_tags":[{"label":"string","address_hash":"string","display_name":"string"}],"ens_domain_name":"string","implementations":[{"name":"string","address_hash":"string"}],"watchlist_names":[{"label":"string","display_name":"string"}]},"from":{"hash":"string","name":"string","is_scam":true,"metadata":{},"proxy_type":"string","reputation":"string","is_contract":true,"is_verified":true,"public_tags":[{"label":"string","address_hash":"string","display_name":"string"}],"private_tags":[{"label":"string","address_hash":"string","display_name":"string"}],"ens_domain_name":"string","implementations":[{"name":"string","address_hash":"string"}],"watchlist_names":[{"label":"string","display_name":"string"}]},"type":"string","token":{"name":"string","type":{},"symbol":"string","decimals":"string","icon_url":"string","reputation":"string","volume_24h":"string","bridge_type":"string","address_hash":"string","total_supply":"string","exchange_rate":"string","holders_count":"string","foreign_address":"string","origin_chain_id":"string","circulating_supply":"string","circulating_market_cap":"string"},"total":{},"method":"string","log_index":0,"timestamp":"string","block_hash":"string","token_type":"string","block_number":0,"transaction_hash":"string"}],"transaction_tag":"string","base_fee_per_gas":"string","created_contract":{},"is_pending_update":true,"transaction_types":["string"],"authorization_list":[{"r":"string","s":"string","v":0,"nonce":"string","status":"string","chain_id":0,"authority":"string","address_hash":"string"}],"fhe_operations_count":0,"confirmation_duration":[0],"transaction_burnt_fee":"string","historic_exchange_rate":"string","max_priority_fee_per_gas":"string","token_transfers_overflow":true,"has_error_in_internal_transactions":true}],"next_page_params":{}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zDtOrVE-YHcU2THPGl7m3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves all transactions included in a specific Optimism batch number on a given blockchain network via Blockscout's multichain explorer API","exampleAgentPrompt":"Show me all the transactions included in Optimism batch number 42000 on the Optimism mainnet chain using Blockscout.","exampleUseCases":[{"title":"Audit L2 batch contents for compliance","prompt":"Pull all transactions from Optimism batch number 87654 on Optimism mainnet — I need to audit which addresses sent funds and what fees were paid for each tx in that batch."},{"title":"Debug a missing transaction in rollup","prompt":"I submitted a transaction that should be in Optimism batch 12300 on chain optimism — can you fetch the full list of transactions in that batch so I can confirm mine was included?"},{"title":"Analyze gas costs across a batch","prompt":"Retrieve all transactions from Optimism batch 55100 on Optimism so I can compare gas prices and fees paid by different senders in that batch submission."}],"resultDescription":"Returns a paginated list of transactions included in the specified Optimism batch, each with full details including hash, from/to addresses, status, gas used, gas price, fee, token transfers, decoded input data, timestamp, block number, and Optimism-specific metadata such as batch number, poster fee, network fee, gas used for L1/L2, commitment and confirmation transaction hashes, and message-related info.","failureModes":["Invalid or unknown chain_id returns 404 or empty result","Non-existent batch number returns empty items array","Malformed batch_number_param (non-integer) returns 400 Bad Request","Rate limiting or payment failure returns 402 Payment Required","Chain not supported by Blockscout returns error or no data","Pagination parameters out of range return empty page"],"whenToPreferThis":"Use this endpoint when you need to enumerate all transactions within a specific Optimism rollup batch on a Blockscout-indexed chain. Prefer this over general transaction search when you already know the batch number and want a complete list of its included transactions, especially for auditing, debugging L2 submissions, or analyzing batch-level gas costs. It is specifically suited for Optimism batch data, not Arbitrum or other rollup schemes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:46:07.598Z","isFirstParty":false}