require __DIR__ . '/../bootstrap.php';
try {
$output = \BlockCypher\Api\PaymentForward::getAll(array(), $apiContexts['BTC.main']);
} catch (Exception $ex) {
ResultPrinter::printError("List all PaymentForwards", "PaymentForward[]", null, null, $ex);
exit(1);
}
ResultPrinter::printResult("List all PaymentForwards", "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=