Search content
Sort by

Showing 15 of 15 results by scalaz
Post
Topic
Board Bitcoin Technical Support
Re: getTxOut by address
by
scalaz
on 16/03/2016, 18:15:13 UTC
Can I subscribe some address with bitc?
I mean if get incoming transaction for the my address bitd will send notification
or need to ping bitd each 5 seconds for example ?
Can I check bitd like online service ? I mean online API for testing

Thank you for recommendation!
Post
Topic
Board Bitcoin Technical Support
Re: getTxOut by address
by
scalaz
on 16/03/2016, 17:52:19 UTC
> For local lookups of arbitrary addresses you could use btcd instead of bitcoind.
> btcd has an address index.  It needs to be enabled in your config with the addrindex flag.  See the searchrawtransactions API.

Do you mean https://opensource.conformal.com/wiki/btcd ?
Post
Topic
Board Bitcoin Technical Support
Topic OP
getTxOut by address
by
scalaz
on 12/03/2016, 13:43:42 UTC
Hello!
I'm trying to get transaction tx out by address with bitcoind. Current address does not contains in the bitcoin wallet.

Current solution

1. getblockhash
2. getblock
3. gettxout "a070c999b594d7b0922adebf00c74c69db5b2c1b6da08a83dad99c11f57c03d1" 0

Quote
{
"bestblock" : "000000000000000000ca1b3c58c26c016a1cf6331675bd4b7e303a2522a6f4ce",
"confirmations" : 231,
"value" : 0.17800000,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 0596a9bc158e13ba4a75c800d317b748bfe3577a OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a9140596a9bc158e13ba4a75c800d317b748bfe3577a88ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"1WYsDAYJBiLxLQKeSR8eLfpTumUYmuxgW"
]
},
"version" : 1,
"coinbase" : false
}

4. compare address from JSON with my address.

As you can see this is like brute force. O(n) complexity...

Do you know how to subscribe address for checking incoming tx_outs by address "address does not exist in the bitcoind wallet" 

Any Java libraries for this aims ?
Any free API ?
Any recommendations ?

Thanks!
Post
Topic
Board Development & Technical Discussion
Topic OP
bitcoind and new incomming block analyzing
by
scalaz
on 11/03/2016, 01:05:15 UTC
Hello!

I want to analyze new incoming blocks about next data

Code:
[
{"address":"3NTyKSmiZqW8fNPnCoZgd1HwS2DqVXHKG6",
"txid":"90e3439211677936804a9190e5074db0ce3eb7468edac4f455e3a16b965804d9",
"vout":1,
"ts":1448213569,
"scriptPubKey":"a914e3e30f2d79e5d10d29ceebd0c0bb96881c41d62a87",
"amount":0.0005,
"confirmations":17269,
"confirmationsFromCache":false}
]

As you can see address monitoring.

I found next command

== Network ==
addnode "node" "add|remove|onetry"
getaddednodeinfo dns ( "node" )
getconnectioncount
getnettotals
getnetworkinfo
getpeerinfo
ping

So can get block by hash
Quote
{
"hash" : "0000000000000000019b0f131d9c2c3256a0e8a2a2ab2ff0e985318bf73391c6",
"confirmations" : 1,
"size" : 144258,
"height" : 402104,
"version" : 4,
"merkleroot" : "43c783097b091576997fc20b7d49f39363f80214dba836dc297a6babee273281",
"tx" : [
"e2706d6785c95829079b52da07d84b944cc15d78c03d88011362a86932f354f9",
...e.t.c

],
"time" : 1457657306,
"nonce" : 1259980159,
"bits" : "1806f0a8",
"difficulty" : 158427203767.39169312,
"chainwork" : "000000000000000000000000000000000000000000135ec2804a2c55ce02fa05",
"previousblockhash" : "0000000000000000037718c1cbb0d534297b955253cca3d7f68df64a83e04dc4"
}
How can I get all another data ?

I mean

next fields

Quote
[
{"address":"3NTyKSmiZqW8fNPnCoZgd1HwS2DqVXHKG6",
"txid":"90e3439211677936804a9190e5074db0ce3eb7468edac4f455e3a16b965804d9",
"vout":1,
"ts":1448213569,
"scriptPubKey":"a914e3e30f2d79e5d10d29ceebd0c0bb96881c41d62a87",
"amount":0.0005,
"confirmations":17269,
"confirmationsFromCache":false}
]

Which commands ?
Thanks!
Post
Topic
Board Development & Technical Discussion
Re: Bitcoind and incoming blocks scanning
by
scalaz
on 10/03/2016, 19:53:06 UTC
Sorry, no so clear.

Do you mean run client like this ?

 sudo bin/bitcoind -datadir=.bitcoin -port=88888 -rpcport=99999 -rpcallowip=127.0.0.1 -rpcuser=bitcoinrpc -rpcpassword=password -blocknotify

Any examples ?

Thanks
Post
Topic
Board Development & Technical Discussion
Merits 1 from 1 user
Topic OP
Bitcoind and incoming blocks scanning
by
scalaz
on 10/03/2016, 19:01:19 UTC
⭐ Merited by ABCbits (1)
Hello!

Want to scan incoming blocks with native bitcoind client.

Could you please clarify

1. Can I connect to the bitcoind "pipe line with incoming blocks"
2. How can I process "parse" data blocks ? any libraries, solutions ?
3. Any advice how to make it KISS ?


Thanks!
Post
Topic
Board Bitcoin Technical Support
Re: Nonzero exit code
by
scalaz
on 04/03/2016, 16:27:56 UTC
Hello!

Bitcoin RPC return message like this - Nonzero exit code: 3

Could you please recommend link with all "Nonzero exit code: 3" for bitcoin ?

Thanks!

you can find all rpc error codes in  src/rpc/protocol.h

Thanks, yes, but how about detailed description ?
for example

RPC_TYPE_ERROR                  = -3,  //! Unexpected type was passed as parameter

Can I find more details about error code ?
Post
Topic
Board Bitcoin Technical Support
Topic OP
Nonzero exit code
by
scalaz
on 02/03/2016, 16:58:51 UTC
Hello!

Bitcoin RPC return message like this - Nonzero exit code: 3

Could you please recommend link with all "Nonzero exit code: 3" for bitcoin ?

Thanks!
Post
Topic
Board Project Development
Re: contracts + blockhain technologies
by
scalaz
on 09/02/2016, 00:10:16 UTC
Thanks! It looks like some extension above bitcoin network. How about specific network for this aims ?
Post
Topic
Board Project Development
Topic OP
contracts + blockhain technologies
by
scalaz
on 08/02/2016, 16:31:42 UTC
Hello!

Want to check how to prepare service for the signature contracts based on blockhain technologies.

Any libraries, frameworks, solution ?

Could you please recommend me start point which I should investigate.

Any smart contracts networks based on blockhain technologies ?

Any official clients  ?

Thanks.
Post
Topic
Board Development & Technical Discussion
Topic OP
rawtx - dust
by
scalaz
on 26/01/2016, 14:27:15 UTC
Hello!

Want to send raw tx

Prepared and signed. rawtx include 3 inputs and one output, also added fee. calculated by formula - in*180 + out*34 + 10 plus or minus 'in'

created rawTX

Code:
{"1Mdestinanion":0.00003453,"3FZJchange":0.00002068}

fee contains - 2999

Code:
"hex" : "0100...",    "complete" : true


trued to send to the bitcoin network, got next message

Code:
error: {"code":-26,"message":"64: dust"}

I can sand same amount by native bitcoin client. I mean amount and fee. What is wrong with raw tx ?

Post
Topic
Board Development & Technical Discussion
Re: How to calculate and add FEE
by
scalaz
on 07/01/2016, 10:08:08 UTC
How to calculate size. found


in*180 + out*34 + 10 plus or minus 'in'
For example, this transaction has 40 inputs and 16 outputs. That gives us a transaction size of

40*180 + 16*34 + 10 +- 40
i.e. 7754 +- 40 bytes. The actual size is 7761 bytes.

Could you please clarify about  +- 40

BR!
Post
Topic
Board Development & Technical Discussion
Topic OP
How to calculate and add FEE
by
scalaz
on 06/01/2016, 17:24:28 UTC
Hello!

I have created RAW transaction like this

createrawtransaction [{"txid":"cb6b3604efd24...","vout":0}]
{"3GW....":1.0,"39dj9....":206.0}

Calculated change and added address for the change.
How to calculate tx fee and add feeto the transaction ?

Thanks
Post
Topic
Board Development & Technical Discussion
Re: RAW TX with multisignature
by
scalaz
on 02/12/2015, 11:39:36 UTC
Thanks, read this.
But that article describes how to prepare RAW tx only with one multi-signature address.

How can I create RAW TX and sign it with a few addresses

multisigAddress1
multisigAddress2

Any examples ?
Post
Topic
Board Development & Technical Discussion
Topic OP
RAW TX with multisignature
by
scalaz
on 02/12/2015, 11:12:22 UTC
hello!

I have a few multi-signature addresses, and want to send from that addresses coins

For example if I want to spent coins from one 3 of 2 address

Prepare raw TX like this

Code:
signrawtransaction
'rawTxHex'
'[{"txid":"id","vout":1,
"scriptPubKey":"key",
"redeemScript":"redem"}]' '[[b]"priv_key","priv_key[/b]"]'

What should I do if I want to prepare Raw TX from many addresses to the one destination address ? how can I sign it ?

Any examples ?

Thanks.