BitCoinClient.Bitcoin.GetTransactions C# (CSharp) 메소드

GetTransactions() 공개 메소드

public GetTransactions ( ) : BitCoinClient.Transaction[]
리턴 BitCoinClient.Transaction[]
        public Transaction[] GetTransactions()
        {
            List<Transaction> otrans = new List<Transaction>();

            List<KeyValuePair<string, Transaction>> transactions = mTransactions.ToList();
            foreach (KeyValuePair<string, Transaction> kv in transactions)
            {
                if (kv.Value.IsCoinBase() || !kv.Value.IsFinal())
                    continue;

                foreach (TransactionInput txin in kv.Value.Inputs)
                {

                }
            }

            return otrans.ToArray();
        }

Usage Example

예제 #1
0
        Block CreateBlock(Key key)
        {
            Block block = new Block();

            // Create transaction from nowhere to us!
            Transaction       tx     = new Transaction();
            TransactionInput  input  = new TransactionInput();
            TransactionOutput output = new TransactionOutput(key);

            tx.AddInput(input);
            tx.AddOutput(output);

            block.AddTransaction(tx);

            Transaction[] transactions = mBitcoin.GetTransactions();

            return(block);
        }