From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WFY8V-0003YC-Dj for bitcoin-development@lists.sourceforge.net; Tue, 18 Feb 2014 00:02:07 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.212.169 as permitted sender) client-ip=209.85.212.169; envelope-from=da.colonel@gmail.com; helo=mail-wi0-f169.google.com; Received: from mail-wi0-f169.google.com ([209.85.212.169]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1WFY8U-0000Lw-KG for bitcoin-development@lists.sourceforge.net; Tue, 18 Feb 2014 00:02:07 +0000 Received: by mail-wi0-f169.google.com with SMTP id e4so2891442wiv.2 for ; Mon, 17 Feb 2014 16:02:00 -0800 (PST) X-Received: by 10.194.62.206 with SMTP id a14mr20286339wjs.26.1392681720560; Mon, 17 Feb 2014 16:02:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.102.66 with HTTP; Mon, 17 Feb 2014 16:01:40 -0800 (PST) From: Denis Andrejew Date: Tue, 18 Feb 2014 01:01:40 +0100 Message-ID: To: bitcoin-development Content-Type: multipart/alternative; boundary=047d7b66f8e13d43d504f2a2fb1b X-Spam-Score: -0.6 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (da.colonel[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1WFY8U-0000Lw-KG Subject: [Bitcoin-development] bitcoind json API (gettx/raw) (newbie questions #2) X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Feb 2014 00:02:08 -0000 --047d7b66f8e13d43d504f2a2fb1b Content-Type: text/plain; charset=ISO-8859-1 Hey everybody, here's another question that I have: I'd like a small bit of clarification about the gettx / getrawtransaction (decoded) api call. I understand that I can find the address that a transaction output is directed at / available to for future use sits in the vout array in the scriptPubKey.addresses array. I'm a little uncertain as to why that piece of information would be typed as an array when all it ever seems to contain is one (not more, not less) address(es). Are there any cases of transactions right now that don't contain exactly 1 item in that array, i.e. more or less than a single address (per single vout element, not per tx)? Or is the thinking behind this array to somehow make the data structure more extensible for potential future use? But then I can't think of any use cases where it appears to make any sense to put more than 1 address there... Or am I even asking the wrong questions? For spending those coins, i.e. using them in a future transaction it's all about owning the public/private key that is contained in the vout script, right? So the address doesn't really matter and it could be 2 or more (or none at all?) addresses in there, and what matters is just that the next guy has the key to spending those coins... ? Once again I'm coming to these questions from a project where I'm trying to calculate unspent outputs and from that balances for all accounts and I'm not sure yet what other special cases there might be in the blockchain that I need to be aware of and handle properly in order to (re-)produce accurate data! Thanks for your help, much appreciated! - Denis "Be the change you want to see in the world." (Mahatma Gandhi) --047d7b66f8e13d43d504f2a2fb1b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hey everybody,

here's another quest= ion that I have:

I'd like a small bit of clari= fication about the gettx / getrawtransaction (decoded) api call. I understa= nd that I can find the address that a transaction output is directed at / a= vailable to for future use sits in the vout array in the scriptPubKey.addre= sses array. I'm a little uncertain as to why that piece of information = would be typed as an array when all it ever seems to contain is one (not mo= re, not less) address(es).

Are there any cases of transactions right now that don&= #39;t contain exactly 1 item in that array, i.e. more or less than a single= address (per single vout element, not per tx)? Or is the thinking behind t= his array to somehow make the data structure more extensible for potential = future use? But then I can't think of any use cases where it appears to= make any sense to put more than 1 address there...

Or am I even asking the wrong questions? For spending t= hose coins, i.e. using them in a future transaction it's all about owni= ng the public/private key that is contained in the vout script, right? So t= he address doesn't really matter and it could be 2 or more (or none at = all?) addresses in there, and what matters is just that the next guy has th= e key to spending those coins... ?

Once again I'm coming to these questions from a pro= ject where I'm trying to calculate unspent outputs and from that balanc= es for all accounts and I'm not sure yet what other special cases there= might be in the blockchain that I need to be aware of and handle properly = in order to (re-)produce accurate data!

Thanks for your help, much appreciated!
- Den= is

"Be the change you want to see in the= world." (Mahatma Gandhi)
--047d7b66f8e13d43d504f2a2fb1b--