I am using bitcoin core library in node js.
const privateKey = new bitcore.PrivateKey('testnet'); const address = privateKey.toAddress('testnet);
console.log it, it get result as below. How can i extract the address part only? I try to use
address.Address but it returns undefined
<Address: mmNeqV9HWKUDRUAVdknRKDPHyKYGpBEDzm, type: pubkeyhash, network: testnet>