Core Methods (common)
stx_getAddresses
Retrieve active account addresses; primarily Stacks-focused.Request
Response
- 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
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
publicKey is optional
stx_callContract
Wrapper method forstx_signTransaction that calls a Stacks contract.
Request
Parameters
Response
txid- is used to identify the transaction on the explorertransaction- hex-encoded raw transaction
Session Properties
In a connection request, it is recommended to serialize the response tostx_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.