Bitcoin Forum
May 25, 2024, 11:53:24 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: get TXID by address or redeemScript  (Read 812 times)
init1 (OP)
Jr. Member
*
Offline Offline

Activity: 43
Merit: 1


View Profile
July 02, 2015, 05:35:24 AM
 #1

Hello!

Do we have any chance to get 'txid' by address or redeemScript into console command ?

BR!
mezzomix
Legendary
*
Offline Offline

Activity: 2618
Merit: 1253


View Profile
July 02, 2015, 06:31:23 AM
 #2

You can calculate the P2SH address from a redeem script. There is a JavaScript implementation at https://coinb.in/ and https://multisig.btcnet.eu/. You are able to use this code with node.js to execute the code from the command line.

To get the transaction identifiers for a certain address you need a blockexplorer or a Bitcoin client with addressindex patch. There might be multiple transactions per address.
init1 (OP)
Jr. Member
*
Offline Offline

Activity: 43
Merit: 1


View Profile
July 02, 2015, 08:25:34 AM
 #3

Thank you,
Can you advice block-chain explorer like bitcoind or online service with open API ?
neutraLTC
Legendary
*
Offline Offline

Activity: 1492
Merit: 1021



View Profile WWW
July 02, 2015, 08:57:51 AM
 #4

Thank you,
Can you advice block-chain explorer like bitcoind or online service with open API ?


Check out BlockTrail's Block Explorer here.

We also provide a wide range of API's for your app, you can find more information on that here and a technical blog post about with all we offer here.

Oh and btw, we have a fair usage policy in place for our API's and SDK's, so you can have peace-of-mind that you won't ever need to pay for our services.

Let me know if you need some assistance in anything  Smiley

DEMAND STRATUMV2 MINING POOL: DMND.WORK
mezzomix
Legendary
*
Offline Offline

Activity: 2618
Merit: 1253


View Profile
July 02, 2015, 10:51:05 AM
 #5

Can you advice block-chain explorer like bitcoind or online service with open API ?

There is an address index patche for bitcoin-core. blockchain.info has an API that returns all unspent outputs for an address.
fbueller
Sr. Member
****
Offline Offline

Activity: 412
Merit: 275


View Profile
July 02, 2015, 02:25:27 PM
 #6

Blockchain.info's API isn't as capable as it should be.. I've also found it unreliable at times. Blocktrail are probably the better bet, since you can push webhooks to subscribe to new events (like receipt of funds on a new address).

Bitwasp Developer.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!