public void DumpConsensusStateTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); DumpRoundStateData result = nodeRpcClient.DumpConsensusState(); Assert.NotNull(result.RoundState.Height); }
public void NetInfoTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultNetInfo result = nodeRpcClient.NetInfo(); Assert.NotNull(result.Peers[0].NodeInfo.Id); }
public void AbciInfoTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResponseData responseData = nodeRpcClient.AbciInfo(); Assert.NotNull(responseData.Response.Data); }
public void ConsensusStateTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ConsensusRoundStateData result = nodeRpcClient.ConsensusState(); Assert.NotNull(result.RoundState.HeightVoteSets[0]); }
public void AbciQueryTokenListTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultAbciQuery response = nodeRpcClient.AbciQueryTokenList(); Assert.NotNull(response.Response.Value); }
public void ValidatorsTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultValidators result = nodeRpcClient.Validators(10779111); Assert.NotNull(result.Validators[0].Address); }
public void ConsensusParamsTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultConsensusParams result = nodeRpcClient.ConsensusParams(10779111); Assert.NotNull(result.ConsensusParams.Evidence.MaxAge); }
public void NumUnconfirmedTxsTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultNumUnconfirmedTxs result = nodeRpcClient.NumUnconfirmedTxs(); Assert.NotNull(result.NTxs); }
public void BlockchainTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultBlockchainInfo result = nodeRpcClient.Blockchain(10, 11); Assert.NotNull(result.BlockMetas[0].Header.ChainId); }
public void CommitTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultCommit result = nodeRpcClient.Commit(10779111); Assert.NotNull(result.SignedHeader.Header.ChainId); }
public void BlockResultsTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultBlockResults result = nodeRpcClient.BlockResults(10779111); Assert.NotNull(result.Results.BeginBlock); }
public void BlockByHashTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultBlock result = nodeRpcClient.BlockByHash("0x989A3A075B6168A5B0F9B75F69BC71608E65D7A8A632F0D462AD311A646923ED"); Assert.NotNull(result.Block.Header.ChainId); }
public void BlockTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultBlock result = nodeRpcClient.Block(10779111); Assert.NotNull(result.Block.Header.ChainId); }
public void GenesisTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultGenesis result = nodeRpcClient.Genesis(); Assert.NotNull(result.Genesis); }
public void TxTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultTx result = nodeRpcClient.Tx("0xAB1B84C7C0B0B195941DCE9CFE1A54214B72D5DB54AD388D8B146A6B62911E8E", true); Assert.NotNull(result.TxResult.Data); }
public void HealthTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultHealth result = nodeRpcClient.Health(); Assert.NotNull(result); }
public void TxSearchTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultTxSearch result = nodeRpcClient.TxSearch("tx.height=10779179", true); Assert.NotNull(result.TotalCount); }
public void StatusTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultStatus result = nodeRpcClient.Status(); Assert.NotNull(result.NodeInfo.ListenAddr); }
public void AbciQueryTest() { NodeRpcClient nodeRpcClient = new NodeRpcClient(endpoint); ResultAbciQuery response = nodeRpcClient.AbciQuery(EAbciQueryPath.StoreAccKey, "0x6163636F756E743A89F856CB39D25C1BDDAAEC74A381577CA8E2F886"); Assert.NotNull(response.Response.Value); }