Download the PHP package inodrahq/sui-sdk without Composer
On this page you can find all versions of the php package inodrahq/sui-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download inodrahq/sui-sdk
More information about inodrahq/sui-sdk
Files in inodrahq/sui-sdk
Package sui-sdk
Short Description The most complete PHP SDK for the Sui blockchain — 6 signature schemes, auto-resolving transactions, typed responses, JSON-RPC + gRPC
License MIT
Homepage https://github.com/inodrahq/php-sui-sdk
Informations about the package sui-sdk
PHP Sui SDK
A comprehensive PHP SDK for the Sui blockchain.
- 6 signature schemes -- Ed25519, Secp256k1, Secp256r1, Multisig, zkLogin, Passkey
- Auto-resolving Transaction builder -- gas price, budget, and coin selection handled automatically
- 40+ RPC methods with typed response objects
- Dual transport -- gPRC and JSON-RPC with automatic fallback
- BIP-39 / BIP-32 key derivation with mnemonic generation
- Convenience methods -- transfer, stake, merge, send in one call
Requirements
- PHP 8.2+
- ext-sodium
- ext-bcmath
- ext-openssl
- ext-grpc (optional, for native gRPC transport -- gRPC-Web works without it)
Installation
Quick Start
Features
Auto-Resolving Transaction Builder
The Transaction class automatically resolves gas price, gas budget (via dry-run), and gas coin selection. No manual gas configuration needed.
Objects are also auto-resolved from the network:
You can still override any gas parameter manually:
Signature Schemes
The SDK supports all six Sui signature schemes.
Multisig:
zkLogin:
Passkey:
Typed Responses
All RPC methods return typed objects with IDE autocomplete support.
Wallet Management
Network Presets
Convenience Methods
High-level methods that handle coin selection, gas, and transaction building automatically:
Transaction Builder (Low-Level)
Build complex Programmable Transaction Blocks (PTBs) manually:
Available Commands
Pure Input Helpers
Object Inputs
Full RPC API
All 40+ Sui RPC methods are supported:
Paginated Responses
Signature Verification
Transport Layer
The SDK supports pluggable transports. Both JSON-RPC and gRPC use the same SuiClient API -- all methods work identically regardless of transport.
JSON-RPC (default)
gRPC
gRPC provides better performance with binary serialization and HTTP/2. Requires the ext-grpc PHP extension:
gRPC coverage: Most RPC methods have gRPC equivalents. The following methods are JSON-RPC only and will automatically fall back to JSON-RPC via the MethodRouter:
| Method | Reason |
|---|---|
getStakes |
No gRPC equivalent |
getStakesByIds |
No gRPC equivalent |
getLatestSuiSystemState |
No gRPC equivalent |
getValidatorsApy |
No gRPC equivalent |
getCommitteeInfo |
No gRPC equivalent |
queryTransactionBlocks |
No gRPC equivalent |
queryEvents |
No gRPC equivalent |
getCheckpoints |
No gRPC equivalent |
devInspectTransactionBlock |
No gRPC equivalent |
getRpcApiVersion |
JSON-RPC specific |
Examples
Deploy a Move Package
Stake SUI
Or use the convenience method:
Send USDC
Testing
655 tests covering:
- BIP-39 mnemonic generation/validation with Sui test vectors
- SIP-15 wallet key encoding/decoding
- All 6 signature schemes (Ed25519, Secp256k1, Secp256r1, Multisig, zkLogin, Passkey)
- Transaction BCS parity with Rust (byte-for-byte)
- Ed25519 / Secp256k1 / Secp256r1 signature parity
- Auto-resolving Transaction builder (gas estimation, coin selection)
- All RPC methods (mocked transport)
- Transaction builder (all 7 command types)
- Signature verification roundtrips
- Typed response deserialization
- Network presets and transport configuration
- gRPC transport and method routing
- Paginated response iteration
- Convenience methods (transfer, stake, merge, send)
- Integration transfer test (testnet)
License
MIT
All versions of sui-sdk with dependencies
ext-sodium Version *
ext-bcmath Version *
ext-openssl Version *
inodrahq/bcs Version ^1.0
guzzlehttp/guzzle Version ^7.0
bitwasp/bech32 Version ^0.0.1
google/protobuf Version ^5.0
grpc/grpc Version ^1.74