Bware Docs
Home
Twitter
Linkedin
Telegram
Search…
About Bware Labs Decentralized API
API Docs
Ethereum API
Binance Smart Chain API
Avalanche API
Moonbeam/Moonriver API
Astar/Shiden APIs
Fantom API
Polkadot API
RPC
chain_getBlock
chain_getHeader
system_chainType
state_getMetadata
Websockets
Elrond API
Tutorials
Using Bware Labs Platform
Using Bware Labs Endpoint in PolkadotJs
Using Bware Labs Endpoint in Metamask
Using a Bware Labs endpoint in code
Powered By
GitBook
system_chainType
Retrieves the chain type
Parameters
None
Returns
The type of the current chain
Example
1
// Request
2
curl
-H
"Content-Type: application/json"
-d
'{"id":1, "jsonrpc":"2.0", "method": "system_chainType"}'
https://polkadot-api.bwarelabs.com/
<
your-endpoint-id
>
3
4
// Response
5
{
6
"jsonrpc"
:
"2.0"
,
7
"result"
:
"Live"
,
8
"id"
:1
9
}
Copied!
Previous
chain_getHeader
Next
state_getMetadata
Last modified
4mo ago
Copy link
Contents
Parameters
Example