Request the Bitcoin addresses (Native SegWit and Taproot) and Stacks addresses for the active account of the user's wallet.
Method name
getAddresses
Parameters
None
Accounts
The number of the account connected by the user can be inferred using the derivationPath
returned in the response. Note:
Derivation paths are zero-indexed internally.
For example, a derivation path of
m/84'/0'/1'/0/0
corresponds to Account 2 in the UI.
This account
value can be used in subsequent method calls (e.g. sendTransfer
, signMessage
, etc.). If not specified, the currently active account is used by default.
Examples
Example request
Example response
Use case
You can use the returned address to query third-party APIs like mempool.space:
Sandbox
Try the getAddresses
method live in this CodeSandbox testing environment: 👉 Open Sandbox