0

Hi im trying to call this https://docs.blockfrost.io/#tag/Cardano-Addresses/paths/~1addresses~1{address}~1transactions/get from some code I wrote (images attached below) and get a None or Empty value returned.

I am using the receiving address from my wallet and am wondering if I'm using the wrong address? how should I find the right one?

Below is the output of some print statements I wrote:

endpoint:

addresses/addr1q8mw47vt7kf69ze5x92luhrxvk0p2vpd0emvhlg704u7cttdrr3j8j5k5yacga4ckv6lnx4p0la57q7nf24eszqk0r2q59elsd/transactions

Full Request:

https://cardano-mainnet.blockfrost.io/api/v0/addresses/addr1q8mw47vt7kf69ze5x92luhrxvk0p2vpd0emvhlg704u7cttdrr3j8j5k5yacga4ckv6lnx4p0la57q7nf24eszqk0r2q59elsd/transactions

Returned Value: None

enter image description here enter image description here enter image description here

1 Answer 1

2

Going by your question I will assume you are trying to get the transaction history of your wallet? The endpoint you are using requires an address previously associated with a transaction, and an unused receiving address won't return anything.

Your wallet consists of multiple UTxOs across multiple addresses, and that information is persisted locally by the wallet software so it's easy to obtain details like the transaction history. However in the context of statelessly querying Blockfrost you will have to retrieve all these addresses using the Account associated addresses endpoint and then query the transactions per address. It might be a little easier using the Koios API because the resource takes an array of addresses but there is no easy way to achieve what you want at the moment.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.