Skip to content

horizonclient v2.2.0

Compare
Choose a tag to compare
@abuiles abuiles released this 26 Mar 18:09
4864939

Added

  • Add client.SubmitTransactionWithOptions with support for SEP0029.
    If any of the operations included in client.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 to 1 as defined in SEP0029.

    For performance reasons, you may choose to skip the check by setting the SkipMemoRequiredCheck to true:

     	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, call client.SubmitTransactionWithOptions instead.