horizonclient v2.2.0
Added
-
Add
client.SubmitTransactionWithOptions
with support for SEP0029.
If any of the operations included inclient.SubmitTransactionWithOptions
is of type
payment
,pathPaymentStrictReceive
,pathPaymentStrictSend
, or
mergeAccount
, then the SDK will load the destination account from Horizon and check if
config.memo_required
is set to1
as defined in SEP0029.For performance reasons, you may choose to skip the check by setting the
SkipMemoRequiredCheck
totrue
:client.SubmitTransactionWithOptions(tx, horizonclient.SubmitTxOpts{SkipMemoRequiredCheck: true})
Additionally, the check will be skipped automatically if the transaction includes a memo.
Changed
- Change
client.SubmitTransaction
to always check if memo is required.
If you want to skip the check, callclient.SubmitTransactionWithOptions
instead.