SPL Token Plugin for GOAT SDK
A plugin for the GOAT SDK that provides functionality for interacting with Solana Program Library (SPL) tokens on the Solana blockchain.
Installation
# Install the plugin
poetry add goat-sdk-plugin-spl-tokens
# Install required wallet dependency
poetry add goat-sdk-wallet-solana
Usage
from goat_plugins.spl_token import spl_token, SplTokenPluginOptions
# Initialize the plugin
options = SplTokenPluginOptions(
rpc_url="${RPC_PROVIDER_URL}" # Your Solana RPC URL
)
plugin = spl_token(options)
# Get token account info
token_info = await plugin.get_token_account_info(
token_address="EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", # USDC
wallet_address="your_wallet_address"
)
# Transfer tokens
transfer = await plugin.transfer(
token_address="EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", # USDC
recipient="recipient_wallet_address",
amount=1000000, # 1 USDC (6 decimals)
)
# Create token account
new_account = await plugin.create_token_account(
token_mint="EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", # USDC
owner="owner_wallet_address"
)
Features
-
Token Account Management:
- Create token accounts
- Close token accounts
- Get account information
- Get token balances
-
Token Operations:
- Transfer tokens
- Approve token delegation
- Revoke token delegation
- Burn tokens
-
Token Mint Operations:
- Create token mints
- Mint new tokens
- Set mint authority
- Freeze/thaw accounts
-
Advanced Features:
- Multi-signature support
- Associated token accounts
- Token program v2 support
- Metadata program integration
-
Network Support:
- Solana Mainnet
- Solana Testnet
- Solana Devnet
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for goat-sdk-plugin-spl-token 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| goat_sdk_plugin_spl_token-0.1.4.tar.gz | 4.3 kB | Without provenance | Details for goat_sdk_plugin_spl_token-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| goat_sdk_plugin_spl_token-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for goat_sdk_plugin_spl_token-0.1.4-py3-none-any.whl |
Total release size: 9.7 kB
Release files / goat_sdk_plugin_spl_token-0.1.4.tar.gz
| Download URL | goat_sdk_plugin_spl_token-0.1.4.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f78037620c7026b31b1846615e9bc03d80f7d590af666eacb5eaf5c5551414bd
|
|
BLAKE2b-256 checksum How to use checksums |
5ece044ff3176107cc07371201b7f40060d440eafe2c699ff39b05d85f22a142
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure
|
Release files / goat_sdk_plugin_spl_token-0.1.4-py3-none-any.whl
| Download URL | goat_sdk_plugin_spl_token-0.1.4-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcb7152f8d4cecbeed21eb6ad34c9551ab3653c9aa8f0e2351632b20a4080d92
|
|
BLAKE2b-256 checksum How to use checksums |
50eedacbd258a7e830b73ae50f5e76eedb2c90322890bae0c213c6da7d3a9232
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure
|
Security for goat-sdk-plugin-spl-token 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.