File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ First you need to download the Convex-API-py package from the python package ind
1313You can now access the convex network, and get a balance from an existing account on the network by doing the following:
1414
1515 >>> from convex_api import ConvexAPI
16- >>> convex = ConvexAPI('http ://34.89.82.154:3000 ')
16+ >>> convex = ConvexAPI('https ://convex.world ')
1717 >>> convex.get_balance(9)
1818 99396961137042
1919
2020You can create a new emtpy account, with now balance:
2121
2222 >>> account = convex.create_account()
23- >>> print( account.address)
23+ >>> account.address
2424 809
2525
2626You can request some funds to the new account and then get the account information:
@@ -36,6 +36,9 @@ You can export the accounts private key encoded as PKCS8 encrypt the key with a
3636 >>> account.export_to_text('secret')
3737 '-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIGbMFcGCSqGSIb3DQEFDTBKMCkGCSqGSIb3DQEFDDAcBAiMY42UY4PXHAICCAAw\nDAYIKoZIhvcNAgkFADAdBglghkgBZQMEASoEEJpwDMicGbGj2iSJesktIVYEQBsp\nKMTAHzvUyw8jZRr8WSrmxH7938sjma8XWI6lgd9jwTZzcGamog7p3zatw0Wp+jFK\nKruWAZmIqhBZ/2ezDv8=\n-----END ENCRYPTED PRIVATE KEY-----\n'
3838
39+ >>> account.address
40+ 809
41+
3942To re-use your account again you need to import the encrypted private key and set the correct account address
4043
4144 >>> from convex_api import Account
@@ -44,3 +47,8 @@ To re-use your account again you need to import the encrypted private key and se
4447To create a new address with the same account keys in your new or imported account object, you can do:
4548
4649 >>> new_account = convex.create_account(account)
50+ >>> account.address
51+ 809
52+ >>> new_account.address
53+ 934
54+
You can’t perform that action at this time.
0 commit comments