The first to decode the deck spawn transaction below (entire txn, not just the short_name) and can tell me the asset’s short_name will receive 100PPC from me!
the testnet txnid: 356b9736ee7dbf387ea7b10a16beda8ea1ad5db0cbc53e749f5e4b3cf7545552
[member=11274]ppcman[/member], thanks! It seems to work great indeed.
[member=31975]saeveritt[/member] already decoded it completely, but he wants others to get a chance, so the game is still on!
o okay,
I am on a visit, but I think something along the lines:
function parseHexString(str) {
var result = [];
while (str.length >= 2) {
result.push(parseInt(str.substring(0, 2), 16));
str = str.substring(2, str.length);
}
return result;
}
var str='';//copy hex value from decoderawtransaction with null data
var ds = proto.DeckSpawn.deserializeBinary(new Uint8Array(parseHexString(str)));
console.log(proto.DeckSpawn.toObject(true, ds));
Excuse me for the off-topic post. It appears as a new account I am not permitted to start a new thread.
[member=28683]Ben[/member]'s Peershare forum has been down for more than half a day. I am hoping [member=28683]Ben[/member] will give a status update on the forum.
[quote=“Phoenix, post:12, topic:4076”]Excuse me for the off-topic post. It appears as a new account I am not permitted to start a new thread.
[member=28683]Ben[/member]'s Peershare forum has been down for more than half a day. I am hoping [member=28683]Ben[/member] will give a status update on the forum.[/quote]
[quote=“thehuntergames, post:15, topic:4076”]so how many cards are in this deck? is it 100 as the number_of_decimals here = 2
I notice things have changed since I first read the specs[/quote]
The deck spawn is just a registration of the asset.
As multiple issuances can be allowed, it is more logical to use a single type of transaction (card issue transaction) to issue cards.
That’s why it is not encoded in the deck spawn.