Interacting with Wallets
Interacting with Wallets
const pk = dag4.keyStore.generatePrivateKey();Login with a PK
dag4.account.loginPrivateKey(pk);Login with a seed phrase
dag4.account.loginSeedPhrase('disco foxtrot calm appleseed trinity organ putter waldorf ordinary shatter green portion');Check DAG address
const address = dag4.account.address;Get wallet public key
dag4.account.publicKey;Last updated
Was this helpful?