diff --git a/README.md b/README.md index 285ee2f..079d8a4 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,13 @@ | `0.10` | `0.1.x` | | `1.0.0` | `0.3.x` | | `>= 1.3.0` | `3.x.x` | +| `>= 2.0.0` | `4.x.x` | ## Breaking changes -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) + +- **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 @@ -71,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.')) ``` @@ -85,7 +88,7 @@ conn.postTransaction(txSigned) BigchainDB boilerplate - +