payment-api\CreateAndListPaymentForwards.php
<?php

Get All PaymentForwards Sample

Use this call to list all the PaymentForwards, as documented here at: http://dev.blockcypher.com/#list-payments-endpoint API used: GET /v1/btc/main/payments?token=

List PaymentForwards

This step is not necessarily required. We are creating a PaymentForward for sample purpose only, so that we would not get an empty list at any point. In real case, you do not need to create any PaymentForward to make this API call.

/** @var \BlockCypher\Api\PaymentForward $paymentForward */ $paymentForward = require 'CreatePaymentForward.php'; try {

Get List of All PaymentForwards

$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;