简体   繁体   English

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

[英]Solana. Need to export all addresses from the blockchain to the DB

I found a way: https://docs.solana.com/developing/plugins/geyser-plugins OR https://github.com/solana-labs/solana-accountsdb-plugin-postgres我找到了一种方法: https://docs.solana.com/developing/plugins/geyser-pluginshttps://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但是为此需要部署具有非常高要求的验证器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?或者可以仅使用最少的设置来配置验证器以创建这样的数据库?

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:你可以运行一个低规格的验证器(甚至可以从你的本地机器)只是为了从 .network 获取快照,一旦分类帐被填充,使用solana-ledger-tool导出所有地址:

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

Here's some sample output:这是一些示例 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 直接从区块链中检索交易中的“至”和“来自”地址 - Retrieving 'to' and 'from' addresses in transaction directly from blockchain 索拉纳。 不匹配的转账金额和目标账户余额变化 - Solana. Not matched transfer amount and target account balance change 我们可以从 Solana 区块链中的智能合约进行 HTTP 调用吗? - Can we make an HTTP call from a smart contract in Solana blockchain? 区块链上存在比特币地址 - presence of bitcoin addresses on blockchain 需要从任何区块链上的区块中检索交易 - need to retrieve transaction from a block on any blockchain 索拉纳区块链。 如何生成私钥? - Solana blockchain. How can i generate private key? 如何在 Solana 区块链上分析已确认交易中的 tokenBalances? - How to analyse tokenBalances in a confirmed transaction on the Solana blockchain? 如何在没有完全同步的情况下仅从区块链中接收有关特定地址集的交易? - How to receive only the transactions about particular set of addresses from blockchain without full syncing? 如何将 Magic 认证与 Flutter 集成,让 Solana 作为我们的区块链? - How to integrate Magic authentication with flutter and have Solana as our blockchain? 为什么我们在区块链中需要 TLSNotary? - Why do we need TLSNotary in Blockchain?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM