RPC Reference
Stacks
Stacks JSON-RPC Methods
These are the methods that wallets should implement to handle Stacks transfers and messages via WalletConnect.
stx_transferStx
Simple STX transfer, request a transfer of STX tokens. Wallet signs and executes the transaction.
Request
Parameters
Parameter | Required? | Data Type | Description |
---|---|---|---|
sender | Required | string | The stacks address of sender |
recipient | Required | string | The STX address of the recipient |
amount | Required | number | string | Amount of STX tokens to transfer in microstacks (BigInt constructor compatible) |
memo | Optional | string | Memo string to be included with the transfer transaction |
Response
txid
- is used to identify the transaction on the explorertransaction
- hex-encoded raw transaction
stx_signMessage
For signing a message with wallet users private key.
Request
Parameters
Parameter | Required? | Data Type | Description |
---|---|---|---|
address | Required | string | The stacks address of sender |
message | Required | string | Utf-8 string representing the message to be signed by the wallet |
Response
signature
- The signature of the message