12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import { AccAddress, LCDClient, MnemonicKey } from '@initia/initia.js'
- import { InitiaClient } from './InitiaClient'
- const key = new MnemonicKey({
- mnemonic:
- 'front today attitude network chef scene anxiety fashion hole trim regret liquid sudden void agree angle page angle chief screen under various bridge dirt',
- // 'visual giant rely tooth recall explain vital tunnel snow road airport cake',
- // 'deal earth suggest craft impact vocal outdoor perfect winter nice unhappy lizard',
- // 'educate shock jaguar unfold famous bag legend damp fence trumpet steak again body party carbon index daughter unusual miracle hen dove brand loan beach',
- // 'recipe bind slow color mammal wave slush clump filter spot retire faculty area room enough pill become cluster cheap repair riot safe grit smile',
- // 'educate shock jaguar unfold famous bag legend damp fence trumpet steak again body party carbon index daughter unusual miracle hen dove brand loan beach',
- // 'nut chalk dilemma solve same correct hood lava earn window under coral picture rabbit inform room maximum puppy mixed valley giggle glue mail frame',
- // 'recipe bind slow color mammal wave slush clump filter spot retire faculty area room enough pill become cluster cheap repair riot safe grit smile',
- // 'language tooth rug border arm essence badge rough ahead unaware bag night stay auto spawn february odor equip hub demand three setup used sentence',
- // 'camp rural essay together right oblige shine visa sketch garage legal crush argue calm soup egg forum luxury action cupboard fade myth gospel confirm',
- // 'neutral flight plug goddess marble champion message bottom gentle guilt ketchup way guide obey nominee panda sleep meadow scene sea fine cause upgrade only',
- })
- console.log('mnemonic:', key.mnemonic)
- // mnemonic: beauty sniff protect...
- console.log('account address:', key.accAddress)
- // account address: init10m5nnevplkzvv5svqf0xjx6dc4705u5dxfn2st
- const lcd = new LCDClient('https://api-initia-testnet.whispernode.com/', {
- chainId: 'initiation-1',
- })
- // const wallet = new Wallet(lcd, key)
- // const msg = new MsgExecute(
- // key.accAddress,
- // '0x1',
- // 'dex',
- // 'swap_script',
- // [],
- // [
- // 'sTSuZ4bxDvdClOYn0lGbY7fHQqZzX5hoKSn+qahHRNI=',
- // 'jkczvavPfUr8PRTw3UbJv1L7D86eS5lsk54ZW4vIkdk=',
- // 'QEIPAAAAAAA=',
- // 'AdWGAQAAAAAA',
- // ],
- // )
- async function main() {
- const client = new InitiaClient(key.mnemonic, false)
- const res = await client.freezeDogs()
- console.log(res)
- }
- // hex()
- main()
|