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

# User API

> An OpenRPC specification for the user to interact with the Wallet Gateway.

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

OpenRPC Spec

# User API

An OpenRPC specification for the user to interact with the Wallet Gateway.

JSON-RPC

[Added 1.14.0](#history-added-1-14-0)

[Updated 1.16.0](#history-updated-1-16-0)

[Methods removed in 1.14.0](#history-removed-1-14-0)

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

Publish version
1.16.0

OpenRPC version
1.2.6

Spec info.version
0.1.0

## Methods

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

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

JSON-RPC

Updated 1.14.0

Adds a new identity provider. Fails for identity providers managed by the config file.

Parameters
1

Result
null

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

JSON-RPC

Updated 1.14.0

Adds a new network configuration (similar to EIP-3085). Fails for networks managed by the config file.

Parameters
1

Result
null

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

JSON-RPC

Updated 1.14.0

Adds a network session. The client secrets of the session network are returned empty.

Parameters
1

Result
object

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

JSON-RPC

Allocates a party for an already initialized wallet if external signing is complete.

Parameters
1

Result
object

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

JSON-RPC

Added 1.12.0

Polls the signing provider, allocates the party, and grants ledger-user rights when signing is complete.

Parameters
1

Result
object

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

JSON-RPC

Added 1.10.0

Change signing provider for the specified party

Parameters
1

Result
null

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

JSON-RPC

Added 1.12.0

Creates a ledger user and topology transactions signing request.

Parameters
1

Result
object

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

JSON-RPC

Updated 1.12.0

Creates a new wallet and party with the given hint.

Parameters
1

Result
object

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

JSON-RPC

Added 1.4.0

Updated 1.13.0

Rejects a message signing request with status pending or awaiting-signature.

Parameters
1

Result
null

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

JSON-RPC

Updated 0.27.0

Deletes a pending transaction. Only transactions with status 'pending' can be deleted.

Parameters
1

Result
null

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

JSON-RPC

Updated 1.12.0

Executes a signed transaction.

Parameters
1

Result
object

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

JSON-RPC

Added 1.5.0

Updated 1.16.0

Generates a new API key for the current user and network. Fails if the network has no service account auth configured.

Parameters
1

Result
object

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

JSON-RPC

Added 1.4.0

Gets a pending message signing request.

Parameters
1

Result
object

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

JSON-RPC

Added 1.4.0

Updated 1.14.0

Returns full network configuration including auth details. Admin only. The client secrets of networks managed by the config file are returned empty.

Parameters
1

Result
object

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

JSON-RPC

Added 1.13.0

Returns the ledger-user and wallet state needed to select the self-issued login path.

Parameters
1

Result
object

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

JSON-RPC

Added 1.14.0

Returns information for server administrators, such as notices about deprecated configuration. Only available to the admin user.

Parameters
0

Result
object

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

JSON-RPC

Added 1.13.0

Polls the signing provider for a message awaiting an external signature and updates the stored message.

Parameters
1

Result
object

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

JSON-RPC

Added 1.14.0

Polls the signing provider for the self-issued access token returned as awaiting-signature by signSelfIssuedAccessToken. Once it is signed, configures the wallet as th...

Parameters
1

Result
oneOf

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

JSON-RPC

Updated 0.27.0

Parameters
1

Result
object

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

JSON-RPC

Added 1.12.0

Polls the signing provider for a transaction awaiting external signature and updated the store status.

Parameters
1

Result
object

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

JSON-RPC

Returns information about the current user, including whether they are an admin.

Parameters
0

Result
object

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

JSON-RPC

Added 1.10.0

Get a wallet by party ID for the connected user on the current network.

Parameters
1

Result
oneOf

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

JSON-RPC

Checks if wallet sync is needed (disabled wallets or new parties on ledger).

Parameters
0

Result
object

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

JSON-RPC

Added 1.5.0

Updated 1.16.0

Lists all API keys for the current user and network.

Parameters
0

Result
object

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

JSON-RPC

Updated 1.12.0

Parameters
0

Result
object

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

JSON-RPC

Added 1.4.0

Parameters
0

Result
object

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

JSON-RPC

Updated 1.4.0

Lists configured networks without sensitive authentication details.

Parameters
0

Result
object

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

JSON-RPC

Added 1.14.0

Lists available keys of a signing provider for the user of a self-issued login session.

Parameters
1

Result
object

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

JSON-RPC

Updated 1.14.0

Lists the sessions of the user. The client secrets of the session networks are returned empty.

Parameters
0

Result
object

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

JSON-RPC

Added 1.10.0

Updated 1.14.0

Lists available keys of a signing provider

Parameters
1

Result
object

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

JSON-RPC

Added 1.13.0

Lists available signing providers.

Parameters
0

Result
object

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

JSON-RPC

Updated 1.7.0

Parameters
1

Result
object

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

JSON-RPC

Lists wallets.

Parameters
1

Result
array\[object]

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

JSON-RPC

Added 1.5.0

Removes an API key for the current user and network.

Parameters
1

Result
null

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

JSON-RPC

Updated 1.14.0

Removes an identity provider. Fails if an existing network is using the identity provider. Also fails for identity providers managed by the config file.

Parameters
1

Result
null

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

JSON-RPC

Updated 1.14.0

Removes a new network configuration (similar to EIP-3085). Fails for networks managed by the config file.

Parameters
1

Result
null

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

JSON-RPC

Added 1.13.0

Deletes the tokenless self-issued login session. A session that already has an access token is left in place.

Parameters
1

Result
null

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

JSON-RPC

Removes the current network session.

Parameters
0

Result
null

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

JSON-RPC

Removes a party with the given hint.

Parameters
1

Result
object

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

JSON-RPC

Added 1.4.0

Updated 1.10.0

Mints a self-signed access token using server-side network credentials. Used for login on self-signed networks.

Parameters
1

Result
object

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

JSON-RPC

Sets the specified wallet as the primary wallet for dApp usage.

Parameters
1

Result
null

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

JSON-RPC

Updated 0.27.0

Signs the provided data with the private key of the specified or active party.

Parameters
1

Result
oneOf

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

JSON-RPC

Added 1.4.0

Updated 1.13.0

Signs an arbitrary UTF-8 message with the wallet's private key (Ed25519). The message bytes are signed as-is; callers are expected to embed any application-level domai...

Parameters
1

Result
object

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

JSON-RPC

Added 1.14.0

Generates self issued access token and submits it to the wallet's signing provider for signing. If the provider signs it right away, configures the wallet as the authe...

Parameters
1

Result
oneOf

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

JSON-RPC

Added 1.13.0

Creates a tokenless session used during self-issued token creation process.

Parameters
1

Result
object

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

JSON-RPC

Updated 1.13.0

Synchronizes wallets with the connected network.

Parameters
0

Result
object

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

JSON-RPC

Added 1.12.0

Removed in 1.13.0

Creates a tokenless session used during self-issued token creation process.

Parameters
1

Result
object

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

JSON-RPC

Added 1.13.0

Removed in 1.14.0

Configures the selected wallet as the authentication party, mints a token, and upgrades the self-issued login session with it.

Parameters
1

Result
object

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

JSON-RPC

Added 1.12.0

Removed in 1.13.0

Configures the selected wallet as the authentication party, mints a token, and upgrades the onboarding session with it.

Parameters
1

Result
object

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

JSON-RPC

Added 1.12.0

Removed in 1.13.0

Returns the ledger-user and wallet state needed to select the self-issued onboarding path.

Parameters
1

Result
object

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

JSON-RPC

Added 1.5.0

Removed in 1.10.0

Lists available vaults of a signing provider

Parameters
1

Result
object

## History

Updated
`1.16.0`

generateApiKey: description updated

listApiKeys: result updated (required fields)

Methods removed in
`1.14.0`

completeSelfIssuedLogin: Last available in 1.13.0. Retained for historical reference.

Updated
`1.14.0`

addIdp: description updated

addNetwork: description updated

addSession: description updated

getNetwork: description updated

listSessions: description updated

listSigningProviderKeys: result updated (schema ref)

removeIdp: description updated

removeNetwork: description updated

Added
`1.14.0`

Methods removed in
`1.13.0`

addSelfIssuedSession: Last available in 1.12.0. Retained for historical reference.

connectSelfIssuedSession: Last available in 1.12.0. Retained for historical reference.

getSelfIssuedOnboarding: Last available in 1.12.0. Retained for historical reference.

Updated
`1.13.0`

addSession: The method was updated in this snapshot.

deleteMessageToSign: description updated

listSessions: The method was updated in this snapshot.

signMessage: description updated; result updated (required fields)

syncWallets: The method was updated in this snapshot.

Added
`1.13.0`

Updated
`1.12.0`

addIdp: The method was updated in this snapshot.

addSession: The method was updated in this snapshot.

createWallet: params updated: `params`

execute: params updated: `params`

listIdps: The method was updated in this snapshot.

listSessions: The method was updated in this snapshot.

Added
`1.12.0`

Methods removed in
`1.10.0`

listSigningProviderVaults: Last available in 1.9.0. Retained for historical reference.

Updated
`1.10.0`

selfSignedAccessToken: params updated: `params`

Added
`1.10.0`

Updated
`1.7.0`

addSession: params updated: `params`

listTransactions: params added: `params`; result updated (required fields)

Added
`1.5.0`

Updated
`1.4.0`

listNetworks: description updated

Added
`1.4.0`

Updated
`0.27.0`

deleteTransaction: params updated: `params`

execute: params updated: `params`

getTransaction: params updated: `params`; result updated (required fields)

listTransactions: The method was updated in this snapshot.

sign: params updated: `params`

Updated
`0.26.0`

sign: params updated: `params`
