No project description provided
Project description
kinetic-python
Python SDK implementation to use Kinetic by Kin Foundation
Installation
pip install kinetic-sdk
Usage
Initialization
import kinetic_sdk
environment = 'devnet'
app_index = 1
sdk = kinetic_sdk.KineticSdk.setup(environment, app_index)
Get Account History
history = sdk.get_history(account_public_key, mint_public_key)
Get Token Accounts
token_accounts = sdk.get_token_accounts(account_public_key, mint_public_key)
Request Airdrop
airdrop = sdk.request_airdrop(account_public_key, amount_str, mint_public_key)
Create Account
owner = Keypair.generate()
account = sdk.create_account(owner, mint_public_key)
Make Transfer
tx = sdk.make_transfer(
owner=alice_keypair,
destination=bob_public_key,
amount=1,
mint=mint_public_key,
tx_type=TransactionType.NONE
)
Documentation
This file can be followed for sample code, but more documentation and samples be here.
Development
Clone this request
git clone git@github.com:kin-labs/kinetic-python.git
Install the dependencies, the project uses Poetry, so you don't need to worry about creating virtual environments because it will create it for you.
make install
Run test
make test
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
kinetic-sdk-1.0.0rc7.tar.gz
(70.6 kB
view hashes)
Built Distribution
kinetic_sdk-1.0.0rc7-py3-none-any.whl
(181.8 kB
view hashes)
Close
Hashes for kinetic_sdk-1.0.0rc7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fe53cc9e6cb572e42b7e21e9e8611e21cd77d65b5e6575bc3b85ef671f6c571 |
|
MD5 | 16d581642b99dcf98df8e5a7f56de08b |
|
BLAKE2b-256 | 9a0015016dd824041a02005ba3e83439c43d3e7ced8ec763b465a24b1990b359 |