From e2da49751c0314322505936abafd3add402339d4 Mon Sep 17 00:00:00 2001 From: manolodewiner Date: Wed, 4 Apr 2018 10:27:23 +0200 Subject: [PATCH] postTransaction --> postTransactionCommit in README --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 495af1f..079d8a4 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,10 @@ ## Breaking changes -- **Version 4.0** of BigchainDB JavaScript Driver makes the driver compatible with BigchainDB 2.0. There are new functions for posting transactions. Check [older versions](https://docs.bigchaindb.com/projects/js-driver/en/latest/readme.html#features) +- **Version 4.0** of BigchainDB JavaScript Driver makes the driver compatible with BigchainDB 2.0. There are new functions for sending off transactions along with other changes. Check [older versions](https://docs.bigchaindb.com/projects/js-driver/en/latest/readme.html#features) - **Version 3.2** of BigchainDB JavaScript Driver introduces a new way of creating transfer transactions. Check [older versions](https://docs.bigchaindb.com/projects/js-driver/en/latest/readme.html#features) + ## Contents * [Installation and Usage with package managers (npm/yarn)](#installation-and-usage-with-package-managers-npmyarn) @@ -74,8 +75,7 @@ const txSigned = driver.Transaction.signTransaction(tx, alice.privateKey) // Send the transaction off to BigchainDB const conn = new driver.Connection(API_PATH) -conn.postTransaction(txSigned) - .then(() => conn.pollStatusAndFetchTransaction(txSigned.id)) +conn.postTransactionCommit(txSigned) .then(retrievedTx => console.log('Transaction', retrievedTx.id, 'successfully posted.')) ``` @@ -88,7 +88,7 @@ conn.postTransaction(txSigned) BigchainDB boilerplate - +