Skip to main content
POST
/
api
/
solscan
/
blocks
/solscan/blocks
curl --request POST \
  --url https://api.anysite.io/api/solscan/blocks \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "block": 123,
  "timeout": 300
}
'
[
  {
    "slot": 123,
    "@type": "SolscanBlock",
    "block_height": 123,
    "block_time": 123,
    "blockhash": "<string>",
    "parent_slot": 123,
    "previous_blockhash": "<string>",
    "validator": "<string>",
    "epoch": 123,
    "transaction_count": 123,
    "fee_rewards": 123,
    "vote_rewards": 123,
    "mev_rewards": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
block
integer
required

Block slot number

Example:

429278270

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

slot
integer
required
@type
string
default:SolscanBlock
block_height
integer | null
block_time
integer | null
blockhash
string | null
parent_slot
integer | null
previous_blockhash
string | null
validator
string | null
epoch
integer | null
transaction_count
integer | null
fee_rewards
integer | null
vote_rewards
integer | null
mev_rewards
integer | null