1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-24 19:10:12 +01:00

update docs

This commit is contained in:
manolodewiner 2018-06-19 16:58:42 +02:00
parent 34c82a1ae8
commit 9077d6ce34

View File

@ -51,14 +51,17 @@ Older versions
anymore the `pollStatusAndFetchTransaction()` method as there are three 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. - `commit` using the `postTransaction` or the `postTransactionCommit`: the response will return after the transaction is committed to a block.
- `sync` using the `postTransactionSync`: the response will return after the transaction is validated. - `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. - `async` using the `postTransactionAsync`: the response will return immediately and not wait to see if the transaction is valid.
By default in the docs we will use the `postTransactionCommit` as is way of 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 being sure that the transaction is validated and commited to a block, so
there will not be any issue if you try to do any other action with the asset immediately. there will not be any issue if you try to do any other action with the asset immediately.
Note: In order to not create breaking changes, both methods `postTransaction` and `postTransactionCommit` are kept although
they do exactly the same
**Version 3.2.x** **Version 3.2.x**