Minka Ledger Docs
How To Guides

How to drop a wallet

DateResponsibleChanges
December 12, 2023@Luis FidelisInitial version

Ledger SDK allows users to drop wallets.

Dropping a wallet

Bellow is an example of how to drop wallet tel:123 by using the Ledger SDK.

import { LedgerSdk } from '@minka/ledger-sdk'
 
const sdk = new LedgerSdk({
  server: '<your ledger URL>',
  signer: {
		format: 'ed25519-raw',
		public: '<your ledger public key>'
	}
})
 
await sdk.wallet
  .drop('tel:123')
  .hash()
  .sign([{ keyPair: yourKeyPair }])
  .send()

Constraints

  • Users cannot drop a wallet that has any balance different from 0. Those balances should be spent or destroyed beforehand.
  • All the anchors associated with the wallet should be dropped if ledger is configured

to require wallet presence when creating anchors.

On this page