i got some time to continue to work on an indexed mysql blockchain copy and need some help with the tx types and subtypes.
my tx table contains all transactions ever made on the blockchain. currently there were 7 types and some subtypes used.
is there any documentation what the numbers mean like type 0 subtype 0 is a regular transfer from one account to another?
these are all combinations which currently exist in the tx data of the blockchain:
# type, subtype
'0', '0'
'1', '0'
'1', '6'
'1', '7'
'2', '1'
'3', '4'
'3', '5'
'3', '6'
'4', '0'
'20', '0'
'21', '0'
'21', '3'
Use api call
http://wallet.burstcoin.info/burst?requestType=getConstants
, it's in there. If you want i can PM you my php that converts the number to a readable word(as seen on my blockex, if you look under an account page)
here's the nice json of it ;P
{
"transactionTypes":[
{
"subtypes":[
{
"description":"Ordinary payment",
"value":0
}
],
"description":"Payment",
"value":0
},
{
"subtypes":[
{
"description":"Arbitrary message",
"value":0
},
{
"description":"Alias assignment",
"value":1
},
{
"description":"Alias sell",
"value":6
},
{
"description":"Alias buy",
"value":7
},
{
"description":"Poll creation",
"value":2
},
{
"description":"Vote casting",
"value":3
},
{
"description":"Hub terminal announcement",
"value":4
},
{
"description":"Account info",
"value":5
}
],
"description":"Messaging",
"value":1
},
{
"subtypes":[
{
"description":"Asset issuance",
"value":0
},
{
"description":"Asset transfer",
"value":1
},
{
"description":"Ask order placement",
"value":2
},
{
"description":"Bid order placement",
"value":3
},
{
"description":"Ask order cancellation",
"value":4
},
{
"description":"Bid order cancellation",
"value":5
}
],
"description":"Colored coins",
"value":2
},
{
"subtypes":[
{
"description":"Listing",
"value":0
},
{
"description":"Delisting",
"value":1
},
{
"description":"Price change",
"value":2
},
{
"description":"Quantity change",
"value":3
},
{
"description":"Purchase",
"value":4
},
{
"description":"Delivery",
"value":5
},
{
"description":"Feedback",
"value":6
},
{
"description":"Refund",
"value":7
}
],
"description":"Digital goods",
"value":3
},
{
"subtypes":[
{
"description":"Effective balance leasing",
"value":0
}
],
"description":"Account Control",
"value":4
}
]
}
Will find out what reward recipient is....and at's
Ahh, yes, reward recipient is type 20, and subtype 0, and AT's are type 22