2
curl -X POST \
  http://localhost:8006/builder \
  -H 'Content-Type: application/json' \
  -d '{
    "source": "GBJ6ONYK73A65BRW7SOGQYEDCN55NCYDH5WJTE7WZIZXF3RRX2GFI33T",
    "memo": {
      "text": "qwerty12345"
    },
    "operations": [
        {
            "type": "payment",
            "body":{
                "source":"GBJ6ONYK73A65BRW7SOGQYEDCN55NCYDH5WJTE7WZIZXF3RRX2GFI33T",
                "destination":"GCZC5EG7BURORGG46B67FDBZDTWKQ5G6GLHWU6K535222ELH63MNKOT7",
                "amount": "1000"
            }
        }   
    ],  
    "signers": ["*************************************"]
}

After doing this though my destination account got credited, while looking up the explorer it shows Memo N/A.

  1. What could possibly be wrong here?
  2. What can be done to fix this?

Hoping for answers!

1
  • This doesn't answer your question, but it often helps to debug these problems by cross-checking tools against one another, so you might check out github.com/xdrpp/stc which will let you see what transactions you are actually building without having to submit them to the network. Aug 1, 2018 at 18:21

2 Answers 2

0

Oddly enough it doesn't look like the builder endpoint reads the memo from the request: https://github.com/stellar/bridge-server/blob/master/src/github.com/stellar/gateway/bridge/handlers/request_handler_builder.go

Maybe this is a bug in the bridge server, or an intentional omission?

3
  • I think they've omitted it; looking at the request_handler_builder. But why could they've omitted it? Any ideas?
    – Anthrose
    Aug 2, 2018 at 5:02
  • Probably just missed it when it was implemented. Looks like payments support it so there's no reason I can think of that /builder does not.
    – Paul
    Aug 2, 2018 at 14:38
  • Yep! Payment supports memo and works all fine ! Was jus wondering why they haven’t implemented it in /builder ?!
    – Anthrose
    Aug 2, 2018 at 14:39
0

try to use this instead:

"memo_type":"text","memo":"qwerty12345"

1
  • i did try that ! But didn't help either. The transaction envelope that i got from submitting this transaction to /builder shows memoNone.
    – Anthrose
    Aug 1, 2018 at 7:27

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.