bigchaindb / bigchaindb-driver

Official Python driver for BigchainDB
https://www.bigchaindb.com
Apache License 2.0
105 stars 104 forks source link

Feature - Retrieve a transaction ownership chain using the asset ID #277

Closed cboothe closed 7 years ago

cboothe commented 7 years ago

Description

Currently the only way to retrieve a transaction is by ID. However there is no way to retrieve a transaction ownership chain using the driver.

BigchainDB already has a get_transactions_filtered() method but doesn't allow both CREATE and TRANSFER operations to be searched at the same time. The operation would be sent as 'ALL' or a list of transactions to include. Given a created asset ID as the transaction ID return the CREATE transaction as well as any TRANSFER transactions.

sbellem commented 7 years ago

Hi @cboothe, did you try .get()`? I am sorry we did not add examples of its usage. Will do so soon via #278

Just so you know the server side docs is here

cboothe commented 7 years ago

Hi @sbellem, thanks for your help! That is exactly what I was looking for.