-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how exactly is data stored in the rocksdb please #1159
Comments
If you really want to query rocksdb directly see doc/schema.md for how the data is stored there. Checking if an address has some balance can easily be done with electrs running using the Electrum protocol. |
great thanks didnt see that, wanted actually to see if could put the data
onto superbase. any help appreciated/
…On Tue, Feb 18, 2025 at 10:58 PM Antoni Spaanderman < ***@***.***> wrote:
If you really want to query rocksdb directly see doc/schema.md
<https://github.com/romanz/electrs/blob/master/doc/schema.md> for how the
data is stored there. Checking if an address has some balance can easily be
done with electrs running using the Electrum protocol.
—
Reply to this email directly, view it on GitHub
<#1159 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2VBKGUDCDIRVNODEKBDU32QONHLAVCNFSM6AAAAABXJSEBPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRWHEYTKNZYG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
[image: antonilol]*antonilol* left a comment (romanz/electrs#1159)
<#1159 (comment)>
If you really want to query rocksdb directly see doc/schema.md
<https://github.com/romanz/electrs/blob/master/doc/schema.md> for how the
data is stored there. Checking if an address has some balance can easily be
done with electrs running using the Electrum protocol.
—
Reply to this email directly, view it on GitHub
<#1159 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2VBKGUDCDIRVNODEKBDU32QONHLAVCNFSM6AAAAABXJSEBPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRWHEYTKNZYG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
sorry just found this RocksDB-Cloud, anyone used or considered this? thanks
again
…On Wed, Feb 19, 2025 at 8:13 AM Neil Croft ***@***.***> wrote:
great thanks didnt see that, wanted actually to see if could put the data
onto superbase. any help appreciated/
On Tue, Feb 18, 2025 at 10:58 PM Antoni Spaanderman <
***@***.***> wrote:
> If you really want to query rocksdb directly see doc/schema.md
> <https://github.com/romanz/electrs/blob/master/doc/schema.md> for how
> the data is stored there. Checking if an address has some balance can
> easily be done with electrs running using the Electrum protocol.
>
> —
> Reply to this email directly, view it on GitHub
> <#1159 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AB2VBKGUDCDIRVNODEKBDU32QONHLAVCNFSM6AAAAABXJSEBPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRWHEYTKNZYG4>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
> [image: antonilol]*antonilol* left a comment (romanz/electrs#1159)
> <#1159 (comment)>
>
> If you really want to query rocksdb directly see doc/schema.md
> <https://github.com/romanz/electrs/blob/master/doc/schema.md> for how
> the data is stored there. Checking if an address has some balance can
> easily be done with electrs running using the Electrum protocol.
>
> —
> Reply to this email directly, view it on GitHub
> <#1159 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AB2VBKGUDCDIRVNODEKBDU32QONHLAVCNFSM6AAAAABXJSEBPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRWHEYTKNZYG4>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
so am trying to query the rocksdb directly from rust_rocksdb library and basic code, say for example i have a BTC address and i want to see if this address has a balance and or has more than 1 transaction. I cant find any data say associated with BTC address that i know has BTC balance
i check all column_families, so i think im looking up incorrectly on the byte array? or doing some conversions wrong or there is different formats for different data? any help apprecaited :)
here is my basic code
extern crate rocksdb;
use rocksdb::{DB, Options, ColumnFamily};
use bitcoin::{Address};
use std::str::FromStr;
fn btc_address_to_script_hash(btc_address: &str) -> Option<Vec> {
// Parse the Bitcoin address
let address = Address::from_str(btc_address).ok()?;
}
fn main() {
let path = "/electrs/db/bitcoin"; // Path to your RocksDB instance
let btc_address = "198aMn6ZYAczwrE5NvNTUMyJ5qkfy4g3Hi"; // Replace with the actual BTC address
}
The text was updated successfully, but these errors were encountered: