question
stringlengths 34
149
| answer
stringlengths 173
1.02k
|
---|---|
Submit a proposal with title 'Proposal Title 8' and description 'Proposal Description 59' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 8';
const description = 'Proposal Description 59';
const deposit = '256';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const proposalMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgSubmitProposal',
value: {
content: {
typeUrl: '/cosmos.gov.v1beta1.TextProposal',
value: { title: title, description: description },
},
initialDeposit: [{ denom: chainConfig.denom, amount: (parseFloat(deposit) * 1000000).toString() }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
return result.transactionHash;
} |
Vote on proposal 70 with option 4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '70';
const option = '4';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
Undelegate 598 ATOM ATOM from cosmosvaloper1397kc4y6eyer3vuniyzrym65qco3g5jgz3nddc on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1397kc4y6eyer3vuniyzrym65qco3g5jgz3nddc';
const amount = '598';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Redelegate 542 ATOM ATOM from cosmosvaloper1nd46c4xo5krwe0fipmjki1ny7la6efrs1o1kxn to cosmosvaloper1gy8caiepet6k4clde4yojbuioksp40ktvu1dir on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1nd46c4xo5krwe0fipmjki1ny7la6efrs1o1kxn';
const dstValidatorAddress = 'cosmosvaloper1gy8caiepet6k4clde4yojbuioksp40ktvu1dir';
const amount = '542';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
How do I plan my week effectively? | Managing stress effectively involves practicing relaxation techniques such as deep breathing, meditation, and exercise. It's also important to maintain a healthy work-life balance and seek support from friends, family, or professionals if needed. |
Submit a proposal with title 'Proposal Title 8' and description 'Proposal Description 66' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 8';
const description = 'Proposal Description 66';
const deposit = '129';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const proposalMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgSubmitProposal',
value: {
content: {
typeUrl: '/cosmos.gov.v1beta1.TextProposal',
value: { title: title, description: description },
},
initialDeposit: [{ denom: chainConfig.denom, amount: (parseFloat(deposit) * 1000000).toString() }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
return result.transactionHash;
} |
Delegate 406 ATOM ATOM to cosmosvaloper19gtn2rwejg7pe1vmyw6xwojvj1oyvzow05yt50 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper19gtn2rwejg7pe1vmyw6xwojvj1oyvzow05yt50';
const amount = '406';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Redelegate 86 ATOM ATOM from cosmosvaloper1z1xneec3e1oe36r9thdb59rjcpyivm4zpglte6 to cosmosvaloper1l8na3xbjumvgowtn3xupmeupbzagcznvco63c0 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1z1xneec3e1oe36r9thdb59rjcpyivm4zpglte6';
const dstValidatorAddress = 'cosmosvaloper1l8na3xbjumvgowtn3xupmeupbzagcznvco63c0';
const amount = '86';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper1be6yb1sdnm04twlow6fwhtb863yjtdj5q0i39k on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1be6yb1sdnm04twlow6fwhtb863yjtdj5q0i39k';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const result = await client.withdrawRewards(firstAccount.address, validatorAddress, fee, 'Withdrawing rewards');
return result.transactionHash;
} |
Undelegate 128 ATOM ATOM from cosmosvaloper15sk8u396sqmluuezu7xv0fpr30fmofy8ke6ect on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper15sk8u396sqmluuezu7xv0fpr30fmofy8ke6ect';
const amount = '128';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Redelegate 286 ATOM ATOM from cosmosvaloper1c9wqc4r7cwsye0vw44puh673l4ymn2xidb6xh8 to cosmosvaloper1oroogagttkfguojgvre1b6xqneyrf4adrjx3vt on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1c9wqc4r7cwsye0vw44puh673l4ymn2xidb6xh8';
const dstValidatorAddress = 'cosmosvaloper1oroogagttkfguojgvre1b6xqneyrf4adrjx3vt';
const amount = '286';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper1uj1e6sbrkoy72rpmyobwgf3ypp5fys2ikwgh8z on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1uj1e6sbrkoy72rpmyobwgf3ypp5fys2ikwgh8z';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const result = await client.withdrawRewards(firstAccount.address, validatorAddress, fee, 'Withdrawing rewards');
return result.transactionHash;
} |
Undelegate 562 ATOM ATOM from cosmosvaloper1799n0rsaeeba0ujjoc81ale2txt62izvc9mzt4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1799n0rsaeeba0ujjoc81ale2txt62izvc9mzt4';
const amount = '562';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Redelegate 667 ATOM ATOM from cosmosvaloper1dltdicdy2buzx072xz48yk48jkgvg076wvfbvm to cosmosvaloper1r9avqo6vp7g36kd52hmq31ywibrln00ikyfnu7 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1dltdicdy2buzx072xz48yk48jkgvg076wvfbvm';
const dstValidatorAddress = 'cosmosvaloper1r9avqo6vp7g36kd52hmq31ywibrln00ikyfnu7';
const amount = '667';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
Undelegate 126 ATOM ATOM from cosmosvaloper11hcew94eal6gd3sro803xl4kpugwumnewz0wfz on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper11hcew94eal6gd3sro803xl4kpugwumnewz0wfz';
const amount = '126';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper1nlgspts2wks3p5phebr1typojcapcvvbq25xkg on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1nlgspts2wks3p5phebr1typojcapcvvbq25xkg';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const result = await client.withdrawRewards(firstAccount.address, validatorAddress, fee, 'Withdrawing rewards');
return result.transactionHash;
} |
Delegate 971 ATOM ATOM to cosmosvaloper1cji3rh5hmcapy13jk1q94gmdg7y9zaoaeugabh on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1cji3rh5hmcapy13jk1q94gmdg7y9zaoaeugabh';
const amount = '971';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Delegate 530 ATOM ATOM to cosmosvaloper1f33ieer3g365fbs4rpy0fjhzn3i94sw11cngkb on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1f33ieer3g365fbs4rpy0fjhzn3i94sw11cngkb';
const amount = '530';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Submit a proposal with title 'Proposal Title 37' and description 'Proposal Description 35' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 37';
const description = 'Proposal Description 35';
const deposit = '159';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const proposalMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgSubmitProposal',
value: {
content: {
typeUrl: '/cosmos.gov.v1beta1.TextProposal',
value: { title: title, description: description },
},
initialDeposit: [{ denom: chainConfig.denom, amount: (parseFloat(deposit) * 1000000).toString() }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper1gctjzym0ky3n89rs4e0b0ihmxs6lxbhy7yjjxf on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1gctjzym0ky3n89rs4e0b0ihmxs6lxbhy7yjjxf';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const result = await client.withdrawRewards(firstAccount.address, validatorAddress, fee, 'Withdrawing rewards');
return result.transactionHash;
} |
Delegate 206 ATOM ATOM to cosmosvaloper1cgh876dp986fwlop6yvppt3ek4sn0lc3jmfzhv on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1cgh876dp986fwlop6yvppt3ek4sn0lc3jmfzhv';
const amount = '206';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Submit a proposal with title 'Proposal Title 59' and description 'Proposal Description 44' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 59';
const description = 'Proposal Description 44';
const deposit = '612';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const proposalMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgSubmitProposal',
value: {
content: {
typeUrl: '/cosmos.gov.v1beta1.TextProposal',
value: { title: title, description: description },
},
initialDeposit: [{ denom: chainConfig.denom, amount: (parseFloat(deposit) * 1000000).toString() }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
return result.transactionHash;
} |
Undelegate 176 ATOM ATOM from cosmosvaloper17ddo7h6dopucezgc677wxr57j1csoklv1m3irl on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper17ddo7h6dopucezgc677wxr57j1csoklv1m3irl';
const amount = '176';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Vote on proposal 10 with option 1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '10';
const option = '1';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper1bff4vbgr427c5dr9tg9opwq8pqubmnwkahh3s2 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1bff4vbgr427c5dr9tg9opwq8pqubmnwkahh3s2';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const result = await client.withdrawRewards(firstAccount.address, validatorAddress, fee, 'Withdrawing rewards');
return result.transactionHash;
} |
Submit a proposal with title 'Proposal Title 12' and description 'Proposal Description 8' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 12';
const description = 'Proposal Description 8';
const deposit = '985';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const proposalMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgSubmitProposal',
value: {
content: {
typeUrl: '/cosmos.gov.v1beta1.TextProposal',
value: { title: title, description: description },
},
initialDeposit: [{ denom: chainConfig.denom, amount: (parseFloat(deposit) * 1000000).toString() }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
return result.transactionHash;
} |
Delegate 294 ATOM ATOM to cosmosvaloper1b7iut6oi3f8rs4rchbc2jh6hkrq7v6dmtcy0fw on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1b7iut6oi3f8rs4rchbc2jh6hkrq7v6dmtcy0fw';
const amount = '294';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Undelegate 631 ATOM ATOM from cosmosvaloper1jv24mr6j2lanoxov7wrg2f9mrnbkcuxa65mq7w on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1jv24mr6j2lanoxov7wrg2f9mrnbkcuxa65mq7w';
const amount = '631';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Undelegate 946 ATOM ATOM from cosmosvaloper1sdnq6wihwwaz1jaimplg9nzse7sd2tg2ckaxee on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1sdnq6wihwwaz1jaimplg9nzse7sd2tg2ckaxee';
const amount = '946';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Redelegate 170 ATOM ATOM from cosmosvaloper1v8jg1i4a115sjxws5cv2qotqglq5uh5n72e5og to cosmosvaloper1yfcw6qytc5tecnqmlpmqlnx685ygyzbm08w2v6 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1v8jg1i4a115sjxws5cv2qotqglq5uh5n72e5og';
const dstValidatorAddress = 'cosmosvaloper1yfcw6qytc5tecnqmlpmqlnx685ygyzbm08w2v6';
const amount = '170';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
Send 25 ATOM ATOM to cosmos1vtjn7fmu5zs3b8rmmrqo5l5oz5eaq5w865figw on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1vtjn7fmu5zs3b8rmmrqo5l5oz5eaq5w865figw';
const amount = '25';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const sendAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.sendTokens(firstAccount.address, recipient, [sendAmount], fee, 'Sending tokens');
return result.transactionHash;
} |
Send 944 ATOM ATOM to cosmos19p8awe9c8t7qvz3obzbi69s6fiwn58s9xcpnfy on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos19p8awe9c8t7qvz3obzbi69s6fiwn58s9xcpnfy';
const amount = '944';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const sendAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.sendTokens(firstAccount.address, recipient, [sendAmount], fee, 'Sending tokens');
return result.transactionHash;
} |
Undelegate 400 ATOM ATOM from cosmosvaloper1r724oqsqistjbxeg7nt3vqg07n0rvjix3wo31a on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1r724oqsqistjbxeg7nt3vqg07n0rvjix3wo31a';
const amount = '400';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Vote on proposal 64 with option 1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '64';
const option = '1';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
Redelegate 218 ATOM ATOM from cosmosvaloper1zdicoxreaff55t2xk8uxxhzij6zmg87j9kckoy to cosmosvaloper1lys2zuerlws27lcbn3a77sckx3gscnqzzr2ciz on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1zdicoxreaff55t2xk8uxxhzij6zmg87j9kckoy';
const dstValidatorAddress = 'cosmosvaloper1lys2zuerlws27lcbn3a77sckx3gscnqzzr2ciz';
const amount = '218';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
Send 699 ATOM ATOM to cosmos13t6bjzbft6rq2g95vo7mlyt32od52ihj4bps6g on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos13t6bjzbft6rq2g95vo7mlyt32od52ihj4bps6g';
const amount = '699';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const sendAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.sendTokens(firstAccount.address, recipient, [sendAmount], fee, 'Sending tokens');
return result.transactionHash;
} |
Redelegate 637 ATOM ATOM from cosmosvaloper1az0g5gfnqhih2y0y3432rjljms4xnqx2j1kix3 to cosmosvaloper1q6366c0bj240f8er9dmoe53cwgsjzsu8afkix1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1az0g5gfnqhih2y0y3432rjljms4xnqx2j1kix3';
const dstValidatorAddress = 'cosmosvaloper1q6366c0bj240f8er9dmoe53cwgsjzsu8afkix1';
const amount = '637';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
Undelegate 764 ATOM ATOM from cosmosvaloper1cigyk2hazdlex7odp7lqweftqit50ton2wn1k1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1cigyk2hazdlex7odp7lqweftqit50ton2wn1k1';
const amount = '764';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
How can I stay motivated while working from home? | Best practices for remote work include setting up a dedicated workspace, maintaining a regular schedule, taking breaks, staying connected with colleagues, and using productivity tools to manage tasks and projects. |
Delegate 447 ATOM ATOM to cosmosvaloper1qd8dk0qjz7vjtm9lpwgitk425hbf8b45xyo2uj on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1qd8dk0qjz7vjtm9lpwgitk425hbf8b45xyo2uj';
const amount = '447';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Vote on proposal 19 with option 2 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '19';
const option = '2';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
Undelegate 760 ATOM ATOM from cosmosvaloper1yc7sx1hj804bjyt73a9w663sdw469l2oqn8itm on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1yc7sx1hj804bjyt73a9w663sdw469l2oqn8itm';
const amount = '760';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Redelegate 719 ATOM ATOM from cosmosvaloper1y86pkhsblkdosq2sd5letjbisbflfill4iyu9j to cosmosvaloper1i1b0sz8pa0wfr5o6occx6v1uljhumcnpm7oy45 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1y86pkhsblkdosq2sd5letjbisbflfill4iyu9j';
const dstValidatorAddress = 'cosmosvaloper1i1b0sz8pa0wfr5o6occx6v1uljhumcnpm7oy45';
const amount = '719';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper19mps2z32p6zjkd3s4nmt4aamcnqxawahd4qre1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper19mps2z32p6zjkd3s4nmt4aamcnqxawahd4qre1';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const result = await client.withdrawRewards(firstAccount.address, validatorAddress, fee, 'Withdrawing rewards');
return result.transactionHash;
} |
Create a weekly timetable based on my input tasks. | Improving coding skills requires consistent practice, learning new programming languages and frameworks, contributing to open-source projects, and staying updated with the latest industry trends. |
Delegate 435 ATOM ATOM to cosmosvaloper1ybqwrdtalnzxm6utylgtz3fd97598xmurlkimw on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1ybqwrdtalnzxm6utylgtz3fd97598xmurlkimw';
const amount = '435';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Undelegate 876 ATOM ATOM from cosmosvaloper1uhx9zvd5lwchr5mlq1368txeffat9u17gd5yn3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1uhx9zvd5lwchr5mlq1368txeffat9u17gd5yn3';
const amount = '876';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Send 368 ATOM ATOM to cosmos1ww9qzg0wrhc85k3x53rmqtug36tjdkenepvt54 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1ww9qzg0wrhc85k3x53rmqtug36tjdkenepvt54';
const amount = '368';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const sendAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.sendTokens(firstAccount.address, recipient, [sendAmount], fee, 'Sending tokens');
return result.transactionHash;
} |
Delegate 548 ATOM ATOM to cosmosvaloper1ct1dm9jyjmwdv9796q9c9wbt7bqe0jf7zox2ch on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1ct1dm9jyjmwdv9796q9c9wbt7bqe0jf7zox2ch';
const amount = '548';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper13x07722qvg9u7dwhnahu3afwugro00bf9ndo4b on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper13x07722qvg9u7dwhnahu3afwugro00bf9ndo4b';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const result = await client.withdrawRewards(firstAccount.address, validatorAddress, fee, 'Withdrawing rewards');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper1de0qoumgmclhfk04fg64br0qss8ulcz6omeen9 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1de0qoumgmclhfk04fg64br0qss8ulcz6omeen9';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const result = await client.withdrawRewards(firstAccount.address, validatorAddress, fee, 'Withdrawing rewards');
return result.transactionHash;
} |
Send 834 ATOM ATOM to cosmos1xfa4un8b0rdfkqm4tos3ojaph5fz562lhdf3kr on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1xfa4un8b0rdfkqm4tos3ojaph5fz562lhdf3kr';
const amount = '834';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const sendAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.sendTokens(firstAccount.address, recipient, [sendAmount], fee, 'Sending tokens');
return result.transactionHash;
} |
Redelegate 619 ATOM ATOM from cosmosvaloper15vrj98hu0tuiuy38lja6bmmv34rgvuwzu5cmgl to cosmosvaloper1r8k65ygik9wqyj6rzwoirk5lp9prmrmyr1p5q8 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper15vrj98hu0tuiuy38lja6bmmv34rgvuwzu5cmgl';
const dstValidatorAddress = 'cosmosvaloper1r8k65ygik9wqyj6rzwoirk5lp9prmrmyr1p5q8';
const amount = '619';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper1u70c330vlgcs551o4c38qr98zu4f4195il3eq1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1u70c330vlgcs551o4c38qr98zu4f4195il3eq1';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const result = await client.withdrawRewards(firstAccount.address, validatorAddress, fee, 'Withdrawing rewards');
return result.transactionHash;
} |
Vote on proposal 75 with option 1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '75';
const option = '1';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
Vote on proposal 54 with option 4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '54';
const option = '4';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
Delegate 694 ATOM ATOM to cosmosvaloper1ap527owf850ji0s5so6ur0lgcn874z96mxj1gx on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1ap527owf850ji0s5so6ur0lgcn874z96mxj1gx';
const amount = '694';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Undelegate 758 ATOM ATOM from cosmosvaloper1f7fshhjjaabyxi755z93yk87iple5agpxsaf1f on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1f7fshhjjaabyxi755z93yk87iple5agpxsaf1f';
const amount = '758';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Undelegate 456 ATOM ATOM from cosmosvaloper10ykmt1mrfdzi0l1goz1f3mif3chzz7p3fucbvt on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper10ykmt1mrfdzi0l1goz1f3mif3chzz7p3fucbvt';
const amount = '456';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper17guo3miuaaftlac18l9zgf8us16ax2qq6tbw08 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper17guo3miuaaftlac18l9zgf8us16ax2qq6tbw08';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const result = await client.withdrawRewards(firstAccount.address, validatorAddress, fee, 'Withdrawing rewards');
return result.transactionHash;
} |
Vote on proposal 98 with option 4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '98';
const option = '4';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
What are some strategies for time management? | Organizing your day with a schedule can help you stay on track. Start by listing all your tasks for the day, then allocate specific time slots for each task. Be sure to include short breaks to recharge. |
Submit a proposal with title 'Proposal Title 29' and description 'Proposal Description 12' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 29';
const description = 'Proposal Description 12';
const deposit = '795';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const proposalMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgSubmitProposal',
value: {
content: {
typeUrl: '/cosmos.gov.v1beta1.TextProposal',
value: { title: title, description: description },
},
initialDeposit: [{ denom: chainConfig.denom, amount: (parseFloat(deposit) * 1000000).toString() }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
return result.transactionHash;
} |
Suggest a better plan for my tasks to improve efficiency. | To plan your week effectively, start by listing your tasks for the week. Prioritize them based on importance and deadlines. Allocate specific time slots for each task, and make sure to include breaks to avoid burnout. Review your plan daily and adjust as necessary. |
Redelegate 192 ATOM ATOM from cosmosvaloper1wobo3537a54qm4rips3i7ga9lyu8oyc629zdna to cosmosvaloper1lahnt744nl6014mcte72f602agvs0iq8mitr5f on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1wobo3537a54qm4rips3i7ga9lyu8oyc629zdna';
const dstValidatorAddress = 'cosmosvaloper1lahnt744nl6014mcte72f602agvs0iq8mitr5f';
const amount = '192';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
Vote on proposal 14 with option 4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '14';
const option = '4';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
How do I prepare for a job interview? | Strategies for time management include setting clear goals, prioritizing tasks, breaking tasks into smaller steps, using a planner or calendar, and avoiding procrastination. |
Undelegate 766 ATOM ATOM from cosmosvaloper1m5ompmi026r712p6x2nmj9or5r0nqgw6f7nqsx on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1m5ompmi026r712p6x2nmj9or5r0nqgw6f7nqsx';
const amount = '766';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper1i54jrafulun0dp87hljdn7jpsu6jj1al31d1kc on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1i54jrafulun0dp87hljdn7jpsu6jj1al31d1kc';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const result = await client.withdrawRewards(firstAccount.address, validatorAddress, fee, 'Withdrawing rewards');
return result.transactionHash;
} |
Redelegate 373 ATOM ATOM from cosmosvaloper13v5wzrrcvpax5d9tgg631pfdcxfov8j2cf518b to cosmosvaloper1l0p8kwpvldul8047eovlz4u0ll3xcgqc00w1a5 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper13v5wzrrcvpax5d9tgg631pfdcxfov8j2cf518b';
const dstValidatorAddress = 'cosmosvaloper1l0p8kwpvldul8047eovlz4u0ll3xcgqc00w1a5';
const amount = '373';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
Submit a proposal with title 'Proposal Title 64' and description 'Proposal Description 80' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 64';
const description = 'Proposal Description 80';
const deposit = '645';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const proposalMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgSubmitProposal',
value: {
content: {
typeUrl: '/cosmos.gov.v1beta1.TextProposal',
value: { title: title, description: description },
},
initialDeposit: [{ denom: chainConfig.denom, amount: (parseFloat(deposit) * 1000000).toString() }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
return result.transactionHash;
} |
Delegate 181 ATOM ATOM to cosmosvaloper17rnsnvadnm3ief7h3xzeq93d7dqbrq6htkwldu on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper17rnsnvadnm3ief7h3xzeq93d7dqbrq6htkwldu';
const amount = '181';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper1jkkgxusrh4d08zqv60egxlp9nmodxsr0oihbmx on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1jkkgxusrh4d08zqv60egxlp9nmodxsr0oihbmx';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const result = await client.withdrawRewards(firstAccount.address, validatorAddress, fee, 'Withdrawing rewards');
return result.transactionHash;
} |
Redelegate 599 ATOM ATOM from cosmosvaloper1xna5zb8pycehpkl8syg9coholfhoerkowub2u4 to cosmosvaloper1n6h6bzlz2pq5ns6ebf0vhemk1nazg45uzthjpx on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1xna5zb8pycehpkl8syg9coholfhoerkowub2u4';
const dstValidatorAddress = 'cosmosvaloper1n6h6bzlz2pq5ns6ebf0vhemk1nazg45uzthjpx';
const amount = '599';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper10lknqlluvdi3ghobnkzo8g89p3ld36yyddgumj on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper10lknqlluvdi3ghobnkzo8g89p3ld36yyddgumj';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const result = await client.withdrawRewards(firstAccount.address, validatorAddress, fee, 'Withdrawing rewards');
return result.transactionHash;
} |
Submit a proposal with title 'Proposal Title 47' and description 'Proposal Description 59' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 47';
const description = 'Proposal Description 59';
const deposit = '390';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const proposalMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgSubmitProposal',
value: {
content: {
typeUrl: '/cosmos.gov.v1beta1.TextProposal',
value: { title: title, description: description },
},
initialDeposit: [{ denom: chainConfig.denom, amount: (parseFloat(deposit) * 1000000).toString() }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
return result.transactionHash;
} |
Delegate 630 ATOM ATOM to cosmosvaloper1qgrda6s3bvpvp3pjyw0ou5ppnsriexnwvzt52e on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1qgrda6s3bvpvp3pjyw0ou5ppnsriexnwvzt52e';
const amount = '630';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
What are the benefits of a balanced diet? | Improving coding skills requires consistent practice, learning new programming languages and frameworks, contributing to open-source projects, and staying updated with the latest industry trends. |
Undelegate 784 ATOM ATOM from cosmosvaloper109rltbzarbjoyyghodioisz4dj87hzm2nrvm7s on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper109rltbzarbjoyyghodioisz4dj87hzm2nrvm7s';
const amount = '784';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Vote on proposal 97 with option 3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '97';
const option = '3';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
Undelegate 548 ATOM ATOM from cosmosvaloper1txufo4rzx8uap2295g785peyppms6qpkx6o4oc on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1txufo4rzx8uap2295g785peyppms6qpkx6o4oc';
const amount = '548';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Delegate 514 ATOM ATOM to cosmosvaloper17h9ubwjhtsynpvzgi240vkv1j343xwnd1pr3av on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper17h9ubwjhtsynpvzgi240vkv1j343xwnd1pr3av';
const amount = '514';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Submit a proposal with title 'Proposal Title 84' and description 'Proposal Description 35' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 84';
const description = 'Proposal Description 35';
const deposit = '164';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const proposalMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgSubmitProposal',
value: {
content: {
typeUrl: '/cosmos.gov.v1beta1.TextProposal',
value: { title: title, description: description },
},
initialDeposit: [{ denom: chainConfig.denom, amount: (parseFloat(deposit) * 1000000).toString() }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
return result.transactionHash;
} |
How do I plan my week effectively? | To improve efficiency, try breaking down large tasks into smaller, manageable steps. Prioritize tasks based on urgency and importance, and eliminate any distractions while working. |
Vote on proposal 58 with option 3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '58';
const option = '3';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
Vote on proposal 70 with option 1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '70';
const option = '1';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper1h4hh4i41l4r1mx22nltt6k66556br64mu190zh on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1h4hh4i41l4r1mx22nltt6k66556br64mu190zh';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const result = await client.withdrawRewards(firstAccount.address, validatorAddress, fee, 'Withdrawing rewards');
return result.transactionHash;
} |
Redelegate 286 ATOM ATOM from cosmosvaloper1e1to72kg00p72gonu7c7tc3294f9g9zlik0eto to cosmosvaloper1c2xex7fofbfggk8f0fbdr38ehh3k7b8vk0gou1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1e1to72kg00p72gonu7c7tc3294f9g9zlik0eto';
const dstValidatorAddress = 'cosmosvaloper1c2xex7fofbfggk8f0fbdr38ehh3k7b8vk0gou1';
const amount = '286';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
Send 587 ATOM ATOM to cosmos13ss6nzdldsmmre761jz1i8t0pdlwtvcgbakgts on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos13ss6nzdldsmmre761jz1i8t0pdlwtvcgbakgts';
const amount = '587';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const sendAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.sendTokens(firstAccount.address, recipient, [sendAmount], fee, 'Sending tokens');
return result.transactionHash;
} |
Create a weekly timetable based on my input tasks. | Staying motivated while working from home can be achieved by setting up a comfortable workspace, establishing a routine, setting clear goals, rewarding yourself for achievements, and staying connected with colleagues and friends. |
Redelegate 44 ATOM ATOM from cosmosvaloper1rvjvrk2a2mdqzwjslpdqtnvxwz419pr7tu26wt to cosmosvaloper1ksfiv4yrthhie5lxvrqulr1srjusiuoo7zfhwz on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1rvjvrk2a2mdqzwjslpdqtnvxwz419pr7tu26wt';
const dstValidatorAddress = 'cosmosvaloper1ksfiv4yrthhie5lxvrqulr1srjusiuoo7zfhwz';
const amount = '44';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
Send 766 ATOM ATOM to cosmos1gm9repeubmn99b1yq9180fkbi5nrgq4s58gmdg on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1gm9repeubmn99b1yq9180fkbi5nrgq4s58gmdg';
const amount = '766';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const sendAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.sendTokens(firstAccount.address, recipient, [sendAmount], fee, 'Sending tokens');
return result.transactionHash;
} |
Send 221 ATOM ATOM to cosmos178l9hucq2zmgisbdylge2t7539ivqc86luzxvn on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos178l9hucq2zmgisbdylge2t7539ivqc86luzxvn';
const amount = '221';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const sendAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.sendTokens(firstAccount.address, recipient, [sendAmount], fee, 'Sending tokens');
return result.transactionHash;
} |
Vote on proposal 28 with option 4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '28';
const option = '4';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
Delegate 564 ATOM ATOM to cosmosvaloper1kkyhe3yxaxtr4uqldjoei50mn5xda6rtlefeyk on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1kkyhe3yxaxtr4uqldjoei50mn5xda6rtlefeyk';
const amount = '564';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Delegate 905 ATOM ATOM to cosmosvaloper12qsg0ee0bdyo3wta2teule40l6urco1uehiy19 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper12qsg0ee0bdyo3wta2teule40l6urco1uehiy19';
const amount = '905';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Redelegate 25 ATOM ATOM from cosmosvaloper1sgr524a7u9vh2i0vivln9l7aut3frd16gr5pj9 to cosmosvaloper1fcnkrymit6jcq2y7h6fb6z6dw8j5inpnp42oob on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1sgr524a7u9vh2i0vivln9l7aut3frd16gr5pj9';
const dstValidatorAddress = 'cosmosvaloper1fcnkrymit6jcq2y7h6fb6z6dw8j5inpnp42oob';
const amount = '25';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
How do I plan my week effectively? | A balanced diet provides essential nutrients and helps maintain overall health. It should include a variety of foods from all food groups: fruits, vegetables, protein, dairy, and grains. Staying hydrated and moderating intake of sugar and saturated fats are also important. |
Vote on proposal 67 with option 3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '67';
const option = '3';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
Vote on proposal 58 with option 1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '58';
const option = '1';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.