> ## 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.

# Sync dApp API

> An OpenRPC specification for the dapp to interact with a Wallet Provider.

[Back to overview](https://docs.canton.network/reference/wallet-gateway-json-rpc/overview.md)

OpenRPC Spec

# Sync dApp API

An OpenRPC specification for the dapp to interact with a Wallet Provider.

JSON-RPC

[Added 1.4.0](#history-added-1-4-0)

[Updated 1.12.0](#history-updated-1-12-0)

Latest source path
api-specs/openrpc-dapp-api.json

Publish version
1.16.0

OpenRPC version
1.2.6

Spec info.version
0.5.0

## Methods

Method pages are the primary reference surface. This spec page stays focused on grouping and discovery.

[accountsChanged](https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/accountschanged.md)

JSON-RPC

Parameters
0

Result
array\[object]

[connect](https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/connect.md)

JSON-RPC

Ensures ledger connectivity and returns the connected network information along with the session information.

Parameters
0

Result
object

[disconnect](https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/disconnect.md)

JSON-RPC

Invoke a disconnect of the wallet provider session.

Parameters
0

Result
null

[getActiveNetwork](https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/getactivenetwork.md)

JSON-RPC

Returns the active network.

Parameters
0

Result
object

[getPrimaryAccount](https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/getprimaryaccount.md)

JSON-RPC

Returns the primary account.

Parameters
0

Result
object

[isConnected](https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/isconnected.md)

JSON-RPC

Added 0.26.0

Returns the connection status and the connected network information.

Parameters
0

Result
object

[ledgerApi](https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/ledgerapi.md)

JSON-RPC

Proxy for the JSON-API endpoints. Injects authorization headers automatically.

Parameters
1

Result
object

[listAccounts](https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/listaccounts.md)

JSON-RPC

Lists the addresses (wallets) with their properties; including which network they are associated to and with signing provider is used.

Parameters
0

Result
array\[object]

[messageSignature](https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/messagesignature.md)

JSON-RPC

Added 1.4.0

Parameters
0

Result
oneOf

[prepareExecute](https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/prepareexecute.md)

JSON-RPC

Updated 1.4.0

Prepares a transaction for subsequent signing & execution.

Parameters
1

Result
null

[prepareExecuteAndWait](https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/prepareexecuteandwait.md)

JSON-RPC

Updated 1.4.0

Like prepareExecute, but waits for the transaction to be executed on the ledger.

Parameters
1

Result
object

[signMessage](https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/signmessage.md)

JSON-RPC

Signs a message.

Parameters
1

Result
object

[status](https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/status.md)

JSON-RPC

Updated 1.12.0

Returns the current status of the wallet provider session.

Parameters
0

Result
object

[txChanged](https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/txchanged.md)

JSON-RPC

Parameters
0

Result
oneOf

## History

Updated
`1.12.0`

status: The method was updated in this snapshot.

Updated
`1.4.0`

prepareExecute: The method was updated in this snapshot.

prepareExecuteAndWait: The method was updated in this snapshot.

Added
`1.4.0`

Added
`0.26.0`
