require __DIR__ . '/../bootstrap.php';
$paymentForwardClient = new \BlockCypher\Client\PaymentForwardClient($apiContexts['BTC.main']);
try {
$output = $paymentForwardClient->listForwardingAddresses();
} catch (Exception $ex) {
ResultPrinter::printError("List all Forwarding Addresses", "PaymentForward[]", null, null, $ex);
exit(1);
}
ResultPrinter::printResult("List all Forwarding Addresses", "PaymentForward[]", null, null, $output);
return $output;
List All PaymentForwards
Use this call to list all the PaymentForwards, as documented here at: List Payments Endpoint
API used: GET /v1/btc/main/payments?token=