text: 
  const { LotusRPC } = require('@filecoin-shipyard/lotus-client-rpc')
  const { NodejsProvider: Provider } = require('@filecoin-shipyard/lotus-client-provider-nodejs')
  const { mainnet } = require('@filecoin-shipyard/lotus-client-schema')
  const methods = require('../../filecoin/methods').testnet
  const fs = require('fs')
  const constants = require('../constants')
  
  const endpointUrl = constants.lotus_endpoint
  const tokenPath = constants.token_path
  
  const provider = new Provider(endpointUrl, {
    token: async () => {
      return fs.readFileSync(tokenPath)
    },
  })
  
  const client = new LotusRPC(provider, { schema: mainnet.fullNode })
  
  async function load(a) {
    const res = await client.chainGetNode(a)
    return res.Obj
  }
  
  const schema = {
    type: 'hamt',
    key: 'address',
    value: 'bigint',
  }
  
  async function run() {
    const head = await client.chainHead()
    console.log('height', head.Height)
    const actor = await client.stateGetActor('t06', head.Cids)
    console.log('actor', actor)
    const clients = (await client.chainGetNode(`${actor.Head['/']}/2`)).Obj
    const dta = methods.decode(schema, clients)
    for (const it of await dta.asList(load)) {
      console.log(it)
    }
    console.log(await dta.find(load, 't01005'))
    await provider.destroy()
  }
  
  run()
  