コード例 #1
0
ファイル: CondenserApiTest.cs プロジェクト: cogutvalera/Ditch
        public async Task get_potential_signatures()
        {
            var args = new GetPotentialSignaturesArgs
            {
                Trx = await GetSignedTransaction()
            };
            var resp = await Api.CondenserGetPotentialSignatures(args, CancellationToken.None);

            TestPropetries(resp);
        }
コード例 #2
0
        public void get_potential_signatures()
        {
            var args = new GetPotentialSignaturesArgs()
            {
                Trx = GetSignedTransaction()
            };
            var resp = Api.GetPotentialSignatures(args, CancellationToken.None);

            WriteLine(resp);
            Assert.IsFalse(resp.IsError);

            var obj = Api.CustomGetRequest <JObject>(KnownApiNames.DatabaseApi, "get_potential_signatures", args, CancellationToken.None);

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
コード例 #3
0
        /**
         *  This method will return the set of all public keys that could possibly sign for a given transaction.  This call can
         *  be used by wallets to filter their set of public keys to just the relevant subset prior to calling @ref get_required_signatures
         *  to get the minimum subset.
         */

        /// <summary>
        /// API name: get_potential_signatures
        ///
        /// </summary>
        /// <param name="args">API type: get_potential_signatures_args</param>
        /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
        /// <returns>API type: get_potential_signatures_return</returns>
        /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
        public Task <JsonRpcResponse <GetPotentialSignaturesReturn> > GetPotentialSignatures(GetPotentialSignaturesArgs args, CancellationToken token)
        {
            return(CustomGetRequest <GetPotentialSignaturesReturn>(KnownApiNames.DatabaseApi, "get_potential_signatures", args, token));
        }
コード例 #4
0
        //  "condenser_api.get_escrow",
        //  "condenser_api.get_expiring_vesting_delegations",
        //  "condenser_api.get_feed",
        //  "condenser_api.get_feed_entries",
        //  "condenser_api.get_feed_history",
        //  "condenser_api.get_follow_count",
        //  "condenser_api.get_followers",
        //  "condenser_api.get_following",
        //  "condenser_api.get_hardfork_version",
        //  "condenser_api.get_key_references",
        //  "condenser_api.get_market_history",
        //  "condenser_api.get_market_history_buckets",
        //  "condenser_api.get_next_scheduled_hardfork",
        //  "condenser_api.get_open_orders",
        //  "condenser_api.get_ops_in_block",
        //  "condenser_api.get_order_book",
        //  "condenser_api.get_owner_history",
        //  "condenser_api.get_post_discussions_by_payout",

        /// <summary>
        /// API name: get_potential_signatures
        ///
        /// </summary>
        /// <param name="args">API type: get_potential_signatures_args</param>
        /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
        /// <returns>API type: get_potential_signatures_return</returns>
        /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
        public Task <JsonRpcResponse <GetPotentialSignaturesReturn> > CondenserGetPotentialSignaturesAsync(GetPotentialSignaturesArgs args, CancellationToken token)
        {
            return(CondenserCustomGetRequestAsync <GetPotentialSignaturesReturn>(KnownApiNames.CondenserApi, "get_potential_signatures", args, token));
        }