File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,20 @@ To create a new address with the same account keys in your new or imported accou
52
52
>>> new_account.address
53
53
934
54
54
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
+
55
69
To submit a transaction, use ConvexAPI.send(). This will cost a small about of juice, and reduce your balance
56
70
57
71
>>> convex_api.request_funds(1000000, account)
You can’t perform that action at this time.
0 commit comments