Restore first send
This commit is contained in:
parent
824e09ebbe
commit
188bb1ff3f
@ -15,15 +15,15 @@ const rpcUrl = "http://localhost:26659";
|
||||
const prefix = "wasm";
|
||||
const faucet = {
|
||||
mnemonic:
|
||||
"flat ski gap size ankle rifle congress month nice state follow mechanic produce cube moment boss enlist disorder during logic brother ride erosion member",
|
||||
address0: "wasm100xecaptkwqaq6e53s8zxf2vkzz47n6swseykt",
|
||||
"economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone",
|
||||
address0: "wasm1pkptre7fdkl6gfrzlesjjvhxhlc3r4gm32kke3",
|
||||
};
|
||||
|
||||
async function main() {
|
||||
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(faucet.mnemonic, { prefix: prefix });
|
||||
const client = await SigningStargateClient.connectWithSigner(rpcUrl, wallet, { prefix: prefix });
|
||||
const recipient = "wasm14qemq0vw6y3gc3u3e0aty2e764u4gs5lndxgyk";
|
||||
const amount = coins(500000000, "ucosm");
|
||||
const recipient = toBech32(prefix, Random.getBytes(20));
|
||||
const amount = coins(226644, "ucosm");
|
||||
const fee = calculateFee(100_000, "0.025ucosm");
|
||||
const memo = "Ensure chain has my pubkey";
|
||||
const sendResult = await client.sendTokens(faucet.address0, recipient, amount, fee, memo);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user