Bitcoin Forum
May 12, 2024, 05:32:30 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 3 »
1  Bitcoin / Development & Technical Discussion / Re: calculation fee from change on: November 24, 2015, 08:33:48 AM
More example please. Found next
Code:
sendrawtransaction "hexstring" ( allowhighfees )
if i add allowhighfees option it will calculate from change automatic ? 
2  Bitcoin / Development & Technical Discussion / calculation fee from change on: November 23, 2015, 11:27:49 AM
Hello,

prepared rawTx by all tx output, added destination and change address

Code:
'{"sedtination":11, "change":9}'

how to calculate fee ? can I add fee automatically from change ?

Thanks.
3  Bitcoin / Development & Technical Discussion / ubuntu + bitcoin-cli = error parse json on: November 17, 2015, 05:01:19 PM
Hello

Try to create multisig addres into ubutu. like this

Code:
createmultisig 2 "[\"020f82febae00183f7f0c04e72beb23b682aee76ffe388988eee8a8f44c8666300\",\"0310ab4fe1dce028153888e77163d53670ccf5efd4a32897855bc7bd093d924539\"]"

it works well from console, but form java like

Code:
Process p = Runtime.getRuntime().exec(comand)

get exception from bitcoin-cli- error parse json

What is wrong ?

BR
4  Bitcoin / Development & Technical Discussion / raw tx and change address on: November 03, 2015, 09:50:15 AM
Hello

Want to prepare raw TX with change address.
according to the manual https://bitcoin.org/en/developer-examples#simple-raw-transaction

input had 50.0000 bitcoins and our output ($NEW_ADDRESS) is being paid 49.9999 bitcoins, so the transaction will include a fee of 0.0001 bitcoins. If we had paid $NEW_ADDRESS only 10 bitcoins with no other changes to this transaction, the transaction fee would be a whopping 40 bitcoins

I should add change address if I want to save change.

prepared Raw tx like this
Code:
./bitcoin-cli createrawtransaction 
'[{"txid":"fba4b0a1e11b68c587aae3578844d68131c807913767a1efc9a699d38ecd9f06",
"vout":1,
"scriptPubKey":"a914e8fa0f97c663ba132bd81e6d657c46825d390e6c87",
"redeemscript":"524104d9546728bb1d1bf309ef3c2c7278d8d306052ecf7dc81443f16e75ae607099dfcfc573a3e71553bd8321d91c209bab03aa999befa6e77734c0f4dd34ef78ebfd41041050ff637a97fa462dffa19d0bc013869f6231895019bd9f263a0a55a067665cfca4473aab1dc38e8aecf359e23ce6bb35ff900bc84fdd890a3b982ea50dd92f4104e086dce7893384cbfa89fbbf7d33de3f1ee01279a1e9810d952f1c440e91fc7ee7cb9cf070dfbdee397e123c363d140221e81610b7bd695905fbf198edfd71a153ae"}]'
 '{"143UX8t7LNiAf1dNPqyWDYQ1Gedbk27R7b":0.0001}'

Could you please share example how to prepare raw tx with address for the change and fee  ?

Thanks.
5  Bitcoin / Development & Technical Discussion / fractional amount in java on: October 26, 2015, 11:43:53 AM
Hello!

Which type for amount coins more appropriate in Java?

For example have amount like 0.00001. When use for example double it transforms to '1e-005'
float 9.99999974737875e-006 ..

Any special / custom  types ?

How to calculate amount in the correct way ?


Thanks
6  Economy / Web Wallets / insight-api issue on: October 25, 2015, 12:23:11 PM
Hello!

Does any body use insight-api ?

How to listen all incoming inputs for the fixed address in run time.
Can insight-api do do this? any extensions ?

Thanks
7  Bitcoin / Bitcoin Technical Support / the Best Linux server for bitcoind on: October 23, 2015, 02:47:54 PM
Hello!

Do you have any experience with Linux and bitcoind, which Linux distributive stable for bitcoin client.

How about Centos 7 ?

BR!
8  Bitcoin / Development & Technical Discussion / Re: incomming transaction understanding on: October 10, 2015, 12:50:36 PM
Thanks a lot for the explanation. It is rely interesting and cool!

Let me clarify my vision.

For example I have an address
Code:
https://blockexplorer.com/address/3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7
The address has 4 input tx

Code:
ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d
4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7
3266dcc46b422d58b273ffd2acaf9dc2e72e26e3ec7fb82f25611341c7aea5d2
6ab8ac462b08b7883d82b69b2e8ae2e3008522ca50302f5c403dbfd16d9dc97b

So as you can see the address has positive balance.

Now, want to spend coins from the address 3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7

Used next command got tx info by address

https://blockexplorer.com/api/txs/?address=3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7


Code:
{
"pagesTotal": 1,
"txs": [{
"txid": "ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d",
"version": 1,
"locktime": 378089,
"vin": [{
"txid": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",
"vout": 1,
"scriptSig": {
"asm": "3045022100b6ef68be26fa70016712b9f7e774d76c41cee9b3dee1b83be62b9f6156f35d0202205f1111cc91ff047fd2cf6cd825813d9dd650efd66a51cca90c2eae24d37aef4701 03b390ee0561e1acda348f3ae8049780e5cb29f6838a49f9b9cca6cd1ed5a34f61",
"hex": "483045022100b6ef68be26fa70016712b9f7e774d76c41cee9b3dee1b83be62b9f6156f35d0202205f1111cc91ff047fd2cf6cd825813d9dd650efd66a51cca90c2eae24d37aef47012103b390ee0561e1acda348f3ae8049780e5cb29f6838a49f9b9cca6cd1ed5a34f61"
},
"sequence": 4294967294,
"n": 0,
"addr": "17UBjxsavEfD5rV14HT67maGRUcEGBkthM",
"valueSat": 13303,
"value": 0.00013303,
"doubleSpentTxID": null
}],
"vout": [{
"value": "0.00001400",
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 a287c1558aec11c6499dea08962cee0144be3eb5 OP_EQUAL",
"hex": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"reqSigs": 1,
"type": "scripthash",
"addresses": ["3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7"]
}
},
{
"value": "0.00011679",
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 47809e6ee33a3a62574911244832cd0111707bb1 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91447809e6ee33a3a62574911244832cd0111707bb188ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": ["17X54DYtoHnvoDfU2C1GEVCeDGmYUQW4NQ"]
}
}],
"valueOut": 0.00013079,
"size": 224,
"valueIn": 0.00013303,
"fees": 0.00000224
},
{
"txid": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",
"version": 1,
"locktime": 378096,
"vin": [{
"txid": "3266dcc46b422d58b273ffd2acaf9dc2e72e26e3ec7fb82f25611341c7aea5d2",
"vout": 1,
"scriptSig": {
"asm": "304402204e920f77641fab912bcd360450cd405a991c9c1b6fe0a5783ad56b7031673f6802200bf846877437e259e0afb5eee953ce671af7521967f34d90c3ffd7075546f3c301 02caf284d156a32fbd22c6a6ea47e18c2c1e1075b808968a5a4af0afd3ea907987",
"hex": "47304402204e920f77641fab912bcd360450cd405a991c9c1b6fe0a5783ad56b7031673f6802200bf846877437e259e0afb5eee953ce671af7521967f34d90c3ffd7075546f3c3012102caf284d156a32fbd22c6a6ea47e18c2c1e1075b808968a5a4af0afd3ea907987"
},
"sequence": 4294967294,
"n": 0,
"addr": "1A9E3ck8XzknXG3X9bcsMBhsiUrLDE7DyC",
"valueSat": 14627,
"value": 0.00014627,
"doubleSpentTxID": null
}],
"vout": [{
"value": "0.00001100",
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 a287c1558aec11c6499dea08962cee0144be3eb5 OP_EQUAL",
"hex": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"reqSigs": 1,
"type": "scripthash",
"addresses": ["3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7"]
}
},
{
"value": "0.00013303",
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 46f4f39bb890190a822610020e86f26dd8e6c6ce OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91446f4f39bb890190a822610020e86f26dd8e6c6ce88ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": ["17UBjxsavEfD5rV14HT67maGRUcEGBkthM"]
},
"spentTxId": "ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d",
"spentIndex": 0,
"spentTs": 1444374903
}],
"valueOut": 0.00014403,
"size": 223,
"valueIn": 0.00014627,
"fees": 0.00000224
},
{
"txid": "3266dcc46b422d58b273ffd2acaf9dc2e72e26e3ec7fb82f25611341c7aea5d2",
"version": 1,
"locktime": 378096,
"vin": [{
"txid": "6ab8ac462b08b7883d82b69b2e8ae2e3008522ca50302f5c403dbfd16d9dc97b",
"vout": 1,
"scriptSig": {
"asm": "3044022010111b6ba044e80e162929d7969f910fd0924594fd6ca251d6b0623ee4d04cf2022062418189e9fad2381b46624f7e6c8a239668b60f7501a124057ed2e01c04001901 0261095661da1a26d97ddef74e459562705094d0ccc124bff528cb420188251157",
"hex": "473044022010111b6ba044e80e162929d7969f910fd0924594fd6ca251d6b0623ee4d04cf2022062418189e9fad2381b46624f7e6c8a239668b60f7501a124057ed2e01c04001901210261095661da1a26d97ddef74e459562705094d0ccc124bff528cb420188251157"
},
"sequence": 4294967294,
"n": 0,
"addr": "1HwMhJTNhrPSv74oCe8g5otCeidEaHPm9p",
"valueSat": 15851,
"value": 0.00015851,
"doubleSpentTxID": null
}],
"vout": [{
"value": "0.00001000",
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 a287c1558aec11c6499dea08962cee0144be3eb5 OP_EQUAL",
"hex": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"reqSigs": 1,
"type": "scripthash",
"addresses": ["3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7"]
}
},
{
"value": "0.00014627",
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 64475968d9f6017d8c8066fb7e211f0323f6fb9a OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91464475968d9f6017d8c8066fb7e211f0323f6fb9a88ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": ["1A9E3ck8XzknXG3X9bcsMBhsiUrLDE7DyC"]
},
"spentTxId": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",
"spentIndex": 0,
"spentTs": 1444374808
}],
"valueOut": 0.00015627,
"size": 223,
"valueIn": 0.00015851,
"fees": 0.00000224
},
{
"txid": "6ab8ac462b08b7883d82b69b2e8ae2e3008522ca50302f5c403dbfd16d9dc97b",
"version": 1,
"locktime": 378096,
"vin": [{
"txid": "8ff72901bbc42bb9409e0a81f1dc98b31be51cc33c5acb46954964ac30cbbd90",
"vout": 1,
"scriptSig": {
"asm": "304502210083e493b2514b9ecfbb00c05773270b2e8cd902e2863f0edcdefc2790c3670c3e02201a558bda95ec9b6a353732ece8976bf5757f45c96506c79e695ba71823ae94a101 02fcb25d983bb0611e29d7bac1f16b15c7cf44e091fc8d96dae7ecf395bdbd40dc",
"hex": "48304502210083e493b2514b9ecfbb00c05773270b2e8cd902e2863f0edcdefc2790c3670c3e02201a558bda95ec9b6a353732ece8976bf5757f45c96506c79e695ba71823ae94a1012102fcb25d983bb0611e29d7bac1f16b15c7cf44e091fc8d96dae7ecf395bdbd40dc"
},
"sequence": 4294967294,
"n": 0,
"addr": "1749kF8e5X8YRXuqZZa1YJnNfhjEj4aucz",
"valueSat": 16775,
"value": 0.00016775,
"doubleSpentTxID": null
}],
"vout": [{
"value": "0.00000700",
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 a287c1558aec11c6499dea08962cee0144be3eb5 OP_EQUAL",
"hex": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"reqSigs": 1,
"type": "scripthash",
"addresses": ["3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7"]
}
},
{
"value": "0.00015851",
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 b9c9bfe9e5b8656482d8c3fdaa029d119f8c5cf5 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914b9c9bfe9e5b8656482d8c3fdaa029d119f8c5cf588ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": ["1HwMhJTNhrPSv74oCe8g5otCeidEaHPm9p"]
},
"spentTxId": "3266dcc46b422d58b273ffd2acaf9dc2e72e26e3ec7fb82f25611341c7aea5d2",
"spentIndex": 0,
"spentTs": 1444374773
}],
"valueOut": 0.00016551,
"size": 224,
"valueIn": 0.00016775,
"fees": 0.00000224
}]
}


Also I can give all unspent outputs by address like this

https://blockexplorer.com/api/addrs/3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7/utxo?noCache=1

Code:
[{
"address": "3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7",
"txid": "ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d",
"vout": 0,
"ts": 1444374903,
"scriptPubKey": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"amount": 0.000014,
"confirmationsFromCache": false
},
{
"address": "3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7",
"txid": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",
"vout": 0,
"ts": 1444374808,
"scriptPubKey": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"amount": 0.000011,
"confirmationsFromCache": false
},
{
"address": "3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7",
"txid": "3266dcc46b422d58b273ffd2acaf9dc2e72e26e3ec7fb82f25611341c7aea5d2",
"vout": 0,
"ts": 1444374773,
"scriptPubKey": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"amount": 0.00001,
"confirmationsFromCache": false
},
{
"address": "3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7",
"txid": "6ab8ac462b08b7883d82b69b2e8ae2e3008522ca50302f5c403dbfd16d9dc97b",
"vout": 0,
"ts": 1444374654,
"scriptPubKey": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"amount": 0.000007,
"confirmationsFromCache": false
}]

So in my vision if I want to spend all coins from the address 3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7

I should prepare rawTx with ALL Unspent Outputs is it correct ? Any cases how can I simplify it?

createrawtransaction
Code:
"[
{\"txid\":\"ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d\",\"vout\":1},
{\"txid\":\"4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7\",\"vout\":1},
{\"txid\":\"3266dcc46b422d58b273ffd2acaf9dc2e72e26e3ec7fb82f25611341c7aea5d2\",\"vout\":1},
{\"txid\":\"6ab8ac462b08b7883d82b69b2e8ae2e3008522ca50302f5c403dbfd16d9dc97b\",\"vout\":1},
]"
"{\"16rKfUnTnSiFdqRA3j69XNdfKwSBNxF5wX\":0.22302697}"

Thanks!
9  Bitcoin / Bitcoin Technical Support / address with start from 3 on: October 10, 2015, 10:29:32 AM
Hello!

Prepared multi address 2 of 2 and send some coins to this address

Code:
3GWQ...

after 24h have got unconfirmed transactions status. Is it ok?

Some problems with addresses started from 3  ?

How long should i wait confirmation  ?

BR!
10  Bitcoin / Development & Technical Discussion / Re: incomming transaction understanding on: October 09, 2015, 10:50:56 AM
Thanks!

Which 'vout' need to use for create rawTx ? from "vin"  or "vout" section ?

Can "vin" section has a few "vout"  ?
11  Bitcoin / Development & Technical Discussion / incomming transaction understanding on: October 09, 2015, 09:54:14 AM
Hello want to clarify a few details about working with incoming transaction.

Code:
"txs": [{
"txid": "ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d",
"version": 1,
"locktime": 378089,
"vin": [{
"txid": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",
"vout": 1,
"scriptSig": {
"asm": "3045022100b6ef68be26fa70016712b9f7e774d76c41cee9b3dee1b83be62b9f6156f35d0202205f1111cc91ff047fd2cf6cd825813d9dd650efd66a51cca90c2eae24d37aef4701 03b390ee0561e1acda348f3ae8049780e5cb29f6838a49f9b9cca6cd1ed5a34f61",
"hex": "483045022100b6ef68be26fa70016712b9f7e774d76c41cee9b3dee1b83be62b9f6156f35d0202205f1111cc91ff047fd2cf6cd825813d9dd650efd66a51cca90c2eae24d37aef47012103b390ee0561e1acda348f3ae8049780e5cb29f6838a49f9b9cca6cd1ed5a34f61"
},
"sequence": 4294967294,
"n": 0,
"addr": "17UBjxsavEfD5rV14HT67maGRUcEGBkthM",
"valueSat": 13303,
"value": 0.00013303,
"doubleSpentTxID": null
}],
"vout": [{
"value": "0.00001400",
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 a287c1558aec11c6499dea08962cee0144be3eb5 OP_EQUAL",
"hex": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"reqSigs": 1,
"type": "scripthash",
"addresses": ["3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7"]
}
},
{
"value": "0.00011679",
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 47809e6ee33a3a62574911244832cd0111707bb1 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91447809e6ee33a3a62574911244832cd0111707bb188ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": ["17X54DYtoHnvoDfU2C1GEVCeDGmYUQW4NQ"]
}
}],
"valueOut": 0.00013079,
"size": 224,
"valueIn": 0.00013303,
"fees": 0.00000224

Transaction has input and output

Input:
Code:
	"txs": [{
"txid": "ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d",
"version": 1,
"locktime": 378089,
"vin": [{
"txid": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",
"vout": 1,
"scriptSig": {
"asm": "3045022100b6ef68be26fa70016712b9f7e774d76c41cee9b3dee1b83be62b9f6156f35d0202205f1111cc91ff047fd2cf6cd825813d9dd650efd66a51cca90c2eae24d37aef4701 03b390ee0561e1acda348f3ae8049780e5cb29f6838a49f9b9cca6cd1ed5a34f61",
"hex": "483045022100b6ef68be26fa70016712b9f7e774d76c41cee9b3dee1b83be62b9f6156f35d0202205f1111cc91ff047fd2cf6cd825813d9dd650efd66a51cca90c2eae24d37aef47012103b390ee0561e1acda348f3ae8049780e5cb29f6838a49f9b9cca6cd1ed5a34f61"
},
"sequence": 4294967294,
"n": 0,
"addr": "17UBjxsavEfD5rV14HT67maGRUcEGBkthM",
"valueSat": 13303,
"value": 0.00013303,
"doubleSpentTxID": null
}],


1 input has two txID
"txid": "ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d"
and
"txid": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",

Which should I use if I want to spend coins with RawTX?

2 section vin has "vout": 1 can current section has more that 1 vout ? any examples ?
12  Bitcoin / BitcoinJ / third-party HD wallet and DeterministicKeyChain in bitcoinJ on: October 03, 2015, 10:57:56 AM
Hello!

Do I have any chance to get hte same private key on the separated service like http://bip32.org/ or some open source HD wallet by same Mnemonic seed or pathShare ?

For example:
Code:
DeterministicSeed seed = new DeterministicSeed("crazy horse battery staple", null, "crazy horse battery staple", new Date().getTime());
DeterministicKeyChain keyChain = DeterministicKeyChain.builder().seed(seed).build();

// Get 0H/0/5 key
System.out.println(keyChain.getKeyByPath(ImmutableList.of(ChildNumber.ZERO_HARDENED, ChildNumber.ZERO, new ChildNumber(5)), true).getPrivateKeyAsWiF(MainNetParams.get()));


Have got - KybWiYVNf6TsjHKqfJFeX7QaNLBppLqJiuRL84MuzXKQ2jcJuHe9

Next go to the http://bip32.org/ set paths share "crazy horse battery staple" select Derivation Path - simple and set 5
Got different private key.

How can I get same private key by mnemonic code or pathshare on the separated service like http://bip32.org/ or some another one. For example some open source HD wallet.

Thank you!
13  Bitcoin / Development & Technical Discussion / BIP 32 implemenration on: September 28, 2015, 06:08:08 PM
Hello!

Want to implement BIP32 tree generation from root seed 

1) Set root seed
2) Transform root seed with step N + 1
3) Generate pair of keys "private / public" based on seed "tail seed into BIP32 tree"

Could you please recommend some java open sources project for this aim ?
Could you please recommend online HD wallet "want to check my own implementation"?.

Which does BIP32 algorithm use for generate new seed in the tree ?

for example:
step 1 - root seed
step 2 - root seed step 2 - ?
step n - root seed step n - ?

BR!
14  Bitcoin / Legal / Bitcoin Core v0.11.0 Activating best chain... on: September 23, 2015, 09:10:15 AM
Hello!

Updated client to the version 11.
Restarted

1) Checked block chain
2) Loaded wallet
3) Activating best chain ... "is continuing 20 minutes... "

How can I fix it?

BR!
15  Bitcoin / Development & Technical Discussion / Transaction hex security issue on: September 06, 2015, 06:40:06 AM
Hello!

I have security issue. For example I prepared p2sh address, created rawTx and signed it. As a result, have got tx hex with status 'true'. Can I share final tx hex ? Can some body decrypt final tx hex and get private keys and destination address ?  

BR!
16  Bitcoin / Development & Technical Discussion / raw TX and remains on: September 03, 2015, 11:51:19 AM
Hello, can I set all remains coins from TX id for sending?

for example prepare raw tx

Quote
createrawtransaction '[{"txid":"fba4b0a1e11b68c587aae3578844d68131c807913767a1efc9a699d38ecd9f06","vout":1,"scriptPubKey":"a914e8fa0f97c663ba132bd81e6d657c46825d390e6c87",
"redeemscript":"524104d9546728bb1d1bf309ef3c2c7278d8d306052ecf7dc81443f16e75ae607099dfcfc573a3e 71553bd8321d91c209bab03aa999befa6e77734c0f4dd34ef78ebfd41041050ff637a97fa462dff a19d0bc013869f6231895019bd9f263a0a55a067665cfca4473aab1dc38e8aecf359e23ce6bb35f f900bc84fdd890a3b982ea50dd92f4104e086dce7893384cbfa89fbbf7d33de3f1ee01279a1e981 0d952f1c440e91fc7ee7cb9cf070dfbdee397e123c363d140221e81610b7bd695905fbf198edfd7 1a153ae"}]' '{"motbFuaf7Q7xWqBbo7zFu83sdNBspvYkFY":0.0001}'

Can I set ALL_REMAINS_FROM_txid instead of 0.0001 ?

Quote
'{"motbFuaf7Q7xWqBbo7zFu83sdNBspvYkFY":ALL_REMAINS_FROM_txid}'
17  Bitcoin / Development & Technical Discussion / send remain coins after timeout to the default address on: September 03, 2015, 11:42:22 AM
hello!

Can I send remain coins after delay to the default address

for example

1. create raw TX and get address = "p2shaddresstest"
2. prepare TX which send all coins from "p2shaddresstest" to the "defaultaddress"
3. set timeout, for example 24h
4. send TX to the bitcoin network

The main aim, prepare some transaction which will send all remained coins from one address to the another after time out.

Does API has any methods for this purpose ?
18  Bitcoin / Development & Technical Discussion / Re: NLockTime with RawTx on: September 01, 2015, 12:10:34 PM
First of all, that only made you a multisig address, not a transaction. To create a transaction you need to use createrawtransaction and modify the hex to add the locktime. Then you need to sign it with signrawtransaction.

Thanks for you answer.

Yes I can create rawTx by the next command

Quote
./bitcoin-cli createrawtransaction '[{"txid":"fba4b0a1e11b68c587aae3578844d68131c807913767a1efc9a699d38ecd9f06","vout":1,"scriptPubKey":"a914e8fa0f97c663ba132bd81e6d657c46825d390e6c87",
"redeemscript":"524104d9546728bb1d1bf309ef3c2c7278d8d306052ecf7dc81443f16e75ae607099dfcfc573a3e 71553bd8321d91c209bab03aa999befa6e77734c0f4dd34ef78ebfd41041050ff637a97fa462dff a19d0bc013869f6231895019bd9f263a0a55a067665cfca4473aab1dc38e8aecf359e23ce6bb35f f900bc84fdd890a3b982ea50dd92f4104e086dce7893384cbfa89fbbf7d33de3f1ee01279a1e981 0d952f1c440e91fc7ee7cb9cf070dfbdee397e123c363d140221e81610b7bd695905fbf198edfd7 1a153ae"}]' '{"motbFuaf7Q7xWqBbo7zFu83sdNBspvYkFY":0.0001}'

Do you have any example how to put NLockTime to the createrawtransaction ?

BR!
19  Bitcoin / Development & Technical Discussion / NLockTime with RawTx on: September 01, 2015, 09:27:13 AM
Hello!
Can I add NLockTime parameter and recovered address for the RawTx ?

For example I have prepared raw tx like this

Quote
./bitcoind createmultisig 2 '["04D9546728BB1D1BF309EF3C2C7278D8D306052ECF7DC81443F16E75AE607099DFCFC573A3E7155 3BD8321D91C209BAB03AA999BEFA6E77734C0F4DD34EF78EBFD","041050FF637A97FA462DFFA19D0BC013869F6231895019BD9F263A0A55A067665CFCA4473AAB1DC 38E8AECF359E23CE6BB35FF900BC84FDD890A3B982EA50DD92F","04E086DCE7893384CBFA89FBBF7D33DE3F1EE01279A1E9810D952F1C440E91FC7EE7CB9CF070DFB DEE397E123C363D140221E81610B7BD695905FBF198EDFD71A1"]'

and got result

Code:
{
"address" : "2NEV6KKpFiWb3HKb75TqEupePDXaznTqGaC",
"redeemScript" : "524104d9546728bb1d1bf309ef3c2c7278d8d306052ecf7dc81443f16e75ae607099dfcfc573a3e71553bd8321d91c209bab03aa999befa6e77734c0f4dd34ef78ebfd41041050ff637a97fa462dffa19d0bc013869f6231895019bd9f263a0a55a067665cfca4473aab1dc38e8aecf359e23ce6bb35ff900bc84fdd890a3b982ea50dd92f4104e086dce7893384cbfa89fbbf7d33de3f1ee01279a1e9810d952f1c440e91fc7ee7cb9cf070dfbdee397e123c363d140221e81610b7bd695905fbf198edfd71a153ae"
}

can I add NLockTime to the createmultisig 2 ?

BR!
20  Bitcoin / Electrum / txId by address with Remote API on: July 30, 2015, 03:05:06 PM
Hello!

Can I get txID like this https://www.blocktrail.com/tBTC/address/2NEV6KKpFiWb3HKb75TqEupePDXaznTqGaC/transactions
By address. Does Electrum have any remote API for this aims ?

BR!
Pages: [1] 2 3 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!