getAppPrivateKey
Usage
import { getAppPrivateKey, generateWallet } from '@stacks/wallet-sdk';
const wallet = await generateWallet({
secretKey: 'your 24-word seed phrase ...',
password: 'password',
});
const account = wallet.accounts[0];
const appPrivateKey = getAppPrivateKey({
account,
appDomain: 'https://my-app.example.com',
});
// hex private key string unique to this account + app combinationNotes
Signature
Returns
Parameters
opts (required)
Property
Type
Description
Last updated
Was this helpful?