コード例 #1
0
ファイル: ChainApiTest.cs プロジェクト: wymoon2690/Ditch
        public async Task GetRawCodeAndAbiTest(string accName)
        {
            var args = new GetRawCodeAndAbiParams
            {
                AccountName = accName
            };

            var resp = await Api.GetRawCodeAndAbiAsync(args, CancellationToken).ConfigureAwait(false);

            TestPropetries(resp);
        }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="args">Account name to get code and abi for</param>
        /// <param name="token"></param>
        /// <returns></returns>
        public async Task <OperationResult <GetRawCodeAndAbiResults> > GetRawCodeAndAbiAsync(GetRawCodeAndAbiParams args, CancellationToken token)
        {
            var endpoint = $"{ChainUrl}/v1/chain/get_raw_code_and_abi";

            return(await CustomPutRequestAsync <GetRawCodeAndAbiResults>(endpoint, args, token).ConfigureAwait(false));
        }