Repository-Metriken
- Stars
- (3.955 Stars)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
Do we have any instructions on how to use CPFP to speed up the reveal transaction using bitcoin-cli? I read up the generic instructions but the issue is how would i sign the transaction using bitcoin-cli? My ord wallet is different than bitcoind wallet. In work in regtest ATM and I want to understand how to set up a cpfp transaction. I use :
bitcoin-cli createwallet dev
bitcoin-cli generatetoaddress 101 $(bitcoin-cli -rpcwallet=dev getnewaddress)
ord -r wallet --name=ord_dev create
bitcoin-cli -rpcwallet=dev sendtoaddress $(ord -r wallet --name=ord_dev receive) 0.47
bitcoin-cli -rpcwallet=dev -generate 1
bitcoin-cli -rpcwallet=dev sendtoaddress $(ord -r wallet --name=ord_dev receive) 0.47
bitcoin-cli -rpcwallet=dev -generate 1
bitcoin-cli -rpcwallet=dev sendtoaddress $(ord -r wallet --name=ord_dev receive) 0.06
bitcoin-cli -rpcwallet=dev -generate 1
Now i have 1 BTC on my ord_dev and i try to inscribe one inscription
ord -r wallet --name=ord_dev inscribe --fee-rate 2 --file ".1.html"
{
"commit": "8f0c01aadc09e4ee2b0c3c63d225f3dfa248390801af73b6f6acb330fa97fa12",
"inscriptions": [
{
"id": "e06ccf2fc50c7499998503d107b517fc3ea96a3fc0ae05ac8b28318683b73e8di0",
"location": "e06ccf2fc50c7499998503d107b517fc3ea96a3fc0ae05ac8b28318683b73e8d:0:0"
}
],
"parent": null,
"reveal": "e06ccf2fc50c7499998503d107b517fc3ea96a3fc0ae05ac8b28318683b73e8d",
"total_fees": 5696
}
I get the inputs and outputs :
bitcoin-cli -rpcwallet=ord_dev decoderawtransaction $(bitcoin-cli -rpcwallet=ord_dev getrawtransaction e06ccf2fc50c7499998503d107b517fc3ea96a3fc0ae05ac8b28318683b73e8d 2 | jq '.hex') | jq '[.vin[] | {txid: .txid, vout: .vout} ]' -c`
[{"txid":"8f0c01aadc09e4ee2b0c3c63d225f3dfa248390801af73b6f6acb330fa97fa12","vout":0}]
bitcoin-cli -rpcwallet=ord_dev decoderawtransaction $(bitcoin-cli -rpcwallet=ord_dev getrawtransaction e06ccf2fc50c7499998503d107b517fc3ea96a3fc0ae05ac8b28318683b73e8d 2 | jq '.hex') | jq '[.vout[] | .value]' -c`
[0.0001]
bitcoin-cli -rpcwallet=ord_dev listunspent | jq '[.[] | select(.amount > 0) | {txid: .txid, vout: .vout} ]' -c
[] <= because its a refresh wallet
ord -r wallet --name=ord_dev inscriptions
[] <= because its a refresh wallet
And from then on, it becomes a nebula. I've tried createrawtransaction, walletcreatefundedpsbt, converttopsbt, but I either get a message like "not enough additional fees to relay; 0.00 < 0.00000111" or the transaction goes through but I don't have a registration.
and I can't see how to import these wallets into sparrow. I'd like to stay on the command line.
I've already read the issue https://github.com/ordinals/ord/issues/1519#issuecomment-1464834295 and try this script but not working https://github.com/MMCGW/restore-ord-txs