Skip to content

Commit d622aed

Browse files
committed
update new account names
1 parent 41aacb0 commit d622aed

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@ To create a new address with the same account keys in your new or imported accou
5252
>>> new_account.address
5353
934
5454

55+
To use account names, where an account name is resolved to a fixed address. You can create or load
56+
an account based on it's name by doing the following:
57+
58+
>>> account = convex_api.setup_account('my-account-name', import_account)
59+
>>> account.address
60+
934
61+
62+
>>> convex_api.resolve_account_name('my-account-name')
63+
934
64+
65+
>>> same_account = convex_api.setup_account('my-account-name', import_account)
66+
>>> same_account.address
67+
934
68+
5569
To submit a transaction, use ConvexAPI.send(). This will cost a small about of juice, and reduce your balance
5670

5771
>>> convex_api.request_funds(1000000, account)

0 commit comments

Comments
 (0)