|
| 1 | +--- |
| 2 | +title: Address book |
| 3 | +description: Storing your blockchain contacts for future use |
| 4 | +--- |
| 5 | + |
| 6 | +# Address Book |
| 7 | + |
| 8 | +If you repeatedly transfer tokens to the same recipients or if you just want to |
| 9 | +store an arbitrary address for future use, you can use the `addressbook` |
| 10 | +command to **name the address and store it in your address book**. Entries |
| 11 | +in your address book are behaving similarly to the |
| 12 | +[accounts stored in your wallet][wallet], for example when checking the balance |
| 13 | +of the account or sending tokens to. Of course, you cannot sign any |
| 14 | +transactions with the address stored in your address book since you do not |
| 15 | +possess the private key of that account. Both the Oasis native and the |
| 16 | +Ethereum-compatible addresses can be stored. |
| 17 | + |
| 18 | +:::info |
| 19 | + |
| 20 | +The name of the address book entry may not clash with any of the account names |
| 21 | +in your wallet. The Oasis CLI will prevent you from doing so. |
| 22 | + |
| 23 | +::: |
| 24 | + |
| 25 | +[wallet]: wallet.md |
| 26 | + |
| 27 | +## Add a New Entry {#add} |
| 28 | + |
| 29 | +Use `addressbook add <name> <address>` to name the address and store it in your |
| 30 | +address book. |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +Then, you can for example use the entry name in you address book to send the |
| 37 | +tokens to. In this case, we're sending `2.5 TEST` to `meghan` on Sapphire |
| 38 | +Testnet: |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | +## List Entries {#list} |
| 45 | + |
| 46 | +You can list all entries in your address book by invoking `addressbook list`. |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +## Show Entry Details {#show} |
| 53 | + |
| 54 | +You can check the details such as the native Oasis address of the Ethereum |
| 55 | +account or simply check, if an entry exists in the address book, by running |
| 56 | +`addressbook show <name>`: |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | +## Rename an Entry {#rename} |
| 67 | + |
| 68 | +You can always rename the entry in your address book by using |
| 69 | +`addressbook rename <old_name> <new_name>`: |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | +## Remove an Entry {#remove} |
| 78 | + |
| 79 | +To delete an entry from your address book invoke |
| 80 | +`addressbook remove <name>`. |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
0 commit comments