| title | Address book |
|---|---|
| description | Storing your blockchain contacts for future use |
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.
:::
Use addressbook add <name> <address> to name the address and store it in your
address book.
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:
You can list all entries in your address book by invoking addressbook list.
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>:
You can always rename the entry in your address book by using
addressbook rename <old_name> <new_name>:
To delete an entry from your address book invoke
addressbook remove <name>.