Python SDK implementation to use Kinetic by Kin Foundation
pip install kinetic-sdk
import kinetic_sdk
environment = 'devnet'
app_index = 1
sdk = kinetic_sdk.KineticSdk.setup(environment, app_index)
history = sdk.get_history(account_public_key, mint_public_key)
token_accounts = sdk.get_token_accounts(account_public_key, mint_public_key)
airdrop = sdk.request_airdrop(account_public_key, amount_str, mint_public_key)
owner = Keypair.generate()
account = sdk.create_account(owner, mint_public_key)
tx = sdk.make_transfer(
owner=alice_keypair,
destination=bob_public_key,
amount=1,
mint=mint_public_key,
tx_type=TransactionType.NONE
)
This file can be followed for sample code, but more documentation and samples be here.
Clone this request
git clone [email protected]: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