getPrimaryAccount
POST
JSON-RPC getPrimaryAccountProtocol Details
ProtocolJSON-RPC
TransportHTTP POST
MethodgetPrimaryAccount
Parameters0
Resultobject
Inputs
Outputs
result
Shapeobject
SchemaWallet
Requiredhint, namespace, networkId, partyId, primary, publicKey, rights, signingProviderId, status
primarystringrequiredpartyIdstringrequiredstatusstringrequiredhintstringrequiredpublicKeystringrequirednamespacestringrequirednetworkIdstringrequiredsigningProviderIdstringrequiredRelated Schemas
Wallet
Wallet
primarystringrequiredpartyIdstringrequiredstatusstringrequiredhintstringrequiredpublicKeystringrequirednamespacestringrequirednetworkIdstringrequiredsigningProviderIdstringrequiredcURL
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>"
}