CfB,
Is there a definition of the bytes in a transaction? I am trying to figure out which ones are AM and which ones are not.
I thought maybe doing a getTransaction call would return what type of transaction it is, but it doesnt seem to.
getTransaction response includes type / subtype
if (transaction.type == 0) {
transactionType = "Ordinary payment";
} else if (transaction.type == 1) {
if (transaction.subtype == 0) {
transactionType = "Arbitrary message";
} else {
transactionType = "Alias assignment";
}
} else if (transaction.type == 2) {
switch (transaction.subtype) {
case 0:
transactionType = "Asset issuance";
break;
case 1:
transactionType = "Asset transfer";
break;
case 2:
transactionType = "Ask order placement";
break;
case 3:
transactionType = "Bid order placement";
break;
case 4:
transactionType = "Ask order cancellation";
break;
case 5:
transactionType = "Bid order cancellation";
break;
}
}
Thanks, the API wiki doesnt show this, I guess I just have to assume the wiki is not 100% accurate