text improvement in readme

This commit is contained in:
manolodewiner 2018-04-04 10:44:15 +02:00
parent e2da49751c
commit c127b1c2a9
1 changed files with 4 additions and 3 deletions

View File

@ -46,17 +46,18 @@ Older versions
**Version 4.x.x**
As part of the changes in the BigchainDB 2.0 server, some endpoint were
As part of the changes in the BigchainDB 2.0 server, some endpoints were
modified. In order to be consistent with them, the JS driver does not have
anymore the `pollStatusAndFetchTransaction()` method as there are three
different ways of posting a transaction.
different ways of posting a transaction:
- `async` using the `postTransaction`: the response will return immediately and not wait to see if the transaction is valid.
- `sync` using the `postTransactionSync`: the response will return after the transaction is validated.
- `commit` using the `postTransactionCommit`: the response will return after the transaction is committed to a block.
By default in the docs we will use the `postTransactionCommit` as is way of
being sure that the transaction is validated and commited to a block, so
there will not be any issue if you try to transfer the asset immediately.
there will not be any issue if you try to do any other action with the asset immediately.
**Version 3.2.x**