vleap / relay
PHP SDK for vLeap Relay service
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/vleap/relay
Requires
- php: ^8.1
- ext-json: *
- brick/math: ^0.12.3
- guzzlehttp/guzzle: ^7.8
- multiversx/mx-sdk-php: dev-main
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.0
README
Enable gasless transactions on MultiversX with just one line of code change.
composer require vleap/relay
Before:
$result = $wallet->sendTransaction($transaction);
After:
$relayableTx = (new RelayClient(['project' => 'your-project-id']))->relay($transaction); $result = $wallet->sendTransaction($relayableTx);
That's it! Your users now pay zero gas fees when they have a fresh wallet or low balance.
Examples
use VLeap\RelaySdk\RelayClient; // Single transaction $relayedTx = (new RelayClient(['project' => 'your-project-id']))->relay($transaction); // Batch transactions $relayedTxs = (new RelayClient(['project' => 'your-project-id']))->relayBatch($transactions);
Support
- GitHub: vLeap Group
- Telegram: https://telegram.vleap.ai