A package to allow build and execute Kadena transactions in python
Project description
Welcome to kad_py!
This library is intended to provide signing and sending pact commands on the Kadena blockchain
Setup
Install Pact CLI + Library
TODO
You will be required to configure the utility to use your desired wallets for the signing and sending to be successful.
Follow the below steps to complete the configuration:
- Install Pact CLI at Pact CLI
- Create a .env file in the root folder of your project
- Add 3 variables to your .env file: the PUBLIC_KEY, PRIVATE_KEY , and DEFAULT_SENDER values
PUBLIC_KEY = <your-public-kda-key>
PRIVATE_KEY = <your-secret-kda-key>
DEFAULT_SENDER = <your-k-wallet-address>
- Create a keyset.yaml file in the config folder.
- Add your public KDA key after public: as shown
public: <your-public-kda-key>
- Add your secret key after secret: as shown
secret: <your-secret-kda-key>
Functions
execute_exec_cmd
: Takes in a list of params to construct an exec command, then signs (Using pact-cli) it and sends it.execute_cont_cmd
: Takes in a list of params to construct a cont command, then signs (Using pact-cli) it and sends it.build_exec_cmd
: Takes in a list of params to construct an exec command, returns the raw exec command.build_cont_cmd
: Takes in a list of params to construct a cont command, returns the raw cont command.pact_build_and_fetch_local
: Takes in a list of params to construct an exec command, then sends it via a local call.sign_cmd
: Takes in a raw exec command, signs it via pact CLI and returns it.quicksign_cmds
: Takes in a list of raw commands, signs it via pact quick sign CLI and returns it.send_signed
: Takes a signed command and sends it via send signed to pact signing server.pact_fetch_local
: Takes in an exec command, then sends it via a local pact call.
Example Usage
link to Example Usages
Any quick example of import + using our methods
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kad_py_lib-0.0.3.tar.gz
(24.5 kB
view details)
Built Distribution
File details
Details for the file kad_py_lib-0.0.3.tar.gz
.
File metadata
- Download URL: kad_py_lib-0.0.3.tar.gz
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f57b07fc52d3cc190ca53f862d7342d99779b3925aacb7f4870a3f0f1e5eae3 |
|
MD5 | 4f676e4521455867277e81948949cb05 |
|
BLAKE2b-256 | 2eadc40aae24a2fa53b2df3de21a3c5ef7b0c122bf7ce609da85187a35afc043 |
File details
Details for the file kad_py_lib-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: kad_py_lib-0.0.3-py3-none-any.whl
- Upload date:
- Size: 32.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 083310e29cd4c2a43c72149186b80c2d024faefe5f0702722ae347f195aa09aa |
|
MD5 | 75a008c2c9e8a8a9a5d3b6be1cda6011 |
|
BLAKE2b-256 | 5f8ffe63560bb191e2a4945d6fe081c0d4ca02140861c4f9c312919f1ea7bca1 |