bigchaindb / js-bigchaindb-driver

Official BigchainDB JavaScript driver for Node.js and the browser
https://docs.bigchaindb.com/projects/js-driver/en/latest/usage.html
Apache License 2.0
216 stars 92 forks source link

[Feature request] A function for querying transactions like the python driver provides #303

Open daniel-pan-moos opened 3 years ago

daniel-pan-moos commented 3 years ago

According to the documentation for js-bigchaindb-driver it apparently only offers functions for querying assets and metadata. I am speaking of searchAssets() and searchMetadata(). But unlike the python driver it does not support querying for transactions. I urgently need such a function in order to check that an asset (the transaction containing the asset) is owned by a certain public key.

getlarge commented 3 years ago

@daniel-pan-moos Maybe the functions you are looking for are documented here. You have getTransaction to retrieve a transaction by its id and listOutputs to retrieve transactions spent or unspent for a given publicKey.