Adjust README.md

This commit is contained in:
Tim Daubenschütz 2017-05-11 17:31:06 +02:00
parent 4f6308e8a8
commit 7f49f67cda
1 changed files with 4 additions and 7 deletions

View File

@ -75,13 +75,10 @@ const tx = driver.Transaction.makeCreateTransaction(
const txSigned = driver.Transaction.signTransaction(tx, alice.privateKey);
// send it off to BigchainDB
driver.Connection
.postTransaction(txSigned, API_PATH)
.then((res) => {
// request the status of the transaction
driver.Connection
.getStatus(txSigned.id, API_PATH)
.then((res) => console.log('Transaction status:', res.status))});
let conn = driver.Connection(PATH);
conn.postTransaction(txSigned)
.then(() => conn.getStatus(txSigned.id))
.then((res) => console.log('Transaction status:', res.status));
```
You may also be interested in some [long-form tutorials with actual code](https://github.com/bigchaindb/kyber).