Bitcoin Forum
May 04, 2024, 02:22:19 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: inputs  (Read 626 times)
pisko (OP)
Sr. Member
****
Offline Offline

Activity: 296
Merit: 250


View Profile WWW
May 26, 2016, 08:03:52 AM
 #1

hi

i finding answer few hours yet so maybe someone can send me on right way please.

i still dont understand well to this problematics:

i want to find from which wallet(address) comes coins to newone...

i have txid of transaction...
in vin is txid of input transaction but how can i know which output of this tx is used in newone?

i am using rpc calls called from php...

transaction, i want to know from which address coins comes:

Code:
{
    "txid" : "6470db622271c3a2910affae11f11d08b278ba790ee13180fbf1b151bd1bb0f5",
    "version" : 1,
    "time" : 1464138669,
    "locktime" : 0,
    "vin" : [
        {
            "txid" : "21129d09deaf685e2d95eec49f6481a2d148183f0dbf226942cfbbf698a7cdea",
            "vout" : 0,
            "scriptSig" : {
                "asm" : "304402205626172faba89dc29d97a1f1638a6341387bc39a2444706a7f6ed95b51b1048102204f64e3c967149bf386b05fb10da0d52257d75074e012abb6ec034d1a00ef5a2701 032200b135d5c1301db7d8afa971871ad24d499e7ac0c15cb374a8e950c7b3d4ae",
                "hex" : "47304402205626172faba89dc29d97a1f1638a6341387bc39a2444706a7f6ed95b51b1048102204f64e3c967149bf386b05fb10da0d52257d75074e012abb6ec034d1a00ef5a270121032200b135d5c1301db7d8afa971871ad24d499e7ac0c15cb374a8e950c7b3d4ae"
            },
            "sequence" : 4294967295
        }
    ],
    "vout" : [
        {
            "value" : 15499.99310000,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 ea491757c90b6e83e208b00fcccab53f9aff37b1 OP_EQUALVERIFY OP_CHECKSIG",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "Ad8fKrKKNiFEv2TY5tSFp6WXXvWtGehKFX"
                ]
            }
        },
        {
            "value" : 500.00000000,
            "n" : 1,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 bb265fe2e77350425890fb5ad6abda3e28394e20 OP_EQUALVERIFY OP_CHECKSIG",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "AYqRygUrwzeh371VZffxu5Emo6XZczxiYQ"
                ]
            }
        }
    ],
    "blockhash" : "000008d45d6cb4ad076c7edfac237917f751a94ea01cd1c0d5d9ca5c4d5ab8cd",
    "confirmations" : 277
}

transaction wrote as vin:
Code:
{
    "txid" : "21129d09deaf685e2d95eec49f6481a2d148183f0dbf226942cfbbf698a7cdea",
    "version" : 1,
    "time" : 1464138667,
    "locktime" : 0,
    "vin" : [
        {
            "txid" : "0b2b23719e83482bf98d0d3770a523a2c730ea75104a53dd5fa704f0c6d8c6b8",
            "vout" : 0,
            "scriptSig" : {
                "asm" : "3045022100f01c5764fdfbc2e845f87d7e7ed4675027bea854278764d39ce6592f048eeeeb02200fb7d0e2f95720237659d464cfd314881995235222754734792fd14f1cde797301 02e02c24b096413d31648eae4f41e78294c78390a0499e151530d1d388d1edb1a2",
                "hex" : "483045022100f01c5764fdfbc2e845f87d7e7ed4675027bea854278764d39ce6592f048eeeeb02200fb7d0e2f95720237659d464cfd314881995235222754734792fd14f1cde7973012102e02c24b096413d31648eae4f41e78294c78390a0499e151530d1d388d1edb1a2"
            },
            "sequence" : 4294967295
        }
    ],
    "vout" : [
        {
            "value" : 15999.99320000,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 6e43b6760addf0a08af83cf1f3fac7e81d404f2a OP_EQUALVERIFY OP_CHECKSIG",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "ARpu6N2Bf24JmmRy2gbZfPr8xJqdHbvimY"
                ]
            }
        },
        {
            "value" : 500.00000000,
            "n" : 1,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 bb265fe2e77350425890fb5ad6abda3e28394e20 OP_EQUALVERIFY OP_CHECKSIG",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "AYqRygUrwzeh371VZffxu5Emo6XZczxiYQ"
                ]
            }
        }
    ],
    "blockhash" : "000008d45d6cb4ad076c7edfac237917f751a94ea01cd1c0d5d9ca5c4d5ab8cd",
    "confirmations" : 277
}

there are two vout and i dont know how to find which one is right.

thank you for any answer

1714789339
Hero Member
*
Offline Offline

Posts: 1714789339

View Profile Personal Message (Offline)

Ignore
1714789339
Reply with quote  #2

1714789339
Report to moderator
1714789339
Hero Member
*
Offline Offline

Posts: 1714789339

View Profile Personal Message (Offline)

Ignore
1714789339
Reply with quote  #2

1714789339
Report to moderator
I HATE TABLES I HATE TABLES I HA(╯°□°)╯︵ ┻━┻ TABLES I HATE TABLES I HATE TABLES
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714789339
Hero Member
*
Offline Offline

Posts: 1714789339

View Profile Personal Message (Offline)

Ignore
1714789339
Reply with quote  #2

1714789339
Report to moderator
pisko (OP)
Sr. Member
****
Offline Offline

Activity: 296
Merit: 250


View Profile WWW
May 26, 2016, 08:41:02 AM
 #2

f**k i am an idiot Cheesy Cheesy

was been so easy and i finded something complicate Cheesy

hi

i finding answer few hours yet so maybe someone can send me on right way please.

i still dont understand well to this problematics:

i want to find from which wallet(address) comes coins to newone...

i have txid of transaction...
in vin is txid of input transaction but how can i know which output of this tx is used in newone?

i am using rpc calls called from php...

transaction, i want to know from which address coins comes:

Quote
{
    "txid" : "6470db622271c3a2910affae11f11d08b278ba790ee13180fbf1b151bd1bb0f5",
    "version" : 1,
    "time" : 1464138669,
    "locktime" : 0,
    "vin" : [
        {
            "txid" : "21129d09deaf685e2d95eec49f6481a2d148183f0dbf226942cfbbf698a7cdea",
            "vout" : 0,
            "scriptSig" : {
                "asm" : "304402205626172faba89dc29d97a1f1638a6341387bc39a2444706a7f6ed95b51b1048102204f6 4e3c967149bf386b05fb10da0d52257d75074e012abb6ec034d1a00ef5a2701 032200b135d5c1301db7d8afa971871ad24d499e7ac0c15cb374a8e950c7b3d4ae",
                "hex" : "47304402205626172faba89dc29d97a1f1638a6341387bc39a2444706a7f6ed95b51b1048102204 f64e3c967149bf386b05fb10da0d52257d75074e012abb6ec034d1a00ef5a270121032200b135d5 c1301db7d8afa971871ad24d499e7ac0c15cb374a8e950c7b3d4ae"
            },
            "sequence" : 4294967295
        }
    ],
    "vout" : [
        {
            "value" : 15499.99310000,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 ea491757c90b6e83e208b00fcccab53f9aff37b1 OP_EQUALVERIFY OP_CHECKSIG",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "Ad8fKrKKNiFEv2TY5tSFp6WXXvWtGehKFX"
                ]
            }
        },
        {
            "value" : 500.00000000,
            "n" : 1,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 bb265fe2e77350425890fb5ad6abda3e28394e20 OP_EQUALVERIFY OP_CHECKSIG",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "AYqRygUrwzeh371VZffxu5Emo6XZczxiYQ"
                ]
            }
        }
    ],
    "blockhash" : "000008d45d6cb4ad076c7edfac237917f751a94ea01cd1c0d5d9ca5c4d5ab8cd",
    "confirmations" : 277
}

transaction wrote as vin:
Quote
{
    "txid" : "21129d09deaf685e2d95eec49f6481a2d148183f0dbf226942cfbbf698a7cdea",
    "version" : 1,
    "time" : 1464138667,
    "locktime" : 0,
    "vin" : [
        {
            "txid" : "0b2b23719e83482bf98d0d3770a523a2c730ea75104a53dd5fa704f0c6d8c6b8",
            "vout" : 0,
            "scriptSig" : {
                "asm" : "3045022100f01c5764fdfbc2e845f87d7e7ed4675027bea854278764d39ce6592f048eeeeb02200 fb7d0e2f95720237659d464cfd314881995235222754734792fd14f1cde797301 02e02c24b096413d31648eae4f41e78294c78390a0499e151530d1d388d1edb1a2",
                "hex" : "483045022100f01c5764fdfbc2e845f87d7e7ed4675027bea854278764d39ce6592f048eeeeb022 00fb7d0e2f95720237659d464cfd314881995235222754734792fd14f1cde7973012102e02c24b0 96413d31648eae4f41e78294c78390a0499e151530d1d388d1edb1a2"
            },
            "sequence" : 4294967295
        }
    ],
    "vout" : [
        {
            "value" : 15999.99320000,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 6e43b6760addf0a08af83cf1f3fac7e81d404f2a OP_EQUALVERIFY OP_CHECKSIG",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "ARpu6N2Bf24JmmRy2gbZfPr8xJqdHbvimY"
                ]
            }
        },
        {
            "value" : 500.00000000,
            "n" : 1,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 bb265fe2e77350425890fb5ad6abda3e28394e20 OP_EQUALVERIFY OP_CHECKSIG",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "AYqRygUrwzeh371VZffxu5Emo6XZczxiYQ"
                ]
            }
        }
    ],
    "blockhash" : "000008d45d6cb4ad076c7edfac237917f751a94ea01cd1c0d5d9ca5c4d5ab8cd",
    "confirmations" : 277
}

there are two vout and i dont know how to find which one is right.

thank you for any answer

DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4615



View Profile
May 26, 2016, 11:09:40 AM
 #3

Glad to see that you found your answer.

This thread can now be locked.

Any newbie or sig ad spammer that posts in this thread after now should probably be permanently banned for failing to read this post.
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!