Stellar newbie here, using the ZuluCrypto PHP SDK. I can successfully submit this transaction:

$transaction = Server::testNet()
    ->addCustomAssetPaymentOp($asset, $amount, xxx_Account_B_xxx)

(3 is the MEMO_TYPE for a 32 byte hash.) But then transaction record retrieved from horizon-testnet shows the memo as REVBRE1FQVRERUFETUVBVERFQURNRUFUREVBRE1FQVQ= (with the correct memo_type 3), and the Stellar Lab XDR viewer won't decode this as a "Memo" or anything else.

How do I set a memo and then retrieve that memo from the transaction record?

1 Answer 1


The memo value returned by Horizon is base64 encoded. You can decode the value with base64_decode.

  • Where in the account->transactions is the memo? Commented Jul 24, 2022 at 17:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.