1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00
squid-js/src/examples/GetBalance.ts

14 lines
295 B
TypeScript
Raw Normal View History

2018-11-27 13:38:18 +01:00
import {Logger, Ocean} from "../squid"
2018-12-10 10:11:36 +01:00
import config from "./config"
import {runner} from "./runner"
2018-11-27 13:38:18 +01:00
async function exec() {
2018-11-27 13:38:18 +01:00
const ocean: Ocean = await Ocean.getInstance(config)
const accounts = await ocean.getAccounts()
Logger.log(await accounts[0].getBalance())
}
2019-01-11 11:17:42 +01:00
runner(exec)