import { InitiaTask } from './InitiaTask' import { MsgSend } from '@initia/initia.js' export class InitiaClient extends InitiaTask { constructor(mnemonic: string) { super(mnemonic) } async transfer(to: string, amount: number) { const msg = new MsgSend( this.wallet.key.accAddress, to, `${amount * Math.pow(10, 6)}uinit`, ) const signed = await this.wallet.createAndSignTx({ // sequence: 3, msgs: [msg], }) const broadcast = await this.lcd.tx.broadcast(signed) console.log(broadcast) } }