Skip to main content
GET
/
{chain_id}
/
api
/
v2
/
arbitrum
/
messages
/
{direction}
/
count
Get cross-chain messages count.
curl --request GET \
  --url https://api.blockscout.com/{chain_id}/api/v2/arbitrum/messages/{direction}/count \
  --header 'Authorization: Bearer <token>'
1

Authorizations

Authorization
string
header
required

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

Path Parameters

direction
enum<string>
required

Message direction: from-rollup for Rollup to Parent chain, to-rollup for Parent chain to Rollup.

Available options:
from-rollup,
to-rollup
chain_id
string
required

The ID of the blockchain

Response

Total count of cross-chain messages for the specified direction.

The response is of type integer.

Required range: x >= 0