/
FUNCTION/
LABEL
LAST UPDATED:
January 19, 2022, 1:55:04 PM
MNEMONIC:
LAB
View, assign and manage address labels.
The LABEL function enables you to assign human-readable names to blockchain addresses. Because they are quicker to type, labels allow us to easily and securely reference full addresses in Vektor functions, without worrying about mistakes or typos.
LABEL | LAB
.LIST
.ADD (label_name: text, label_address: address)
.REMOVE (label_name: text)
LABEL (or its mnemonic LAB) is most commonly used without subfunctions to list labelled addresses or with the subfunctions ADD or REMOVE to manage addresses.
LABEL
This will display all labelled addresses alongside their key details:
Labelled addresses can be reordered by Blockchain, Date Created, Name or Address.
The Search Button at the top right corner of the pane is useful to find addresses when you have many labelled addresses.
The ADD subfunction is used to add new labelled addresses. Label names cannot include spaces.
LABEL.ADD("TEST",0x82b1472515704e29Bcabf2f74EcdD622615918f8)
This command creates a label called TEST using an example address.
This Pane shows us key information about our new label and indicates that the label has been successfully added.
If the command submitted to the Command Line has not been formatted correctly, Vektor will open the LABEL.ADD Function Form to help build and achieve the intended command.
Once the Label Name and Label Address have been inputted, the Function Form gives us a correctly formatted command.
Pressing INSERT pastes the command to the Command Line, ready for execution.
The REMOVE subfunction is used to remove labelled addresses.
LABEL.REMOVE(TEST)
This command removes a labelled address called TEST.
This Pane confirms that the label has been successfully removed.
If the command submitted to the Command Line has not been formatted correctly, Vektor will open the LABEL.REMOVE Function Form to help build and achieve the intended command.
Once the Label Name has been selected, the Function Form gives us a correctly formatted command.
Pressing INSERT pastes the command to the Command Line, ready for execution.