๐๏ธ API/RPC
API: https://api.ksm.validexis.com
RPC: https://rpc.ksm.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 for Kusama)
Using curl
to request the latest block:
curl -X GET "https://api.ksm.validexis.com/block/last" -H "Accept: application/json"
Response:
{
"block_number": 9876543,
"hash": "0x123456abcdef7890...",
"timestamp": "2025-03-01T16:00:00Z"
}
Example RPC Request (Getting Network Name for Kusama)
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.ksm.validexis.com
Response:
jsonะะพะฟะธัะพะฒะฐััะ ะตะดะฐะบัะธัะพะฒะฐัั{
"jsonrpc": "2.0",
"result": "Kusama",
"id": 1
}
Last updated