mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-22 01:36:56 +01:00
fix example
This commit is contained in:
parent
c5f14f4df8
commit
e40e332b0f
@ -78,7 +78,7 @@ const tx = driver.Transaction.makeCreateTransaction(
|
||||
const txSigned = driver.Transaction.signTransaction(tx, alice.privateKey)
|
||||
|
||||
// Send the transaction off to BigchainDB
|
||||
let conn = new driver.Connection(PATH, { 'Content-Type': 'application/json' })
|
||||
let conn = new driver.Connection(API_PATH, { 'Content-Type': 'application/json' })
|
||||
|
||||
conn.postTransaction(txSigned)
|
||||
.then(() => conn.getStatus(txSigned.id))
|
||||
|
Loading…
Reference in New Issue
Block a user