Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 519 Bytes
import { DFUSE_API_KEY, runMain, prettifyJson, DFUSE_API_NETWORK } from "../config"
import { createDfuseClient } from "@dfuse/client"
async function main() {
const client = createDfuseClient({ apiKey: DFUSE_API_KEY, network: DFUSE_API_NETWORK })
try {
const response = await client.stateTable("moneymarket1", "moneymarket1", "sbalances4")
console.log("State table response", prettifyJson(response))
} catch (error) {
console.log("An error occurred", error)
}
client.release()
}
runMain(main)
You can’t perform that action at this time.