Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: @ltonetwork/lto
node v18.11.0
version:
1.0.0
endpoint
share
tweet
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