Skip to main content
GET
/
{chain_id}
/
api
/
v2
/
main-page
/
optimism-deposits
List deposits on the main page.
curl --request GET \
  --url https://api.blockscout.com/{chain_id}/api/v2/main-page/optimism-deposits \
  --header 'Authorization: Bearer <token>'
[
  {
    "l1_block_number": 123,
    "l1_block_timestamp": "2023-11-07T05:31:56Z",
    "l1_transaction_hash": "<string>",
    "l2_transaction_hash": "<string>"
  }
]

Authorizations

Authorization
string
header
required

API key passed as a Bearer token in the Authorization header.

Path Parameters

chain_id
string
required

The ID of the blockchain

Response

List of deposits on the main page.

l1_block_number
integer
required
l1_block_timestamp
string<date-time>
required
l1_transaction_hash
string
required
Pattern: ^0x([A-Fa-f0-9]{64})$
l2_transaction_hash
string
required
Pattern: ^0x([A-Fa-f0-9]{64})$