This commit is contained in:
Pynix Wang 2024-02-28 15:25:01 +08:00 committed by Simon Warta
parent ec9ab2224e
commit 280ea8eaf9

View File

@ -23,7 +23,7 @@ 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(226644, "ucosm");
const amount = coins(500000000, "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);