> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# getPrimaryAccount

Wallet Gateway

›

[Sync dApp API](https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/dapp-api.md)

›

getPrimaryAccount

Sync dApp API

# getPrimaryAccount

JSON-RPC

POST

`JSON-RPC getPrimaryAccount`

## Protocol Details

Protocol
JSON-RPC

Transport
HTTP POST

Method
getPrimaryAccount

Parameters
0

Result
object

## Inputs

## Outputs

### result

Shape
object

Schema
Wallet

Required
hint, namespace, networkId, partyId, primary, publicKey, signingProviderId, status

`primary`
string

required

`partyId`
string

required

`status`
string

required

`hint`
string

required

`publicKey`
string

required

`namespace`
string

required

`networkId`
string

required

`signingProviderId`
string

required

## Related Schemas

> [accordion] Wallet
>
> `primary`
> string
>
> required
>
> `partyId`
> string
>
> required
>
> `status`
> string
>
> required
>
> `hint`
> string
>
> required
>
> `publicKey`
> string
>
> required
>
> `namespace`
> string
>
> required
>
> `networkId`
> string
>
> required
>
> `signingProviderId`
> string
>
> required

cURL

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl \
  <JSON_RPC_URL> \
  -H 'content-type: application/json' \
  --data @- <<'EOF'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getPrimaryAccount"
}
EOF
```

Result

application/json

```json Result theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "primary": "<boolean>",
  "partyId": "<string>",
  "status": "<string>",
  "hint": "<string>",
  "publicKey": "<string>",
  "namespace": "<string>",
  "networkId": "<string>",
  "signingProviderId": "<string>"
}
```
