Assign Label to Address

+2 votes
How do we assign Labels (strings) to addresses via the command line interface (without setting up and using web demo)?

We would like to be able to do a mass assignment of 1..n labels >> 1..n addresses

 

Cheers,

Srinjoy
asked Jan 25, 2019 by schakrav19

1 Answer

0 votes

The assignment of labels to addresses is an application feature built into the Web Demo, but it's not a feature of the MultiChain platform itself. In the Web Demo addresses self-publish their labels as individual items in the "root" stream. If you want to follow the same scheme there's no way to do mass assignment, since each address has to publish its own label in its own signed transaction. However you can of course do labelling in a different way, where one user is able to provide the label for many addresses using a stream in which both label and address are assigned as two keys to items with empty data payloads. In this case you could use publishmulti to publish a ton of stream items in one go.

answered Jan 27, 2019 by MultiChain
...