PHP code example of vleap / relay
1. Go to this page and download the library: Download vleap/relay library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vleap / relay example snippets
$result = $wallet->sendTransaction($transaction);
$relayableTx = (new RelayClient(['project' => 'your-project-id']))->relay($transaction);
$result = $wallet->sendTransaction($relayableTx);
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);