Symbol address book module
To install the npm module on your typescript or node project run:
npm install symbol-address-book --save
import { AddressBook } from 'symbol-address-book';
const addressBook = new AddressBook();
addressBook.addContact({
address: 'TAVVVJBBCTYJDWC7TQPSVNHK2IPNY6URKK4DTHY',
name: 'Bob',
phone: '+34 000000000',
email: '[email protected]',
label: 'Executive team',
notes: 'A very good friend',
isBlackListed: false,
});
const json = addressBook.toJSON(true);
fs.writeFileSync('./my-path/', json);