MetacoSA / QBitNinja

An Open Source and powerful blockchain API
MIT License
68 stars 42 forks source link

How to get a list of transaction for address? #66

Closed bazooka70 closed 6 years ago

bazooka70 commented 6 years ago

Can I get a list of transactions for a given address using QBitNinja?

NicolasDorier commented 6 years ago

https://api.qbit.ninja/balances/15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe

bazooka70 commented 6 years ago

Thanks mate! can I somehow get the tx fee for each transaction?

NicolasDorier commented 6 years ago

Yes, see the api here https://api.qbit.ninja/

bazooka70 commented 6 years ago

So for each operation/tx in the balances I need to call transactions/tx?

NicolasDorier commented 6 years ago

Yes.

bazooka70 commented 6 years ago

hmmmm... Isn't it possible to already include the fee in the balances?

NicolasDorier commented 6 years ago

Nop, it would kill performance for the address query.

bazooka70 commented 6 years ago

I see. Thanks again :+1: BTW, any alt coins also supported for QBitNinja?

NicolasDorier commented 6 years ago

no, though if someone feel up to the task, it should be easily possible. But it would require 1 server per coins (compared with nbxplorer which need 1 server for ruling all)