Skip to content

vLeapGroup/relay-sdk-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Relay SDK

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

About

About SDK for vLeap Relay – Sponsor transactions for users by adding a single line of code.

Topics

Resources

Stars

Watchers

Forks

Languages