Authentication
Authenticate as admin
import {SpvWalletClient} from "@bsv/spv-wallet-js-client";
async function main() {
const adminClient = new SpvWalletClient("{{spv-wallet-url}}", {adminKey: "{{xpriv_of_the_admin}}"})
// ...
}User
Authentication using HD keys of a user
Register the user's xpub
import {SpvWalletClient} from "@bsv/spv-wallet-js-client";
async function main() {
const adminClient = new SpvWalletClient("{{spv-wallet-url}}", {adminKey: "{{xpriv_of_the_admin}}"})
const response = await adminClient.AdminNewXpub("{{xpub_of_the_user}}", {})
// ...
}Authenticate with user's xpub
Authentication using an Access key
Create
Use
Revoke
Last updated
Was this helpful?

