Search content
Sort by

Showing 20 of 21 results by FractalEncrypt
Post
Topic
Board Bitcoin Technical Support
Re: How to write raw taproot transaction and apply an RBF flag?
by
FractalEncrypt
on 15/11/2021, 20:58:55 UTC
I was able to find my RBF answer here
https://github.com/BlockchainCommons/Learning-Bitcoin-from-the-Command-Line/blob/master/05_2_Resending_a_Transaction_with_RBF.md

But do I need a sequence for each input? If I have 4 inputs, do I need 4 sequence fields?
Post
Topic
Board Bitcoin Technical Support
Re: How to write raw taproot transaction and apply an RBF flag?
by
FractalEncrypt
on 15/11/2021, 20:51:26 UTC
Thank you!
I ran the help for createrawtransaction and I see what you're saying about the sequence field. I also see it references locktime and replaceable fields. Replaceable seems like it would need to be set to True to turn on RBF, correct?

For the sequence number, it can be anything as long as it's lower than 4294967293? (and lol where does that number come from? Now I am curious AF)
Post
Topic
Board Bitcoin Technical Support
Merits 1 from 1 user
Topic OP
How to write raw taproot transaction and apply an RBF flag?
by
FractalEncrypt
on 15/11/2021, 15:52:01 UTC
⭐ Merited by ETFbitcoin (1)
Hi all,
I have 2 unrelated questions, but both about how to properly formulate a transaction template.

1. I'd like to know how to add an RBF indicator to the transaction (and any relevant details).

2. I'd like to know how to create a taproot transaction template I can use

Here's my current standard raw transaction template I use;

Code:

 createrawtransaction \
'[{"txid": "txid1", "vout": vout1},
{"txid": "txid2", "vout": vout2},
{"txid": "txid3", "vout": vout3},
{"txid": "txid4", "vout": vout4}]' \
'{"address1": Amount1,
"address2": Amount2,
"address3": Amount3,
"address4": Amount4}'


If there are any resources you can point me to, please let me know.

The software I am using to create, sign, and send transactions is Bitcoin Core QT (console)
Post
Topic
Board Collectibles
Re: [WoodCollector]Nine Public Coin Collection Completed
by
FractalEncrypt
on 19/05/2021, 00:07:24 UTC
Intriguing, what makes someone a full member? What kind of member am I?
Post
Topic
Board Collectibles
Re: [WoodCollector]Nine Public Coin Collection Completed
by
FractalEncrypt
on 15/05/2021, 13:28:05 UTC
I looked at the pictures and I actually found some clues in addresses.

What happened in this post:

https://bitcointalk.org/index.php?topic=5321663.msg56490105#msg56490105

FOr me I see the following
The topic or board you are looking for appears to be either missing or off limits to you.

Thnaks

[EDIT]
Okay was able to see the post. So, all this was a scam. Feel bad for tee. He/she worked hard on colllecting all 9 coins.

I get the same error...now y'all have me curious!
Post
Topic
Board Bitcoin Technical Support
Re: Bitcoin Core won't send Tx (but testnet will) Error: scriptpubkey (code -26)
by
FractalEncrypt
on 14/01/2021, 20:54:46 UTC
This is all super info, really appreciate it!!!
Post
Topic
Board Bitcoin Technical Support
Re: Bitcoin Core won't send Tx (but testnet will) Error: scriptpubkey (code -26)
by
FractalEncrypt
on 09/01/2021, 03:58:33 UTC
EDIT: Maybe I am exceeding the OP_RETURN byte limit?
If so, is there a way to include my full data in a single or batched transaction somehow?
Not in a single transaction, you're only allowed a single OP_RETURN. So, you'd need to create multiple transactions, each with an OP_RETURN.


EDIT 2: I came across this, is there a way I can change my conf (OP_RETURN data size) to allow me to relay to tx to the network?
The issue  you're going to face with that "solution" is that while your node would then ignore the OP_RETURN data size and try to send the transaction out, every other node would reject it... unless you could find a friendly miner that agreed to manually include the transaction directly into a block, your transaction would not propagate across the network well (or at all) and would not be seen by any miners.


ps. The Bitcoin blockchain is not really designed for storing "arbitrary" data like this... it's borderline "spam" Tongue

I...understand. And I appreciate your help and guidance.
Post
Topic
Board Bitcoin Technical Support
Merits 1 from 1 user
Topic OP
Bitcoin Core won't send Tx (but testnet will) Error: scriptpubkey (code -26)
by
FractalEncrypt
on 09/01/2021, 03:10:15 UTC
⭐ Merited by ETFbitcoin (1)
I have created a transaction with some null data and it sends fine on testnet, but on mainnet I am getting and error scriptpubkey (code -26)

I did some searching this seems to be an error for a non-standard transaction, but I don't see anything in the Debug log showing why the error.

Using Bitcoin Core QT GUI Console 0.20.1
Windows 10

This is the Transaction template

Code:
createrawtransaction \
'[{"txid": "txid1", "vout": vout1},
{"txid": "txid2", "vout": vout2},
{"txid": "txid3", "vout": vout3},
{"txid": "txid4", "vout": vout4}]' \
'{"address1": Amount,
"address2": Amount,
"address3": Amount,
"address4": Amount,
"data": ""}'

This is the data I want to include
492c204672616374616c456e6372797074206365727469667920746861742074686520426974636 f696e2046756c6c204e6f6465205363756c707475726520342e3020776173206372656174656420 6f6e204a616e7561727920332c203230323120746f20636f6d6d656d6f726174652074686520313 2207965617220616e6e6976657273617279206f66205361746f736869206d696e696e6720746865 2047656e6573697320426c6f636b2e205468697320434f41207761732063726561746564206f6e2 04a616e7561727920382c203230323120746f20636f6d6d656d6f726174652074686520616e6e69 76657273617279206f6620746865206d696e696e67206f6620426c6f636b20312e0a

Here's the testnet transaction with this data included
https://live.blockcypher.com/btc-testnet/tx/04e4a0d8cdaba44bf34525d361b15e7ffdc69d2e12f4f3d3b3e1ae0e31b394ed/
Post
Topic
Board Bitcoin Technical Support
Re: Using the Data field in OP_RETURN transactions, and converting text to hex
by
FractalEncrypt
on 08/01/2021, 12:28:21 UTC


Maybe try wrapping your "data" in " "'s? Huh

I just used this on the Bitcoin Core console:
Code:
createrawtransaction '[{"txid": "TXID", "vout": 0}]' '{"Address1": Amount1, "data": "4920616d204672616374616c456e6372797074"}'

And it immediately created the rawtransaction, which includes the following when I decoderawtransaction:
Code:
...
{
      "value": 0.00000000,
      "n": 1,
      "scriptPubKey": {
        "asm": "OP_RETURN 4920616d204672616374616c456e6372797074",
        "hex": "6a134920616d204672616374616c456e6372797074",
        "type": "nulldata"
}
...

#1
This worked perfectly,
#2
I love you
# 3
I think you're the coolest!
Post
Topic
Board Bitcoin Technical Support
Merits 3 from 2 users
Topic OP
Using the Data field in OP_RETURN transactions, and converting text to hex
by
FractalEncrypt
on 08/01/2021, 01:22:36 UTC
⭐ Merited by ETFbitcoin (2) ,HCP (1)
I am trying to create a transaction using this as my template here (I'm using Bitcoin Core 0.20.1 testnet)


The RPC "createrawtransaction" of Bitcoin Core 0.12 will be extended, and directly supports to create OP_RETURN transactions as follows:

Quote
Code:
bitcoin-cli "createrawtransaction" '[{"txid":"hash","vout":n}, ...] '{"data": "0123..."}'

When I create the raw transaction, my node is giving me an error about the data I want to include.

For example, I tried to convert "I am FractalEncrypt" to hex and I get this:
4920616d204672616374616c456e6372797074

When I try to insert this string into the data field below I get
Error: Error parsing JSON:


createrawtransaction \
'[{"txid": "txid1", "vout": vout1},
{"txid": "txid2", "vout": vout2}]' \
'{"address1": Amount1,
"address2": Amount2,
"address3": Amount3,
"data": 4920616d204672616374616c456e6372797074}'

If instead of 4920616d204672616374616c456e6372797074, I just use 49 (the first two digits)
Immediately, createrawtranstion works, and I get my raw tx hex.

I tested the same thing with "hello world"
68656c6c6f20776f726c64

This gives the JSON error, but if I only use the first 2 digits, 68, then it works.

So obviously I am converting from text to the hex strings incorrectly, I'm using "text to hexadecimal" converters online, I've tried 2, they give identical results...
Here's one - https://www.rapidtables.com/convert/number/ascii-to-hex.html
Here's the other - https://www.online-toolz.com/tools/text-hex-convertor.php

Post
Topic
Board Bitcoin Technical Support
Re: Why 2 address types in Testnet Bitcoin QT console and "Receive Tab"?
by
FractalEncrypt
on 11/02/2020, 12:25:13 UTC
Your problem is that getnewaddress actually takes TWO arguments... the first is "label"... and the second one is "address_type"

Quote from: help getnewaddress
getnewaddress ( "label" "address_type" )

Returns a new Bitcoin address for receiving payments.
If 'label' is specified, it is added to the address book
so payments received with the address will be associated with 'label'.

Arguments:
1. label           (string, optional, default="") The label name for the address to be linked to. It can also be set to the empty string "" to represent the default label. The label does not need to exist, it will be created if there is no label by the given name.
2. address_type    (string, optional, default=set by -addresstype) The address type to use. Options are "legacy", "p2sh-segwit", and "bech32".

So, what you have done is generate a bunch of the "default type" addresses and labelled them "bech32" and "legacy" and "p2sh-segwit". Roll Eyes If you have a look in your "Window -> Receiving Addresses" list, you'll see a bunch of addresses with those labels! Tongue


NOTE: while it says "label" is optional, that really means you just don't need to populate it and can use an empty string ie. "". BUT if you're going to include arguments AFTER it, it still needs to be specified. You need to use the "address_type", so you MUST specify the label. This means that if you want to generate new addresses on the console you need to use:
Code:
getnewaddress "" "p2sh-segwit"
getnewaddress "" "bech32"
getnewaddress "" "legacy"


NOTE2: setting the value in .conf file simply sets the default "address_type" that will be used if you don't specify anything when using getnewaddress command. You can still override that (ie. have address_type=bech32 in .conf, but use getnewaddress "" "legacy" on the console)

Awesome, thanks! makes perfect sense, and whoops, yes labelled Smiley
Post
Topic
Board Bitcoin Technical Support
Re: Why 2 address types in Testnet Bitcoin QT console and "Receive Tab"?
by
FractalEncrypt
on 11/02/2020, 00:18:51 UTC
Thanks!
now I get this...
mrLuuW2hwraLWa3tSjTde9e25xuCk2xyvQ

if I make it say this in the conf;
addresstype=bech32
changetype=bech32

I get this
n2HaJyTFXbBGABtyi5puhCQS6NFw4SxKyB


if I change .CONF to;
addresstype=p2sh-segwit
changetype=p2sh-segwit

I get this;
mmwKf8knfPpFodAcxxMd3dghzLHiNkqCXX

what's the difference between these and the tb1 addresses (and the "2" addresses)?
Post
Topic
Board Collectibles
Re: [WoodCollector]Nine Public Coin Collection Completed
by
FractalEncrypt
on 11/02/2020, 00:06:41 UTC
Wow shit just got exciting!
Post
Topic
Board Bitcoin Technical Support
Merits 2 from 1 user
Topic OP
Why 2 address types in Testnet Bitcoin QT console and "Receive Tab"?
by
FractalEncrypt
on 10/02/2020, 23:28:08 UTC
⭐ Merited by LoyceV (2)
I have a question about generating new addresses in Bitcoin QT on testnet.

Questions:
1. Can I generate 10 addresses at a time, if so, what's the command?

2. Why can I only create Testnet P2SH addresses in the console?
(when I click the "Create New Receiving Address" button in the receive tab of QT, I get a bech32 address, like this; tb1q5h7tk85rjwwap4jsxlje8kl9mfr20c7qghx6qa)



In the console, when I run getnewaddress, I only get P2SH addresses, am I doing something wrong here?
Here are a few commands and the resulting addresses

  • getnewaddress "p2sh-segwit"
    2NGQJDo2aAPE8CHGxEc48BJ4S9GzqQujhVF

    getnewaddress "legacy"
    2NAoHS6cfN4oVj9tJrmTgbNEjtHpjyW26RZ

    getnewaddress "bech32"
    2N3ppZqJdDKQfQKyFxmbLhoiVSzjk6KfybU

    getnewaddress ("bech32")
    2N3e1F587BJBPatxThFBt4oyiU3gPr1zos4

    getnewaddress '("bech32")'
    2N2VbaEmjmB2rJ49mgZEYRCunAxG727Xj5a




Bitcoin Client Software and Version Number: Testnet Bitcoin Core 0.19.1
Operating System: Windows 10 64-bit
System Hardware Specs: AMD threadripper 2950x 16-core with 32gb memory
Description of Problem: Unable to create bech32 addresses in testnet QT console
Any Related Addresses: None
Any Related Transaction IDs: None
Screenshot of the problem: NA
Log Files from the Bitcoin Client: NA

Post
Topic
Board Development & Technical Discussion
Re: Testnet Faucet
by
FractalEncrypt
on 06/02/2020, 18:11:42 UTC
Wonderful, will test it out! Thanks for the contribution.
Post
Topic
Board Development & Technical Discussion
Re: Proper workflow to CoinJoin combined PSBTs?
by
FractalEncrypt
on 06/02/2020, 00:41:15 UTC
I am very embarrassed, just circling back to share the solution for the community (I'm an idiot).

The above workflow works perfectly. My problem was that I had an incorrect "vout" value in one of my inputs. Basically I was trying to spend money I don't have (/facepalm). As soon as I corrected that, everything worked flawlessly.

Here's my multi-wallet.dat file Coinjoin Smiley https://live.blockcypher.com/btc-testnet/tx/537d4f9c49e06916c8f74ad53e52c3389f1654f4dec1014e2335c7ad49e268ab/
Post
Topic
Board Development & Technical Discussion
Topic OP
Proper workflow to CoinJoin combined PSBTs?
by
FractalEncrypt
on 05/02/2020, 18:14:20 UTC
I am trying to learn the workflow for manual Coinjoins using PSBTs. I was following Andrew Chow's suggestions in a thread on Bitcoin Stack Exchnage here https://bitcoin.stackexchange.com/questions/57253/how-do-i-spend-bitcoins-from-multiple-wallets-in-a-single-transaction/89169#89169 Where he outlines this flow;

    1. Createpsbt (he suggests using walletcreatefundedpsbt)
    2. Have individual users send their PSBTs to coordinator
    3. Coordinator uses joinpsbts to join the separate PSBTs into one
    4. Coordinator sends joined PSBT back to users to sign with walletprocesspsbt
    5. Once all users have signed/processed the joined PSBT, coordinator uses combinepsbt.
    6. Coordinator uses finalizepsbt and then transmits to the network using sendrawtransaction.

 - I am on having an issue between Numbers 5 and 6 above. I can combine the signed PSBTs, but cannot get them to finalize.
 - I am on testnet using Bitcoin Core version v0.19.0.1 (64-bit)
 - I'm using the console in QT
 - I am using multiple wallet.dat files to simulate different CoinJoin participants. 
 - I've created 2 PSBTs from two separate wallet.dat files, and am able to join them together using joinpsbts

Once I have my joined PSBTs, I was able to sign my PSBT in each wallet, and then combine them into one PSBT using combinepsbt.

When I try to finalizepsbt, I get a return of  "complete": false
I am able to decode the PSBT and view all the correct inputs/outputs, but I must be missing a step to finalize the transaction after combining.

**I believe I need to get finalizepsbt to return a value of true.**


As a sidenote, if I use a single wallet.dat file, I can create multiple PSBTs, join, process, finalize, and send exactly as Andy describes. However when I try to do this in a  more-real-world-situation than "just one user combining his own PSBTs" and then try to combine the PSBTs from different wallet.dat files, then I run into problems (to me, each wallet.dat file = one separate user/Coinjoin participant).

  [1]: https://bitcoin.stackexchange.com/questions/57253/how-do-i-spend-bitcoins-from-multiple-wallets-in-a-single-transaction/89169#89169
Post
Topic
Board Development & Technical Discussion
Re: trouble trying to joinpsbts
by
FractalEncrypt
on 02/02/2020, 04:33:08 UTC
When I try
> bitcoin-cli combinepsbt ["myPSBT1", "myPSBT1"]
I get
Error: Error parsing JSON:[myPSBT1
Try to enclose them in single quotation marks like this (before [) and ( after ]):
Code:
> bitcoin-cli combinepsbt '["myPSBT1", "myPSBT1"]'

Holy moley that did it! THANK YOU! I was messing with this for a long time.
Post
Topic
Board Development & Technical Discussion
Topic OP
trouble trying to combinepsbt
by
FractalEncrypt
on 02/02/2020, 00:36:52 UTC
I'm having some trouble with the PSBT workflow on testnet for my first time. I was able to create 2 PSBTs and I can successfully decode them both using decodepsbt but when I try to run joinpsbts I am getting JSON parsing errors.

Help tells me;
joinpsbts ["psbt",...]
Examples:
> bitcoin-cli joinpsbts "psbt"


I have 2 PSBTs, I ran the command, but I must be messing something up...

I have 2 outputs that are basically;
"psbt": "myPSBT1",

and

"psbt": "myPSBT2",
  "complete": true

When I try
> bitcoin-cli joinpsbts "myPSBT1","myPSBT1"

I get;
Error: Error parsing JSON:myPSBT1

Not sure what I am doing wrong, but 1st time, so I'm sure some user error...

EDIT: For clarity, I ran createpsbt and then walletprocesspsbt separately on 2 unique PSBTs. Now I'm having trouble running joinpsbts and/or combinepsbt successfully. Both give the same JSON errors.

Further edit, I used my same 2 original transactions and instead of createpbst, I used walletcreatefundedpsbt and then tried to joinpsbts on those outputs, and no luck either.

Post
Topic
Board Collectibles
Merits 4 from 1 user
Re: [WoodCollector]Nine Public Coin Collection Completed
by
FractalEncrypt
on 23/01/2020, 01:22:24 UTC
⭐ Merited by teeGUMES (4)
Absolutely fascinating story, than so much for sharing. A friend sent me a link here, glad he did!
Cool piece of Bitcoin history revealed in the thread.
Here's hoping to success!

So here's an idea as far as the need to be physically next to the coins - what if they have embedded NFT chips? You my be able to tap your NFC enabled phone over the coins to see if anything registers. Also loo for invisible inks, blacklight, etc..
A great idea as well. I won't lie I've been slow to get through the many different ideas with finding the clues as I don't want my part in the story of this tale to potentially end.. but you never know if I ever found a number or some letters it'd also be such a good feeling and drive me mad searching for more..

I'm a fan of big round wood things(keep your jokes :p) and I'll be adding one of your FractalEncrypt Bitcoin Full Node Sculptures to the mix.. in a way it will be my temporary coin 10. Such an amazing piece and welcome to the forum.

https://twitter.com/FractalEncrypt/status/1213146377162768384
https://i.imgur.com/TDd6Ay0.jpg


Thanks so much for the kind welcome! Crazy to see this come full circle (LOL).

So I ran some simple blockchain analysis on Blockchair, I was looking for (and I believe someone in the thread suggested this) 1000 unique outputs holding exactly 5 BTC (that are still spendable) that were created between July 2014 and April 2015 (I arbitrarily figured these dates may be when WoodCarver would have issued his coins), and I got 630-ish results;
https://blockchair.com/bitcoin/outputs?s=value(desc),time(desc)&q=value(500000000),time(2014-07..2015-04),is_spent(false)#
This means he probably didn't create them during this time, or at least not all of them at once.

Then I ran the numbers back to January, now we have plenty of results, about 1300+ 5 BTC outputs that are still spendable.
https://blockchair.com/bitcoin/outputs?s=value(desc),time(desc)&q=value(500000000),time(2014-01..2015-04),is_spent(false)#

I think we can narrow these results to see if maybe a batch of 1000 was created at once, (via script) it seems that would be the way someone would generate 1000 addresses, or no? Or...in essence we're looking at the funding dates of the addresses, not the creation dates. so how would you think someone would fund 1000 addresses? At once? over time?