On this page

latest contributor to this doc

Last Edit:

@smk762

Walletconnect: Get session

API-v2wc_get_session

The wc_get_session method returns details for a specific WalletConnect session. For details on a full list of active WalletConnect sessions, use the wc_get_sessions method instead.

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_get_session
{
  "method": "wc_get_session",
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "params": {
    "with_pairing_topic": true,
    "topic": "ad2fbcc28d410158431a3dc181d4365462df5cef6c90402b3e415c9d75f7c6f1"
  }
}

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

Both of the above queries return the same result.