On this page

latest contributor to this doc

Last Edit:

@smk762

Walletconnect: Delete session

API-v2wc_delete_session

The wc_delete_session method closes the specified WalletConnect session. For details on a full list of active WalletConnect sessions, use the wc_get_sessions method.

ParameterTypeRequiredDefaultDescription
topicstring-An active session topic (or pairing topic) hex string.
with_pairing_topicbooleanfalseIf true, allows using the pairing_topic hex string in the topic param to fetch session details. If false, expects topic param to be the session topic hex string.

StructureTypeDescription
sessionobjectA standard WcSession object.

POST
wc_delete_session
{
  "method": "wc_delete_session",
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "params": {
    "with_pairing_topic": false,
    "topic": "008bb50bc495f768d74d1a0c558fc3ca32ef35f5c507790ea27d01983421ed95"
  }
}

Both of the above queries return the same result.