Skip to content

Buckets

Romano edited this page Oct 2, 2018 · 2 revisions

Using Bbolt

Blocks bucket

This bucket has the hash as key and the block struct as value

BlockHeight bucket

This bucket has the blockheight as key and the blockhash as value. This can be used to find a block(hash) by using the blockheight

Transactions bucket

This bucket has the transaction hash as key and the transaction struct (*btcjson.TxRawResult) as value

Adresses bucket

This bucket has the address as key and the address.index struct as value. example how the struct should look like: https://explorer.viacoin.org/api/addr/VbVUXA4JdNiA7cFmcRHcinxDTK1G4YnwF4