import { Lux } from "lux/dist" import { EVMAPI, KeyChain, KeyPair } from "lux/dist/apis/evm" import { CreateKeyPairResponse } from "lux/dist/apis/evm/interfaces" const ip: string = "localhost" const port: number = 9650 const protocol: string = "http" const networkID: number = 1337 const lux: Lux = new Lux(ip, port, protocol, networkID) const cchain: EVMAPI = lux.CChain() const main = async (): Promise => { const keychain: KeyChain = cchain.keyChain() const keypair: KeyPair = keychain.makeKey() const address: string = keypair.getAddressString() const publicKey: string = keypair.getPublicKeyString() const privateKey: string = keypair.getPrivateKeyString() const createKeypairResponse: CreateKeyPairResponse = { address: address, publicKey: publicKey, privateKey: privateKey } console.log(createKeypairResponse) } main()