josephopanel/solana-php-sdk
最新稳定版本:2.0.6
Composer 安装命令:
composer require josephopanel/solana-php-sdk
包简介
A PHP SDK for interacting with the Solana blockchain via JSON RPC and WebSocket methods.
README 文档
README
A powerful and easy-to-use PHP SDK for interacting with the Solana blockchain. This library allows developers to interact with Solana's JSON RPC and WebSocket APIs using PHP, enabling seamless integration for blockchain applications.
🚀 Features
- Lightweight and fully PSR-4 compliant
- Supports JSON RPC methods
- Built-in extensibility for future methods
- Clean and intuitive API design
- Open source and community-friendly
- PHP 8.2+ Required
📚 Installation
Install the library via Composer:
composer require josephopanel/solana-php-sdk
📖 Documentation
For detailed information about all available methods, visit the API Documentation.
🚀 API Methods
Account Methods
getAccountInfogetBalancegetTokenAccountBalancegetTokenAccountsByDelegategetTokenAccountsByOwnergetTokenLargestAccountsgetTokenSupplygetLargestAccountsgetMultipleAccountsgetProgramAccounts
Block Methods
getBlockgetBlockCommitmentgetBlockHeightgetBlockProductiongetBlockTimegetBlocksgetBlocksWithLimitgetFirstAvailableBlockisBlockhashValidminimumLedgerSlot
Cluster Methods
getClusterNodesgetEpochInfogetEpochSchedulegetLeaderSchedulegetSlotgetSlotLeadergetSlotLeadersgetSupply
Governance and Identity
getIdentitygetInflationGovernorgetInflationRategetInflationRewardgetStakeMinimumDelegationgetVoteAccounts
System and Performance
getFeeForMessagegetHealthgetHighestSnapshotSlotgetRecentPerformanceSamplesgetRecentPrioritizationFees
Transactions
getLatestBlockhashgetSignatureStatusesgetSignaturesForAddressgetTransactiongetTransactionCountsimulateTransactionsendTransaction
Utilities
Web Socket Methods
accountSubscribeaccountUnsubscribeblockSubscribeblockUnsubscribelogsSubscribelogsUnsubscribeprogramSubscribeprogramUnsubscriberootSubscriberootUnsubscribesignatureSubscribesignatureUnsubscribeslotSubscribeslotUnsubscribeslotsUpdatesSubscribeslotsUpdatesUnsubscribevoteSubscribevoteUnsubscribe
💻 Contributing
Contributions are welcome! If you'd like to improve the SDK or add new features, feel free to fork the repository and submit a pull request.
- Fork the repository
- Create a new feature branch:
git checkout -b feature/my-feature - Commit your changes:
git commit -m "Add new feature" - Push to the branch:
git push origin feature/my-feature - Open a pull request
💰 Donations
This project is open source and developed with passion. If you’d like to support ongoing development, consider donating:
- Solana Wallet Address:
4izNYzN7uQac8jBDcD7NmuCpS8PqvYiHVSLXF5bY9Zrg
Every little bit helps keep this project maintained and up-to-date. Thank you for your support! ❤️
📜 License
This project is licensed under the MIT License.
📞 Contact
For any questions, feedback, or collaboration inquiries, feel free to reach out:
- Author: Joseph Opanel
- Email: opanelj@gmail.com
统计信息
- 总下载量: 492
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-24