0

I'm trying to get the outputs and tx public key according to this answer.

I know that the transaction public key must be in the "extra" section. When I ran the get_transactions command, I got this response (displaying only the "extra" part):

"extra": [ 1, 108, 109, 63, 78, 182, 147, 31, 13, 63, 251, 116, 213, 150, 92, 35, 157, 53, 55, 182, 160, 24, 206, 159, 131, 96, 160, 20, 147, 162, 61, 159, 75, 2, 9, 1, 214, 209, 43, 119, 113, 218, 18, 237  ]

This is how documentation defines "extra":

extra - Usually called the "payment ID" but can be used to include any random 32 bytes.

According to the pseudo-code mentioned above, what parts of the response given by get_transactions do I need to process the incoming transfer?

1

How to get the transaction public key and outputs from get_transactions?

Parse the field named extra to get the public key. The 32 bytes after the byte 0x01 is the tx public key.

The output keys are in txs[].as_json.vout[].target[].key if you used the parameter decode_as_json:true.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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