Skip to content
Documentation/canton-network-docs/dApp APISync dApp APIView on canton-network-docs
canton-network-docs/dApp APISync dApp API

getActiveNetwork

Wallet GatewaySync dApp APIgetActiveNetwork

Sync dApp API

getActiveNetwork

JSON-RPCSince 0.24.0
POSTJSON-RPC getActiveNetwork

Protocol Details

Inputs

Outputs

result

networkIdstringrequired

Network

networkIdstringrequired
cURL
cURL
curl \
  <JSON_RPC_URL> \
  -H 'content-type: application/json' \
  --data @- <<'EOF'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getActiveNetwork"
}
EOF
Resultapplication/json
Result
{
  "networkId": "<string>"
}