kevacoin-project / kevacoin

Kevacoin source tree
https://www.kevacoin.org
MIT License
32 stars 16 forks source link

API example to get key-value from namespace or transaction that you don't own #18

Open markg85 opened 4 years ago

markg85 commented 4 years ago

Hi,

Somewhere on the kevacoin site it's mentioned that the blockchain is public and that i should be able to see the transactions that others made. With that i specifically mean key-value transactions.

I'm hoping for an example where i can get the whole json data without the need to provide a key. I suppose this is, technically, the same as using kevacoin-cli keva_filter <namespace> "*"

With this, i also want to be able to get that very same data from namespaces i did not made. The documentation is not clear on how to do that or even if it's supported.

Cheers, Mark

kevacoin-project commented 3 years ago

The same command-line option kevacoin-cli keva_filter <namespace> "*" can be used to list all keys in a namespace, regardless of who creates the namespaces. This is because, as you mentioned, the blockchain database is a public database.