索拉纳。需要将所有地址从区块链导出到DB

发布于 2025-01-25 02:46:54 字数 706 浏览 2 评论 0原文

我找到了一种方法: https://docs.solana.com/developing/plugins/plugins/geyser-geyser-geyser-plugins https://github.com/solana-labs/solana-labs/solana-accountsdb-plugin-- Postgres

但为此需要部署有很高要求的验证器 https://docs.solana.com/running-validator/validator/validator-validator-reqs

是否可以找到这样的DB?
还是只能使用最小设置来配置验证器才能创建这样的DB?

I found a way:
https://docs.solana.com/developing/plugins/geyser-plugins OR
https://github.com/solana-labs/solana-accountsdb-plugin-postgres

But for this need to deploy the validator with very high requirements
https://docs.solana.com/running-validator/validator-reqs

Is it possible to find a dump such a DB?
Or can configure the validator with minimal settings only for create such a DB?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空心空情空意 2025-02-01 02:46:54

您可以运行一个低规格的验证器(甚至可能是从本地计算机中)来从网络中获取快照,一旦填充了分类帐,请使用solana-ledger-tool导出所有地址:

$ solana-ledger-tool accounts -l path/to/your/ledger --no-account-data

这是一些样本输出:

11111111111111111111111111111111:
  - balance: 0.000000001 SOL
  - owner: 'NativeLoader1111111111111111111111111111111'
  - executable: true
  - slot: 0
  - rent_epoch: 0
  - data_len: 14
AddressLookupTab1e1111111111111111111111111:
  - balance: 0.000000001 SOL
  - owner: 'NativeLoader1111111111111111111111111111111'
  - executable: true
  - slot: 0
  - rent_epoch: 0
  - data_len: 28
BPFLoader1111111111111111111111111111111111:
  - balance: 0.000000001 SOL
  - owner: 'NativeLoader1111111111111111111111111111111'
  - executable: true
  - slot: 0
  - rent_epoch: 0
  - data_len: 36

You could run a low-spec validator (maybe even from your local machine) just to fetch a snapshot from the network, and once the ledger is populated, use solana-ledger-tool to export all addresses:

$ solana-ledger-tool accounts -l path/to/your/ledger --no-account-data

Here's some sample output:

11111111111111111111111111111111:
  - balance: 0.000000001 SOL
  - owner: 'NativeLoader1111111111111111111111111111111'
  - executable: true
  - slot: 0
  - rent_epoch: 0
  - data_len: 14
AddressLookupTab1e1111111111111111111111111:
  - balance: 0.000000001 SOL
  - owner: 'NativeLoader1111111111111111111111111111111'
  - executable: true
  - slot: 0
  - rent_epoch: 0
  - data_len: 28
BPFLoader1111111111111111111111111111111111:
  - balance: 0.000000001 SOL
  - owner: 'NativeLoader1111111111111111111111111111111'
  - executable: true
  - slot: 0
  - rent_epoch: 0
  - data_len: 36
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文