I know this has been asked before but I can't find the answer. How do I retrieve AMs?
I sent myself an AM that reads "this is a test". Here:
http://localhost:7874/nxt?requestType=getTransactionBytes&transaction=5483638297221124474This returns:
{"bytes":"010090844f00a00565dc6bacf933e912af02076f1c84fff1549708aeeb979024bdc689ee6476295 f919b203dd7d5be7d00000000010000000000000000000000453405b0c89ab0a748d2c7cadabc07 23cffb311eea5bc17583b61d06864ef104b7dc4e58e38faa2b7c88a219baaa723d2a5ec34334c08 474aefd74a8de8220421400000048656c6c6f207468697320697320612074657374","confirmations":12}
However the "bytes" part has a bunch of stuff in the beginning that is not my message. How do I know where my message starts in "bytes"?
I think the 'bytes' part is s.t. else - the message as you sent it is accessible with its tTxId
MESSAGE SENT with apiCall:
https://192.168.178.24:7875/nxt?/nxt?&fee=1&secretPhrase=19letmyheartbestillamoment23&requestType=sendMessage&deadline=12&message=aaaaaaaaaaaabbbbbeeeeee1111&recipient=8208788471056955193->message=aaaaaaaaaaaabbbbbeeeeee1111
transaction - 2440562297891784938
bytes - 0100a48a4f000c00390e4daf114f5628ed4d3cdb2f6dfbf41cc21c34b8c9bdca59a8fd612a84a63
b39f7ab559f79eb7100000000010000000000000000000000ca3153d90a91748d37b82eff79c5ef
dd83e409d00d64c55d20414f1c3539e0029d6d96c690dd0a7075cd361e1baa0546ad75f21c95530
71642178b1d1710431c0d000000aaaaaaaaaaaabbbbbeeeeee111
in fact, the message IS contained in 'BYTES' - interesting: ^^^^^^^^^^^^^^^^^^
MSG RECVD on another account:
https://192.168.178.24:7875/nxt?/nxt?&requestType=getBlock&block=12844324000325204771BLOCK:
payloadLength - 401
generator - 482115092852324318
transactions - [u'2440562297891784938', u'2896977874553576073', u'4889772855603033753']
timestamp - 5212956
numberOfTransactions - 3
previousBlock - 8946974642773827749
payloadHash - 15a5d862af5d1f65f6a905ff08fae9f2fa444c30c8cc9889993d346cd42652b1
baseTarget - 1532426424
version - 2
totalAmount - 1185
previousBlockHash - a520f6d4080a2a7c75a89a25a5267e8065e0ac1fab56fcca141bb4d9fd6d1dd4
height - 48473
blockSignature - 437d8ccf4bb1e6903cf877bfe6655c402ec0b100336cf1d224b74522d950cc0721793ea8da6697b
4c905a5a198be833003a34eb6263453289c8f39b7a89470b6
totalFee - 3
generationSignature - f233e37e16793f0a21f645da6e829220f6bfb561eb5690932ace4b68a38c500f
https://192.168.178.24:7875/nxt?/nxt?&requestType=getTransaction&transaction=2440562297891784938Tx:
recipient - 8208788471056955193
fee - 1
sender - 8737506522730586553
timestamp - 5212836
senderPublicKey - 390e4daf114f5628ed4d3cdb2f6dfbf41cc21c34b8c9bdca59a8fd612a84a63b
subtype - 0
amount - 0
confirmations - 1
deadline - 12
attachment - {u'message': u'aaaaaaaaaaaabbbbbeeeeee111'}
signature - ca3153d90a91748d37b82eff79c5efdd83e409d00d64c55d20414f1c3539e0029d6d96c690dd0a7
075cd361e1baa0546ad75f21c9553071642178b1d1710431c
referencedTransaction - 0
type - 1
block - 12844324000325204771