Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

wallet_disconnect

Disconnect the current session and clean up all authentication state.

Authentication Required: No

Request

await jaw.provider.request({
  method: 'wallet_disconnect',
});

Parameters

None

Response

Returns null on success.

Type: null

Behavior

  • Clears the active session and authentication state
  • Emits disconnect event
  • Same effect as calling jaw.disconnect()

Example Usage

Disconnect Button

await jaw.provider.request({
    method: 'wallet_disconnect',
});

Listen to Disconnect Event

// Listen for disconnect events
jaw.provider.on('disconnect', (error) => {
  console.log('Wallet disconnected:', error.message);
});
 
await jaw.provider.request({
  method: 'wallet_disconnect',
});

Related Methods