简体   繁体   中英

How to get UTXOS and Transactions related to a specific address without using Bitcore?

I am developing a wallet for HappyCoin which is similar but different fork of Bitcoin.

Since this coin doesn't have addressindex rpc methods(getaddressbalance, getaddressdeltas, getaddressmempool, getaddresstxids, getaddressutxos), I can't get utxos and transactions for a specific address.

Since it is quite different from Bitcoin I can't use bitcore-lib or bitcore-node.

How can I get utxos and transactions related to a specific address using legacy rpc methods?

Here are the rpc methods this coin supports.

I've tried with listunspent and listtransactions but these only work with local wallet address not other addresses.

You could try first importing the address as a watch-only address into your wallet using:

importaddress <address> [label]

Once the rescan is complete (it has to scan the entire blockchain for all transactions related to this address), which can take over an hour.

You should then be able to use the wallet commands to list unspent and tx'es.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM