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

getPrimaryAccount

Wallet GatewayAsync dApp APIgetPrimaryAccount

Async dApp API

getPrimaryAccount

JSON-RPCSince 0.24.0
POSTJSON-RPC getPrimaryAccount

Protocol Details

Inputs

Outputs

result

primarystringrequired
partyIdstringrequired
statusstringrequired
hintstringrequired
publicKeystringrequired
namespacestringrequired
networkIdstringrequired
signingProviderIdstringrequired

Wallet

primarystringrequired
partyIdstringrequired
statusstringrequired
hintstringrequired
publicKeystringrequired
namespacestringrequired
networkIdstringrequired
signingProviderIdstringrequired
cURL
cURL
curl \
  <JSON_RPC_URL> \
  -H 'content-type: application/json' \
  --data @- <<'EOF'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getPrimaryAccount"
}
EOF
Resultapplication/json
Result
{
  "primary": "<boolean>",
  "partyId": "<string>",
  "status": "<string>",
  "hint": "<string>",
  "publicKey": "<string>",
  "namespace": "<string>",
  "networkId": "<string>",
  "signingProviderId": "<string>"
}