import { Ecanna } from "ecanna/dist" import { StakeVMAPI, KeyChain, KeyPair } from "ecanna/dist/apis/stakevm" const ip: string = "localhost" const port: number = 9650 const protocol: string = "http" const networkID: number = 1337 const ecanna: Ecanna = new Ecanna(ip, port, protocol, networkID) const stkchain: StakeVMAPI = ecanna.STKChain() const main = async (): Promise => { const keychain: KeyChain = stkchain.keyChain() const keypair: KeyPair = keychain.makeKey() const response: { address: string publicKey: string privateKey: string } = { address: keypair.getAddressString(), publicKey: keypair.getPublicKeyString(), privateKey: keypair.getPrivateKeyString() } console.log(response) } main()