RunKit + npm: @ltonetwork/lto

node v18.11.0
version: 1.0.0
endpointsharetweet
const {LTO, Binary, EventChain, Event} = require("@ltonetwork/lto") const lto = new LTO('T'); const account = lto.account({seed: ''}); const chain = new EventChain(account); new Event({ "@context": "instantiate_msg.json", ownable_id: chain.id, package: "bafybeia7oagxqbyjhnpjtfbwxfbfeoihipjb4pe5kcnwghyfluau2fcpji", network_id: 84, }).addTo(chain).signWith(account); new Event({ "@context": "execute_msg.json", "ownable_lock": {}, }).addTo(chain).signWith(account); JSON.stringify(chain, null, 2);
Created from: https://npm.runkit.com/%40ltonetwork%2Flto
Loading…

no comments

    sign in to comment