question
stringlengths 34
149
| answer
stringlengths 173
1.02k
|
---|---|
Withdraw rewards from cosmosvaloper167ijv24n801ey1mbf4wju8oj7t1y5fzkpr67az on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper167ijv24n801ey1mbf4wju8oj7t1y5fzkpr67az';
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 1 ATOM ATOM to cosmosvaloper1jb76wo2reqrchcxtr90al2ziqenapsvhb9ve9t on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1jb76wo2reqrchcxtr90al2ziqenapsvhb9ve9t';
const amount = '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 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 65 with option 2 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '65';
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;
} |
Delegate 47 ATOM ATOM to cosmosvaloper16uzt885o9yxyc22dgllu36tpz2a5tcl76ovok6 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper16uzt885o9yxyc22dgllu36tpz2a5tcl76ovok6';
const amount = '47';
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 473 ATOM ATOM from cosmosvaloper1mchiyxky14bgul0ans43w6nnfvkdd7d0e9ni9w on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1mchiyxky14bgul0ans43w6nnfvkdd7d0e9ni9w';
const amount = '473';
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 cosmosvaloper1t5ghg5dt233gm1ldqui1ewvnac5w4b6mya19md on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1t5ghg5dt233gm1ldqui1ewvnac5w4b6mya19md';
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 455 ATOM ATOM to cosmosvaloper1fj8k6jbanulfmn79tvwjmewdfh9uk5yjwkl3i2 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1fj8k6jbanulfmn79tvwjmewdfh9uk5yjwkl3i2';
const amount = '455';
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? | To prepare for a job interview, research the company and the role you applied for. Practice common interview questions, dress appropriately, and arrive on time. Be ready to discuss your experience and how it relates to the position. Prepare some questions to ask the interviewer as well. |
Withdraw rewards from cosmosvaloper1yhg7xw1l3ivbds9oj6j68f2tzp9q0nyjamhxro on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1yhg7xw1l3ivbds9oj6j68f2tzp9q0nyjamhxro';
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 1 with option 2 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '1';
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;
} |
Withdraw rewards from cosmosvaloper1kzovg458nseexqeyazb9ptzlipf81y5ghyvly7 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1kzovg458nseexqeyazb9ptzlipf81y5ghyvly7';
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 94' and description 'Proposal Description 78' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 94';
const description = 'Proposal Description 78';
const deposit = '547';
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 can I improve my coding skills? | 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. |
Submit a proposal with title 'Proposal Title 22' and description 'Proposal Description 27' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 22';
const description = 'Proposal Description 27';
const deposit = '521';
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 882 ATOM ATOM to cosmosvaloper1klbno0328wwnh6wof7hl39xgng03v2t8li3pwe on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1klbno0328wwnh6wof7hl39xgng03v2t8li3pwe';
const amount = '882';
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;
} |
Send 518 ATOM ATOM to cosmos1xlksvl1fpy9900czeevy2a36r2lm6nwkikbz56 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1xlksvl1fpy9900czeevy2a36r2lm6nwkikbz56';
const amount = '518';
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 283 ATOM ATOM from cosmosvaloper1g0u90ftbbuv0nodc5dbebi1kr56rpiotx72myb on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1g0u90ftbbuv0nodc5dbebi1kr56rpiotx72myb';
const amount = '283';
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 189 ATOM ATOM to cosmos13ns8nsi7lgx4oaqujsk7l0nekpmqu710f8jxn0 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos13ns8nsi7lgx4oaqujsk7l0nekpmqu710f8jxn0';
const amount = '189';
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 100 with option 3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '100';
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;
} |
Redelegate 52 ATOM ATOM from cosmosvaloper1bxfkrmc5dbv2e78nbkicpnh55rr4azkdtbqtay to cosmosvaloper1phijvlblpiwza9xwqwpseh6tkxzp4repkm07j9 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1bxfkrmc5dbv2e78nbkicpnh55rr4azkdtbqtay';
const dstValidatorAddress = 'cosmosvaloper1phijvlblpiwza9xwqwpseh6tkxzp4repkm07j9';
const amount = '52';
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;
} |
Delegate 8 ATOM ATOM to cosmosvaloper1750hs2wks27a34uyzl00oag5jl3gzq8zwr2nou on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1750hs2wks27a34uyzl00oag5jl3gzq8zwr2nou';
const amount = '8';
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 66 ATOM ATOM from cosmosvaloper1wndn0hgtdmf1yxjcolqd8ub8vhzmypd66tzmwl on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1wndn0hgtdmf1yxjcolqd8ub8vhzmypd66tzmwl';
const amount = '66';
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 879 ATOM ATOM to cosmosvaloper10i0q9pj55amjyvqkjj8h1y0sxq47ncavh0r9sv on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper10i0q9pj55amjyvqkjj8h1y0sxq47ncavh0r9sv';
const amount = '879';
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 236 ATOM ATOM from cosmosvaloper1z7q2etk89b5m2wfkcehw0inbaivzb76xr8jwh5 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1z7q2etk89b5m2wfkcehw0inbaivzb76xr8jwh5';
const amount = '236';
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;
} |
What are the best practices for remote work? | 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. |
Undelegate 429 ATOM ATOM from cosmosvaloper1c88kj81mtg9auspqavgkz2w6bsxxj7ii6f6o70 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1c88kj81mtg9auspqavgkz2w6bsxxj7ii6f6o70';
const amount = '429';
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;
} |
Submit a proposal with title 'Proposal Title 95' and description 'Proposal Description 9' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 95';
const description = 'Proposal Description 9';
const deposit = '815';
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;
} |
Submit a proposal with title 'Proposal Title 10' and description 'Proposal Description 97' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 10';
const description = 'Proposal Description 97';
const deposit = '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 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;
} |
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. |
Delegate 138 ATOM ATOM to cosmosvaloper1upksaagh2gpyf43z5ex3lpt660uons2dgi161d on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1upksaagh2gpyf43z5ex3lpt660uons2dgi161d';
const amount = '138';
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 cosmosvaloper1wacste3gr9okhbnythtvd7l0k5jsckhfs0t05k on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1wacste3gr9okhbnythtvd7l0k5jsckhfs0t05k';
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 cosmosvaloper16vlkx3072z99zm45kse534u0jr17unkpwc1ssf on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper16vlkx3072z99zm45kse534u0jr17unkpwc1ssf';
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 976 ATOM ATOM from cosmosvaloper1xuyg3pqzuj09frvjb3p0q1n6710p2flvzorj0j to cosmosvaloper1e4q9jmj6n0ybtzeh1uu3qyycgrggaj0axbrleu on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1xuyg3pqzuj09frvjb3p0q1n6710p2flvzorj0j';
const dstValidatorAddress = 'cosmosvaloper1e4q9jmj6n0ybtzeh1uu3qyycgrggaj0axbrleu';
const amount = '976';
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;
} |
Delegate 2 ATOM ATOM to cosmosvaloper15kl9oma5bhqqqdmdyun815s02c44n072vt0bfx on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper15kl9oma5bhqqqdmdyun815s02c44n072vt0bfx';
const amount = '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 delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Send 945 ATOM ATOM to cosmos1tr60z5dny6bjpfukdnkop7g89z9k01c8mpwnpp on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1tr60z5dny6bjpfukdnkop7g89z9k01c8mpwnpp';
const amount = '945';
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 589 ATOM ATOM to cosmos1ckp9l232gp4fs2aqv9nalgavj62yklabupqk01 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1ckp9l232gp4fs2aqv9nalgavj62yklabupqk01';
const amount = '589';
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;
} |
Submit a proposal with title 'Proposal Title 63' and description 'Proposal Description 60' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 63';
const description = 'Proposal Description 60';
const deposit = '595';
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 cosmosvaloper1yq8ma88gm40xge1uhkhju89732lmxqh3whwemf on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1yq8ma88gm40xge1uhkhju89732lmxqh3whwemf';
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 cosmosvaloper1ulxw9e7sk6e5vuxj1gbxidfcl49pbh7ti4ztzr on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1ulxw9e7sk6e5vuxj1gbxidfcl49pbh7ti4ztzr';
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 703 ATOM ATOM to cosmos1brkawbdar1n6zoy213o3wxv61ii08bligc5ff1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1brkawbdar1n6zoy213o3wxv61ii08bligc5ff1';
const amount = '703';
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;
} |
Submit a proposal with title 'Proposal Title 77' and description 'Proposal Description 92' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 77';
const description = 'Proposal Description 92';
const deposit = '78';
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;
} |
Send 313 ATOM ATOM to cosmos1kxe7584aydt6v7lk0dx8yhj74e6dzixno2ztzf on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1kxe7584aydt6v7lk0dx8yhj74e6dzixno2ztzf';
const amount = '313';
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 124 ATOM ATOM to cosmos155ycvhwqyli7lafqhpc07pp17j5phirx42g0iw on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos155ycvhwqyli7lafqhpc07pp17j5phirx42g0iw';
const amount = '124';
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 880 ATOM ATOM from cosmosvaloper16s1qv259u1f359hxs9kdpjjnabysvknde64uq7 to cosmosvaloper1h7oycqumspih5a108vzgu9kd8ot0kr1ekzvkml on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper16s1qv259u1f359hxs9kdpjjnabysvknde64uq7';
const dstValidatorAddress = 'cosmosvaloper1h7oycqumspih5a108vzgu9kd8ot0kr1ekzvkml';
const amount = '880';
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 79' and description 'Proposal Description 61' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 79';
const description = 'Proposal Description 61';
const deposit = '120';
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;
} |
Redelegate 153 ATOM ATOM from cosmosvaloper1twdderrwh6fx18pnmgyfhyj0ejokb4rewdf29t to cosmosvaloper1wwmbobl0ta2qr512q1j2e7l7ob92hu2ghzk2t4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1twdderrwh6fx18pnmgyfhyj0ejokb4rewdf29t';
const dstValidatorAddress = 'cosmosvaloper1wwmbobl0ta2qr512q1j2e7l7ob92hu2ghzk2t4';
const amount = '153';
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 41' and description 'Proposal Description 95' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 41';
const description = 'Proposal Description 95';
const deposit = '45';
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;
} |
Submit a proposal with title 'Proposal Title 54' and description 'Proposal Description 13' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 54';
const description = 'Proposal Description 13';
const deposit = '960';
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;
} |
Redelegate 526 ATOM ATOM from cosmosvaloper1hvdc827b6dptr46q2hdtw0sid8um2gv1pqseyi to cosmosvaloper1tmvjyq4fvxj9mce5kh3zdia2oldt0itz26frfg on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1hvdc827b6dptr46q2hdtw0sid8um2gv1pqseyi';
const dstValidatorAddress = 'cosmosvaloper1tmvjyq4fvxj9mce5kh3zdia2oldt0itz26frfg';
const amount = '526';
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;
} |
What are the best practices for remote work? | 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. |
Withdraw rewards from cosmosvaloper11j6h8nq6jxxxa8p8zr1ruwk58xr22bchnga953 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper11j6h8nq6jxxxa8p8zr1ruwk58xr22bchnga953';
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 299 ATOM ATOM from cosmosvaloper19ze2y35xlqptly5xlmil9iq7mesgmsncfg52zt to cosmosvaloper18qimqj4xo91x0sgde135ff0iq88epg6fnr240e on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper19ze2y35xlqptly5xlmil9iq7mesgmsncfg52zt';
const dstValidatorAddress = 'cosmosvaloper18qimqj4xo91x0sgde135ff0iq88epg6fnr240e';
const amount = '299';
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 798 ATOM ATOM to cosmos1ejyijilydjguj27wczsga516w6ozrxwamdpwva on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1ejyijilydjguj27wczsga516w6ozrxwamdpwva';
const amount = '798';
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 268 ATOM ATOM to cosmosvaloper1bvjsa59ixqv22bqlpy6oy00s77t9zepg41oklt on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1bvjsa59ixqv22bqlpy6oy00s77t9zepg41oklt';
const amount = '268';
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;
} |
Send 854 ATOM ATOM to cosmos130puwrx7w43ciwslx3umeep0vo6bh8bnqqf7ah on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos130puwrx7w43ciwslx3umeep0vo6bh8bnqqf7ah';
const amount = '854';
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 86 ATOM ATOM from cosmosvaloper1a44oqok16x10buvxlooii69rlef4c7z1fhfbqr on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1a44oqok16x10buvxlooii69rlef4c7z1fhfbqr';
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 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 447 ATOM ATOM to cosmos1n0sexc3nw78veivx16evvokgr9h03q4nat3aux on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1n0sexc3nw78veivx16evvokgr9h03q4nat3aux';
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 sendAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.sendTokens(firstAccount.address, recipient, [sendAmount], fee, 'Sending tokens');
return result.transactionHash;
} |
Submit a proposal with title 'Proposal Title 98' and description 'Proposal Description 93' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 98';
const description = 'Proposal Description 93';
const deposit = '955';
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;
} |
Submit a proposal with title 'Proposal Title 62' and description 'Proposal Description 57' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 62';
const description = 'Proposal Description 57';
const deposit = '67';
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 860 ATOM ATOM to cosmosvaloper150aiun3jf35vyxjob5ugnifyigppo8c7y2d54c on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper150aiun3jf35vyxjob5ugnifyigppo8c7y2d54c';
const amount = '860';
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;
} |
Send 153 ATOM ATOM to cosmos1tkswj01jh2zh2fnh8xgwq352my4thwyfxxu1q6 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1tkswj01jh2zh2fnh8xgwq352my4thwyfxxu1q6';
const amount = '153';
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 280 ATOM ATOM to cosmosvaloper1h4f7ogfu3u08vwxe2upq6iuethfgach1ly31ea on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1h4f7ogfu3u08vwxe2upq6iuethfgach1ly31ea';
const amount = '280';
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 71' and description 'Proposal Description 58' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 71';
const description = 'Proposal Description 58';
const deposit = '345';
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;
} |
Redelegate 621 ATOM ATOM from cosmosvaloper1bhzxnzrx2ozssqa5n0ng4e11rvu0xh54cay42o to cosmosvaloper1acrm5ti4fi8zifmtnrczffiwicm1kg9md8vh92 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1bhzxnzrx2ozssqa5n0ng4e11rvu0xh54cay42o';
const dstValidatorAddress = 'cosmosvaloper1acrm5ti4fi8zifmtnrczffiwicm1kg9md8vh92';
const amount = '621';
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;
} |
What are some strategies for time management? | 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. |
Submit a proposal with title 'Proposal Title 53' and description 'Proposal Description 1' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 53';
const description = 'Proposal Description 1';
const deposit = '763';
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 422 ATOM ATOM from cosmosvaloper1hj8mo9v18msuvlktnnzoquq2uf4b7aag457c4k on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1hj8mo9v18msuvlktnnzoquq2uf4b7aag457c4k';
const amount = '422';
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 47 with option 2 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '47';
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;
} |
Redelegate 86 ATOM ATOM from cosmosvaloper1ehepub4jtjs5ngjaw5f4q3al6kvl53xex0x4ux to cosmosvaloper1m2ch7rxuh1gl3ogzh5m0mjvs80u8rwnc86n9jm on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1ehepub4jtjs5ngjaw5f4q3al6kvl53xex0x4ux';
const dstValidatorAddress = 'cosmosvaloper1m2ch7rxuh1gl3ogzh5m0mjvs80u8rwnc86n9jm';
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;
} |
Submit a proposal with title 'Proposal Title 56' and description 'Proposal Description 71' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 56';
const description = 'Proposal Description 71';
const deposit = '227';
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;
} |
Submit a proposal with title 'Proposal Title 43' and description 'Proposal Description 4' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 43';
const description = 'Proposal Description 4';
const deposit = '970';
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 26 ATOM ATOM to cosmosvaloper1l6jmtvk8exfw5uspyvrj1xkp2ozwu9x5lnwux7 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1l6jmtvk8exfw5uspyvrj1xkp2ozwu9x5lnwux7';
const amount = '26';
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 cosmosvaloper1j29dmvsnhkkbbgtusa9u0k822fn12at4ddscnx on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1j29dmvsnhkkbbgtusa9u0k822fn12at4ddscnx';
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 970 ATOM ATOM from cosmosvaloper1kgrsrunkmocli2qgvrj4yb0q6pjci5vsrx3bc7 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1kgrsrunkmocli2qgvrj4yb0q6pjci5vsrx3bc7';
const amount = '970';
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;
} |
Submit a proposal with title 'Proposal Title 30' and description 'Proposal Description 14' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 30';
const description = 'Proposal Description 14';
const deposit = '58';
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;
} |
Send 928 ATOM ATOM to cosmos1qsl4b90hd4n4519wzl82okwf14fhznfroln9po on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1qsl4b90hd4n4519wzl82okwf14fhznfroln9po';
const amount = '928';
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;
} |
Suggest a better plan for my tasks to improve efficiency. | 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. |
Withdraw rewards from cosmosvaloper1wl8stzzyyxbyhuloi64pygh37d2i3lmog4can7 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1wl8stzzyyxbyhuloi64pygh37d2i3lmog4can7';
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;
} |
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. |
Submit a proposal with title 'Proposal Title 61' and description 'Proposal Description 69' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 61';
const description = 'Proposal Description 69';
const deposit = '212';
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 25 with option 2 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '25';
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;
} |
Redelegate 172 ATOM ATOM from cosmosvaloper1p2h1yvrewhh2eir7tf8jb683n6127zgnea1ye0 to cosmosvaloper1wg3jv8jlamz1g7ij1p1cg9ft2ssfa9h112rney on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1p2h1yvrewhh2eir7tf8jb683n6127zgnea1ye0';
const dstValidatorAddress = 'cosmosvaloper1wg3jv8jlamz1g7ij1p1cg9ft2ssfa9h112rney';
const amount = '172';
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 56' and description 'Proposal Description 97' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 56';
const description = 'Proposal Description 97';
const deposit = '691';
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;
} |
Give me tips for improving productivity. | 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. |
Submit a proposal with title 'Proposal Title 12' and description 'Proposal Description 10' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 12';
const description = 'Proposal Description 10';
const deposit = '103';
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 23 with option 1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '23';
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 cosmosvaloper1bsofyuswk9whq33zpwqhpo76wxql8xshn30f8v on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1bsofyuswk9whq33zpwqhpo76wxql8xshn30f8v';
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 cosmosvaloper1q7g97rikyu41mjmx5joow5dg5caldlkvabmuxv on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1q7g97rikyu41mjmx5joow5dg5caldlkvabmuxv';
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;
} |
Suggest a better plan for my tasks to improve efficiency. | Research topics for blockchain technology include consensus algorithms, smart contracts, decentralized finance (DeFi), scalability solutions, blockchain interoperability, and the impact of blockchain on various industries. |
Submit a proposal with title 'Proposal Title 24' and description 'Proposal Description 18' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 24';
const description = 'Proposal Description 18';
const deposit = '45';
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 cosmosvaloper1na61p41ya5fixkp52ndrffow02s2ulfi63szyt on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1na61p41ya5fixkp52ndrffow02s2ulfi63szyt';
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 350 ATOM ATOM to cosmos1pqcypm0vn4bco0twg8o414ue0g0mh61e42t56e on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1pqcypm0vn4bco0twg8o414ue0g0mh61e42t56e';
const amount = '350';
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 649 ATOM ATOM to cosmosvaloper1kmwbryzpbezybkbnszopn8oo8rx055z02tisu1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1kmwbryzpbezybkbnszopn8oo8rx055z02tisu1';
const amount = '649';
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 111 ATOM ATOM from cosmosvaloper1uyv5kdf1i6c0h27su6qngl8g2zebojvrl5qp1i on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1uyv5kdf1i6c0h27su6qngl8g2zebojvrl5qp1i';
const amount = '111';
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;
} |
What are the best practices for remote work? | 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. |
Submit a proposal with title 'Proposal Title 94' and description 'Proposal Description 17' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 94';
const description = 'Proposal Description 17';
const deposit = '295';
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;
} |
Submit a proposal with title 'Proposal Title 70' and description 'Proposal Description 70' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 70';
const description = 'Proposal Description 70';
const deposit = '124';
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 cosmosvaloper1drjkriow4yfpjb5br0egzb5vhn8570nr5c1kqo on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1drjkriow4yfpjb5br0egzb5vhn8570nr5c1kqo';
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 94 with option 3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '94';
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;
} |
Submit a proposal with title 'Proposal Title 91' and description 'Proposal Description 36' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 91';
const description = 'Proposal Description 36';
const deposit = '754';
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;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.