curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "info.getBlockchainID",
"params": {}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Returns the blockchain ID given its alias (e.g., “X”, “C”, or “P”).
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "info.getBlockchainID",
"params": {}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
info.getBlockchainID:params.alias: The alias of the blockchain.Show properties
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "info.getBlockchainID",
"params": {}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Was this page helpful?