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.0rc4.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for kinetic_sdk-1.0.0rc4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c74eb4ddfbb2d753e19d2e0843fdc2c2e25ea72c3b73db9eb8799def8adaf92d |
|
MD5 | 084b9b4e26639186b09bd4ceca1303ec |
|
BLAKE2b-256 | 3fe7d1326858b7a06f2f44b72b6c9d050929871700a7d524dfa93e4f53ddce58 |