Skip to main content
These are the methods that wallets should implement to handle Stacks transfers and messages via WalletConnect.

Core Methods (common)

stx_getAddresses

Retrieve active account addresses; primarily Stacks-focused.

Request

Response

Notes:
  • Use this first to select the wallet’s active address.
  • Filter on symbol: "STX" or by address prefix (SP for mainnet, ST for testnet).

Stacks Methods

stx_transferStx

Transfer STX.

Request

Parameters

Response

stx_signTransaction

Sign a Stacks transaction. Optional broadcast.

Request

Parameters

Response

Note: txid is present if broadcast=true

stx_signMessage

Sign arbitrary message; supports structured (SIP-018).

Request

Parameters

Response

stx_signStructuredMessage

Domain-bound structured signing (SIP-018).

Request

Parameters

Response

Note: publicKey is optional

stx_callContract

Wrapper method for stx_signTransaction that calls a Stacks contract.

Request

Parameters

Response

  • txid - is used to identify the transaction on the explorer
  • transaction - hex-encoded raw transaction

Session Properties

In a connection request, it is recommended to serialize the response to stx_getAddresses in session.sessionProperties.stacks_getAddresses. This allows dapps to consume an active session without requiring a context switch to re-request all addresses and associated public keys from the wallet.