Help Center

Developer Docs

stx_transferStx API method

May 16, 2025

Leather does not control third-party integrations using this method. Developers must validate transaction parameters and recipients before requesting user signatures.

Request a transfer of STX tokens to a specified recipient using the user's connected Leather account.

Method name

stx_transferStx

Parameters

  • recipient: Stacks address (c32 format) — required
  • amount: Number or string (in microSTX) — required
  • memo: Optional string memo for the transaction

Examples

Example request

[Unsupported block type: code]

Example response

[Unsupported block type: code]

Use case

Use stx_transferStx to initiate STX token transfers within your app—from peer-to-peer tips to app-native payments.

Sandbox

Try the stx_transferStx method live in this CodeSandbox environment: 👉 Open Sandbox