public async Task Provided_Id_Should_Get_Latest_Block()
        {
            string id             = "282137f67ce65e34a9eb13145606d7bf87bdaf9174111d6053002bfc543575c8";
            string conditionUri   = "ni:///sha-256;hUFTY19o_y5APMyCfLVBklcQGd039miQSZ4laq5J9LE?fpt=ed25519-sha-256&cost=131072";
            string fulfillmentUri = "pGSAIC3QBEk4CgvUFZQmsTO2gvVSq3CYnVQ70tDhb3rnXTTdgUCulBEpnggpXuowmHjzaerliUdlhpVC2HBWBjZ76IWk6HKd6O3RX87D7uvJ8lDdbBKDJgEKIGQapXkTm_s0VcgJ";
            var    connection     = new BigchainConnection(bigchainhost);
            var    response       = await connection.ListBlocks(id);

            Assert.AreEqual(conditionUri, response.Outputs[0].Condition.Uri);
            Assert.AreEqual(fulfillmentUri, response.Inputs[0].Fulfillment);
        }
        public async Task Provided_Input_Should_Make_Transfer_Transaction_And_PostCommit()
        {
            string id = "282137f67ce65e34a9eb13145606d7bf87bdaf9174111d6053002bfc543575c8";

            var generatekp = new Ed25519Keypair();
            var keys       = generatekp.GenerateKeyPair();

            var connection   = new BigchainConnection(bigchainhost);
            var currentBlock = await connection.ListBlocks(id);

            Bigchain_Transaction transaction = new Bigchain_Transaction();
            var metadata = new Metadata
            {
                Error       = null,
                Status      = "A",
                Transaction = null
            };

            currentBlock.Metadata = JObject.FromObject(metadata);


            var unspentOutput = new UnspentOutput {
                Tx          = currentBlock,
                OutputIndex = 0
            };

            var Outputs = transaction.MakeOutput(Asn1ConditionsHelper.MakeEd25519Condition(currentBlock.Outputs[0].PublicKeys[0]));

            var tx = transaction.MakeTransferTransaction(new List <UnspentOutput> {
                unspentOutput
            },
                                                         Outputs,
                                                         metadata
                                                         );
            var signTransaction = new Bigchain_SignTransaction();
            var signedTx        = signTransaction.SignTransaction(tx, new List <string>()
            {
                keys.ExpandedPrivateKey
            });
            var serializedTransaction = JsonUtility.SerializeTransactionIntoCanonicalString(JsonConvert.SerializeObject(signedTx));

            Assert.Pass();
        }