mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
11 lines
253 B
TypeScript
11 lines
253 B
TypeScript
|
import {Logger, Ocean} from "../squid"
|
||
|
import * as config from "./config.json"
|
||
|
|
||
|
(async () => {
|
||
|
const ocean: Ocean = await Ocean.getInstance(config)
|
||
|
|
||
|
const accounts = await ocean.getAccounts()
|
||
|
|
||
|
Logger.log(await accounts[0].getBalance())
|
||
|
})()
|