Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "javalon", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "javascript api for the avalon blockchain", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -106,11 +106,10 @@ # Javalon | ||
``` | ||
var newTx = { | ||
type: javalon.TransactionType.FOLLOW, | ||
data: { | ||
target: 'bob' | ||
} | ||
var newTx = { | ||
type: javalon.TransactionType.FOLLOW, | ||
data: { | ||
target: 'bob' | ||
} | ||
} | ||
// then you sign it | ||
newTx = javalon.sign(alice_key, 'alice', newTx) | ||
newTx = javalon.sign(alice_key, 'alice', newTx) | ||
``` | ||
@@ -121,5 +120,5 @@ After this step, the transaction is forged with a timestamp, hash, and signature. This transaction needs to be sent in the next 60 secs or will be forever invalid. | ||
``` | ||
javalon.sendTransaction(newTx, function(err, res) { | ||
cb(err, res) | ||
}) | ||
javalon.sendTransaction(newTx, function(err, res) { | ||
cb(err, res) | ||
}) | ||
``` | ||
@@ -130,5 +129,5 @@ The callback will return once your transaction has been included in a new block. | ||
``` | ||
javalon.sendRawTransaction(newTx, function(err, res) { | ||
cb(err, res) | ||
}) | ||
javalon.sendRawTransaction(newTx, function(err, res) { | ||
cb(err, res) | ||
}) | ||
``` | ||
@@ -135,0 +134,0 @@ |
18047
146