Skip to content

Horizon v2.31.0 and RPC v21.4.0 updates

Compare
Choose a tag to compare
@christian-rogobete christian-rogobete released this 25 Jul 11:14
· 25 commits to main since this release

Updates for Horizon v2.31.0
(see: #42)

  1. The new Horizon API endpoint: POST /transactions_async has been added.
    It is now covered in the sdk by following new methods:
$sdk->submitAsyncTransaction(...)
$sdk->submitAsyncTransactionEnvelopeXdrBase64(...)

see also: SubmitAsyncTransactionTest.php

  1. Error schema change: POST /transactions now includes a the hash in its timeout response:

HorizonErrorResponseExtras has been extended. It now provides `$txHash if the hash is available in the error response.

Updates for RPC v21.4.0
(see: #42)

  • added support for the new endpoints: getTransactions, getFeeStats and getVersionInfo.
  • fixed getEvents pagination options

Update SEP-12 support

  • added the new transaction_idrequest parameter to get and put customer requests.

Improve http exceptions handling

The obsolete option 'http_errors' => false, has been removed from the GuzzleHttp\Client initialisations.
See also: #29

HorizonErrorResponse now also provides an $extrasJson array if available
See also: testHorizonRequestException