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