On this page

latest contributor to this doc

Last Edit:

@smk762

Walletconnect: Ping session

API-v2wc_ping_session

The wc_ping_session pings the bridge server to check if specific WalletConnect session is responsive. 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.

ParameterTypeDescription
resultstringIndicates if the ping was successful.

POST
wc_ping_session
{
  "method": "wc_ping_session",
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "params": {
    "with_pairing_topic": true,
    "topic": "31ad8ac1312e01ff7ff656ed5507eb9fd6f2f435668fd86331e00b33627bfc14"
  }
}

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