Skip to content

Latest commit

 

History

History
94 lines (57 loc) · 2.7 KB

File metadata and controls

94 lines (57 loc) · 2.7 KB
title Address book
description Storing your blockchain contacts for future use

Address Book

If you repeatedly transfer tokens to the same recipients or if you just want to store an arbitrary address for future use, you can use the addressbook command to name the address and store it in your address book. Entries in your address book are behaving similarly to the accounts stored in your wallet, for example when checking the balance of the account or sending tokens to. Of course, you cannot sign any transactions with the address stored in your address book since you do not possess the private key of that account. Both the Oasis native and the Ethereum-compatible addresses can be stored.

:::info

The name of the address book entry may not clash with any of the account names in your wallet. The Oasis CLI will prevent you from doing so.

:::

Add a New Entry {#add}

Use addressbook add <name> <address> to name the address and store it in your address book.

code shell

code shell

Then, you can for example use the entry name in you address book to send the tokens to. In this case, we're sending 2.5 TEST to meghan on Sapphire Testnet:

code shell

code

List Entries {#list}

You can list all entries in your address book by invoking addressbook list.

code shell

code

Show Entry Details {#show}

You can check the details such as the native Oasis address of the Ethereum account or simply check, if an entry exists in the address book, by running addressbook show <name>:

code shell

code

code shell

code

Rename an Entry {#rename}

You can always rename the entry in your address book by using addressbook rename <old_name> <new_name>:

code shell

code

code shell

code shell

code

Remove an Entry {#remove}

To delete an entry from your address book invoke addressbook remove <name>.

code shell

code

code shell

code shell

code