๐๏ธ API/RPC
API: https://api.polkadot.validexis.com
RPC: https://rpc.polkadot.validexis.com
Example Requests
To make working with the API and RPC easier, here are some examples of their usage.
Example API Request (Fetching Latest Block Information)
Using curl
to request the latest block:
curl -X GET "https://api.polkadot.validexis.com/block/last" -H "Accept: application/json"
Response:
{
"block_number": 1234567,
"hash": "0xabcdef1234567890...",
"timestamp": "2025-03-01T16:00:00Z"
}
Example RPC Request (Getting Network Name)
Using curl
to send an RPC request:
curl -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "system_chain",
"params": [],
"id": 1
}' https://rpc.polkadot.validexis.com
Response:
{
"jsonrpc": "2.0",
"result": "Polkadot",
"id": 1
}
Last updated