Skip to content
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

Can't understand what the key needed #3617

Open
2jumper3 opened this issue Aug 2, 2023 · 0 comments
Open

Can't understand what the key needed #3617

2jumper3 opened this issue Aug 2, 2023 · 0 comments

Comments

@2jumper3
Copy link

2jumper3 commented Aug 2, 2023

Hi all! We use this documentation:
https://github.com/bitpay/bitcore/blob/master/packages/bitcore-node/docs/api-documentation.md

We are interested in this method:
Get Wallet Transactions
GET /api/BTC/mainnet/wallet/:pubKey/transactions

Purely theoretically, it refers to the public key of a Bitcoin wallet.
To obtain it, I take the private key for the Bitcoin wallet from WalletCore (it's definitely correct, we use it everywhere). From that private key, I use WalletCore to derive the public key Secp256k1. From the public key, I get the data, and from that, I get the hex string.

I've tried both compressed and uncompressed public keys, but the response is always "wallet not found".
I've also tried other variations besides Secp256k1, even attempted to convert it to base58. However, it was all in vain.

And the final method:
Get Address Transactions
GET /api/BTC/mainnet/address/:address/txs
As an alternative, it doesn't suit our needs because the response lacks the specific data we require. It only provides txid and value, without even including the date or any other relevant information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@2jumper3 and others