Published
Edited
Aug 13, 2020
Insert cell
Insert cell
Insert cell
Insert cell
await client.version()
Insert cell
Insert cell
miner = 't01076'
Insert cell
Insert cell
Insert cell
info = await client.stateMinerInfo(miner, [])
Insert cell
Insert cell
peerId = info.PeerId
Insert cell
Insert cell
ask = await client.clientQueryAsk(peerId, miner)
Insert cell
Insert cell
Insert cell
LotusRPC = (await import('@filecoin-shipyard/lotus-client-rpc')).LotusRPC
Insert cell
BrowserProvider = (await import('@filecoin-shipyard/lotus-client-provider-browser')).BrowserProvider
Insert cell
schema = (await import('@filecoin-shipyard/lotus-client-schema')).testnet.fullNode
Insert cell
Insert cell
Object.keys(schema.methods)
Insert cell
Insert cell
Insert cell
endpointUrl
Insert cell
client = {
const provider = new BrowserProvider(endpointUrl)
return new LotusRPC(provider, { schema })
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more