Organize Akash account source comments

This commit is contained in:
Simon Warta
2021-03-16 14:07:31 +01:00
parent df756e5cc7
commit 3a18b0ec43
2 changed files with 4 additions and 3 deletions
@@ -2,8 +2,10 @@ import { QueryClient, setupAuthExtension } from "@cosmjs/stargate";
import { Any } from "@cosmjs/stargate/build/codec/google/protobuf/any";
import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
// https://github.com/ovrclk/net/blob/24ddbb427b0c15/mainnet/rpc-nodes.txt
// https://github.com/ovrclk/net/blob/24ddbb427/mainnet/rpc-nodes.txt
const tmClient = await Tendermint34Client.connect("http://rpc.akash.forbole.com:80");
const client = QueryClient.withExtensions(tmClient, setupAuthExtension);
// Arbitrary entry from https://raw.githubusercontent.com/ovrclk/net/24ddbb427/mainnet/genesis.json
const account = await client.auth.unverified.account("akash1qy0vur3fl2ucztpzcrfea7mc8jwz8xjmvq7qvy");
console.log(Any.toJSON(account))