Skip to content

Lakhwinderr/Programmable_Wallet

Repository files navigation

Programmable Wallet

Wallet to store digital cryptocurrency and makes wallet-to-wallet transactions using python.

Set up

  1. Create account here for Web3 Console Servies.

  2. Create a Developer Account and acquire an API key in the Console. Refer here.

  3. Install the python dependicies: pip install pycryptodome requests beautifulsoup4

  4. Generate the hex-encoded entity secret:

python generate_hex_encoded_entity_secret.py

output

  1. This key will be used in generating cipher text. We also need public key for this purpose. Replace the API key in generate_public_key.py file and run the python script.
python generate_public_key.py
  1. Before generating the cipher text, replace the hex_encoded_entity_secret with your generated hex_encoded_entity_secret above. Then run
python generate_entity_secret_ciphertext.py

You will get the ciphertext like this: demo_cipher

  1. Input the entity secret ciphertext in the developer console Configurator Page and click Register. Refer docs.

  2. Create wallet set.

python create_wallet_set.py

Alt text

  1. To get wallet info run this command:
python get_wallet_set.py
  1. To update the name, replace the name in update_wallet_sets.py.

  2. To create wallet, update the blockchains array and count. You can set other variables too. Refer here.

  3. Obtain MATIC tokens from the Polygon Faucet or Mumbai Faucet and send them to the wallets wallets.address from the previous steps response body.

  4. Yay! You just transferred your first wallet tokens to your wallet. You can use these to transfer balance to other wallets as well. Refer docs to know more.

  5. To check balance run this python script:

python check_wallet_balance.py

Alt text 15. Other python scripts are available to check individual wallet set and wallet info. Please go through the official documention on the Circle's official Website.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages