Hot answers tagged

6 votes
Accepted

How do blockchain explorers know if the address is really generated?

Bitcoin transactions on-chain do not have addresses. They have scripts as output. In theory, pretty much any script is legal on-chain (ignoring standardness rules), including many unspendable ones. To ...
Pieter Wuille's user avatar
6 votes
Accepted

Can I use my Coinbase address to receive bitcoin? Why is it shorter than a normal address?

Normal (old) P2PKH addresses (1...) and P2SH addresses (3...) are 34 characters long. The newer native segwit addresses (bc1...) are longer, because they're case-insensitive and (in some cases) use ...
Pieter Wuille's user avatar
5 votes
Accepted

What are the OP codes associated with bc1?

Native segwit scriptPubKeys are of the form OP_n + <data>, so first a single number opcode followed by a push of some data (called the witness program). Specifically: For P2WPKH (pay to witness ...
Pieter Wuille's user avatar
5 votes

Can I use my Coinbase address to receive bitcoin? Why is it shorter than a normal address?

There are a number of different standard output types for Bitcoin transactions. Most standard types use addresses as shorthand to encode the spending conditions. The output types and the corresponding ...
Murch's user avatar
  • 74.3k
5 votes

Is address reuse always bad?

a) In this scenario, where B does not spend from the address except to send to the exchange, and A already knows how much B is receiving in rent, there is no privacy benefit strictly between A and B ...
luke's user avatar
  • 71
4 votes

Calculating addresses from Bitcoin transaction data

In short, the answer to your question depends on what you mean by "address". Historically, there are two different concepts with that name which I'll refer to as payment destinations and ...
Pieter Wuille's user avatar
4 votes

How to figure out the output address when there is no "address" key in vout["scriptPubKey"]

Those block explorers use an outdated notion of "address". This output simply has no address. The RPC output, as well as more modern block explorers such as https://mempool.space and https://...
Pieter Wuille's user avatar
4 votes

How do blockchain explorers know if the address is really generated?

An address is a standardized encoding of an output script with a checksum. Because of this checksum, a blockchain explorer can (with a high probability) tell between a valid and an invalid address. ...
Vojtěch Strnad's user avatar
4 votes

Why are some bc1 addresses 42 characters and others 62 characters in Base58?

P2WPKH (pay-to-witness-public-key-hash) addresses are 42 characters in length and P2WSH (pay-to-witness-script-hash) addresses are 62 characters in length (see here). bc1 addresses also use bech32 ...
Michael Folkson's user avatar
4 votes
Accepted

What could this OP_RETURN value be

The decoded OP_RETURN output OUT:D304E780755F46E62A42884421E39AF06342F0A4989704EE02989043769C4F93 matches the transaction identifier of the Ethereum transaction you mention first ...
Murch's user avatar
  • 74.3k
4 votes
Accepted

What’s going on with this "NULL address input" transaction?

When a receiver asks to be sent money, they specify the conditions under which they want to be able to spend the funds in an output script. Later when the receiver wants to spend their funds, they ...
Murch's user avatar
  • 74.3k
3 votes

Retrieve address corresponding to pubkey using bitcoin-cli/RPC

The ScriptPubKey 2103f0cc6d142d14a40937f12dbd99dbd9021328f45759e26f1877f2a838876709e1ac is a pay-to-public-key. There is no defined address for this output type. There is therefore no way to retrieve ...
Antoine Poinsot's user avatar
3 votes
Accepted

How to figure out the output address when there is no "address" key in vout["scriptPubKey"]

It is impossible to give the correct address for this output, because this output doesn’t follow one of the patterns that have an address standard. The correct way to refer to this output’s “...
Murch's user avatar
  • 74.3k
3 votes
Accepted

Adding a legacy address to an existing Electrum wallet

Yes you can add it to your electrum wallet as well, it support importing different types of addresses, you just gonna have to create a separate wallets for each address type (legacy, SegWit, and ...
Saxtheowl's user avatar
  • 2,780
3 votes
Accepted

get source address of a transaction

Bitcoin itself does not know the concept of an address. The term address arose from the desire to bring end users working with bitcoin closer to the way they manage their bank account. This is ...
dassd's user avatar
  • 1,049
3 votes

Change output matches payment output type, not previous output type

This is indeed a behaviour change starting with version 23.0, released in April 2022. This change was implemented in Bitcoin Core PR #23789 over a concern that users of a less-common address type ...
Antoine Poinsot's user avatar
2 votes
Accepted

Which are considered not-for-public fields of the ones returned by getaddressinfo?

From a security perspective (i.e. could directly lead to loss of funds) the only thing you should be worried about are private keys or seeds that are used to generate private keys. There are no ...
Michael Folkson's user avatar
2 votes

How to explore hardened addresses in bitcoin core descriptor wallet

You've imported the descriptor with "internal": true which means that the descriptor will be used only for change addresses. You cannot retrieve any addresses from it with getnewaddress as ...
Ava Chow's user avatar
  • 69.8k
2 votes

In bitcoin core can ScriptToUniv give us wallet address of public key?

There is no address format that can produce a P2PK script. You can produce a P2PKH address from a pubkey with the process that you describe, but that address will result in a P2PKH script. This is a ...
Ava Chow's user avatar
  • 69.8k
2 votes
Accepted

Get the scriptPubKey from a Taproot address

You can use the reference Python implementation of bech32 / bech32m. Decode the address using bech32_decode and get the human readable part, data encoded (the scriptPubKey you are looking for), and ...
Antoine Poinsot's user avatar
2 votes
Accepted

Can addresses be linked to "wallets"?

No one can tell whether two addresses were generated from the same HD seed or generated by the same wallet. The process is designed to produce addresses in a way that is mathematically ...
RedGrittyBrick's user avatar
2 votes

Closing address of a Lightning channel

Yes, it is possible! In BOLT 2 you have a shutdown message that looks like this type: 38 (shutdown) data: [channel_id:channel_id] [u16:len] [len*byte:scriptpubkey] The scriptpubkey does the trick. ...
vincenzopalazzo's user avatar
2 votes

How can I track my bitcoins to the blockchain?

how would I find those coins within the blockchain without a [wallet] One way would be to write down a list of addresses that your wallet reports as having a balance. You can then enter those ...
RedGrittyBrick's user avatar
2 votes

I need to get BTC addresses from a 12 word phrase, but I don't understand what to do next

To get from the seed to the BIP84 address (intended for the P2WPKH), you must follow the derivation path defines in BIP84 standard and apply the appropriate derivation operation. The derivation path ...
dassd's user avatar
  • 1,049
2 votes
Accepted

Stuck dissecting a P2PKH Bitcoin transaction, what am I doing wrong?

The process of calculating a Bitcoin P2PKH address in base56check encoding format is as follows: get a public key from the private key hash the public key with the SHA256 hash function hash the ...
dassd's user avatar
  • 1,049
2 votes

Can i send bitcoin from one address in wallet with multiple addresses?

Can i sweep or send btc from the addresses individually to another address/wallet like electrum? Yes, but you sweep the private keys not the addresses. How do i do this exactly? By following ...
RedGrittyBrick's user avatar
2 votes

Locate bitcoin from 11+ years ago

It is possible that you might have used blockchain.info. They would email you your wallet ID after creating a wallet. If you still have access to the email account you used at that time, you can ...
ReWallet's user avatar
1 vote
Accepted

How to use the base58 in c++

This solution is used by Bitcoin Core base58.h // Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2023 Loopite. #ifndef ...
Loopite's user avatar
  • 301
1 vote

Blockchain API not sending subscribed info

I faced the same problem and the solution is to listen to all transactions and to detect the transaction sent to our address in this way, I tried a method and it works fine. ws.addEventListener('open',...
BeycanDeveloper's user avatar
1 vote

Move p2pk with addresses

The security design of Bitcoin ensures that only the private key owner can move the funds. This is a fundamental aspect of Bitcoin's security and trustlessness. Without the private key, the funds ...
Mani T's user avatar
  • 187

Only top scored, non community-wiki answers of a minimum length are eligible