mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-22 09:46:58 +01:00
Adjust README.md
This commit is contained in:
parent
4f6308e8a8
commit
7f49f67cda
11
README.md
11
README.md
@ -75,13 +75,10 @@ const tx = driver.Transaction.makeCreateTransaction(
|
|||||||
const txSigned = driver.Transaction.signTransaction(tx, alice.privateKey);
|
const txSigned = driver.Transaction.signTransaction(tx, alice.privateKey);
|
||||||
|
|
||||||
// send it off to BigchainDB
|
// send it off to BigchainDB
|
||||||
driver.Connection
|
let conn = driver.Connection(PATH);
|
||||||
.postTransaction(txSigned, API_PATH)
|
conn.postTransaction(txSigned)
|
||||||
.then((res) => {
|
.then(() => conn.getStatus(txSigned.id))
|
||||||
// request the status of the transaction
|
.then((res) => console.log('Transaction status:', res.status));
|
||||||
driver.Connection
|
|
||||||
.getStatus(txSigned.id, API_PATH)
|
|
||||||
.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).
|
You may also be interested in some [long-form tutorials with actual code](https://github.com/bigchaindb/kyber).
|
||||||
|
Loading…
Reference in New Issue
Block a user