question
stringlengths 34
149
| answer
stringlengths 173
1.02k
|
---|---|
Redelegate 97 ATOM ATOM from cosmosvaloper19fg4bhkn46beh69ebtvldwzla8j8vgzy5vouwd to cosmosvaloper1hp58va5jo4d0w5k1m6g7kse5hsjvtnioowsrun on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper19fg4bhkn46beh69ebtvldwzla8j8vgzy5vouwd';
const dstValidatorAddress = 'cosmosvaloper1hp58va5jo4d0w5k1m6g7kse5hsjvtnioowsrun';
const amount = '97';
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 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;
} |
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 41' and description 'Proposal Description 82' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 41';
const description = 'Proposal Description 82';
const deposit = '873';
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 235 ATOM ATOM from cosmosvaloper1f01zl17rn80759vexr8w10lb9krxz31ma1r86a on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1f01zl17rn80759vexr8w10lb9krxz31ma1r86a';
const amount = '235';
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;
} |
Help me organize my day with a schedule. | 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. |
Delegate 294 ATOM ATOM to cosmosvaloper1sn0nueb4sbwqsgfjhjanpfwf1agzs22i8heekw on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1sn0nueb4sbwqsgfjhjanpfwf1agzs22i8heekw';
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;
} |
What are some strategies for time management? | 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 41' and description 'Proposal Description 62' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 41';
const description = 'Proposal Description 62';
const deposit = '335';
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 936 ATOM ATOM from cosmosvaloper1hidai8821gb3453zpsf0cx0qcvdhfh3e2wuyac to cosmosvaloper1iekidzmnd5f4aee7ghb719ptwm05cwghymf47t on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1hidai8821gb3453zpsf0cx0qcvdhfh3e2wuyac';
const dstValidatorAddress = 'cosmosvaloper1iekidzmnd5f4aee7ghb719ptwm05cwghymf47t';
const amount = '936';
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 can I improve my coding skills? | To create a weekly timetable, list all your tasks for the week. Group similar tasks together and assign specific time slots for each group. Ensure to include time for breaks and leisure activities to avoid burnout. |
Send 448 ATOM ATOM to cosmos1sqp344kxkkmg6ekckiv6yzeto3ya7dsdeijzw9 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1sqp344kxkkmg6ekckiv6yzeto3ya7dsdeijzw9';
const amount = '448';
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 4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '100';
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;
} |
Send 198 ATOM ATOM to cosmos1ev4ctw3qotpf5h1nlkxvrihbz8rsqktns8qx62 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1ev4ctw3qotpf5h1nlkxvrihbz8rsqktns8qx62';
const amount = '198';
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 485 ATOM ATOM to cosmos1kmwhbs1mqjv3rzi11fj8lk6ab114dtgxyhnzx6 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1kmwhbs1mqjv3rzi11fj8lk6ab114dtgxyhnzx6';
const amount = '485';
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;
} |
Withdraw rewards from cosmosvaloper1u97hundbfs8xmmpm26fz3t43t8jfc43lxgz3cd on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1u97hundbfs8xmmpm26fz3t43t8jfc43lxgz3cd';
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 67 with option 1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '67';
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;
} |
Send 584 ATOM ATOM to cosmos1lpc5t0pfcv9oajjasxvau3i947orx5qhx2s0ge on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1lpc5t0pfcv9oajjasxvau3i947orx5qhx2s0ge';
const amount = '584';
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 48' and description 'Proposal Description 90' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 48';
const description = 'Proposal Description 90';
const deposit = '506';
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 some research topics for blockchain technology. | To create a weekly timetable, list all your tasks for the week. Group similar tasks together and assign specific time slots for each group. Ensure to include time for breaks and leisure activities to avoid burnout. |
Undelegate 307 ATOM ATOM from cosmosvaloper1q2fdmxh3pw7dh0ssy3nd4kyma75kmoj3h84ezi on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1q2fdmxh3pw7dh0ssy3nd4kyma75kmoj3h84ezi';
const amount = '307';
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 552 ATOM ATOM to cosmosvaloper1zutre45hx6pm29agymqvlfim3hji29nnpqc6c9 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1zutre45hx6pm29agymqvlfim3hji29nnpqc6c9';
const amount = '552';
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? | 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. |
Send 841 ATOM ATOM to cosmos158ihbgypo80siwmy51daw5ljmtznf19vq9ue03 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos158ihbgypo80siwmy51daw5ljmtznf19vq9ue03';
const amount = '841';
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 53' and description 'Proposal Description 74' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 53';
const description = 'Proposal Description 74';
const deposit = '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 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 365 ATOM ATOM from cosmosvaloper10sp9vt6hvzxrhqhkirq1p8jj5g3xsid6qcpx2h to cosmosvaloper1o5924z5twsjw5h5wbi1exm1mgtgiymig0rdf2a on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper10sp9vt6hvzxrhqhkirq1p8jj5g3xsid6qcpx2h';
const dstValidatorAddress = 'cosmosvaloper1o5924z5twsjw5h5wbi1exm1mgtgiymig0rdf2a';
const amount = '365';
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;
} |
Give me tips for improving productivity. | 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. |
Vote on proposal 76 with option 3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '76';
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 89 with option 1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '89';
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;
} |
Submit a proposal with title 'Proposal Title 8' and description 'Proposal Description 28' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 8';
const description = 'Proposal Description 28';
const deposit = '352';
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 470 ATOM ATOM from cosmosvaloper17rj73eo7g5mglhfj0klifbj7cxsxjce55tccd9 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper17rj73eo7g5mglhfj0klifbj7cxsxjce55tccd9';
const amount = '470';
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 71' and description 'Proposal Description 10' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 71';
const description = 'Proposal Description 10';
const deposit = '468';
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 674 ATOM ATOM to cosmosvaloper1a11gv4c1mc2qct8b5trkippk7a9o1a55w8ed2x on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1a11gv4c1mc2qct8b5trkippk7a9o1a55w8ed2x';
const amount = '674';
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 23 with option 4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '23';
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;
} |
Redelegate 528 ATOM ATOM from cosmosvaloper1zaexnz6dmc2uugygiovsqdldqi27jotal34jiz to cosmosvaloper1lod6zdkj5zvcq90n2itdlq8v5gj2fmivzafid9 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1zaexnz6dmc2uugygiovsqdldqi27jotal34jiz';
const dstValidatorAddress = 'cosmosvaloper1lod6zdkj5zvcq90n2itdlq8v5gj2fmivzafid9';
const amount = '528';
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;
} |
Redelegate 198 ATOM ATOM from cosmosvaloper1v8drnve29m890kmovdxv96dak4lekgo69ismkf to cosmosvaloper1l4pzi5vm6hco77kvcdczox5x3pt9gqblcdtrms on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1v8drnve29m890kmovdxv96dak4lekgo69ismkf';
const dstValidatorAddress = 'cosmosvaloper1l4pzi5vm6hco77kvcdczox5x3pt9gqblcdtrms';
const amount = '198';
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 776 ATOM ATOM from cosmosvaloper1kin53i31bl3irzpzkew3rni0yah62a2hbyewlg on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1kin53i31bl3irzpzkew3rni0yah62a2hbyewlg';
const amount = '776';
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 70 ATOM ATOM to cosmos11b1jr49p656y2ce44gjow72fzr8l68j1oyg35w on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos11b1jr49p656y2ce44gjow72fzr8l68j1oyg35w';
const amount = '70';
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 817 ATOM ATOM from cosmosvaloper1u0uqvxxhfa5u9ctnbnfhxwpglzdsvn27ird8ke on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1u0uqvxxhfa5u9ctnbnfhxwpglzdsvn27ird8ke';
const amount = '817';
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 31' and description 'Proposal Description 2' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 31';
const description = 'Proposal Description 2';
const deposit = '590';
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? | 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. |
Redelegate 923 ATOM ATOM from cosmosvaloper1sqgb4igv6z9wjfxiwitfjxlsy6jn270uz7ppgx to cosmosvaloper1yd2papbelqt039ul63x8w05ndkipa3ws3pnh32 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1sqgb4igv6z9wjfxiwitfjxlsy6jn270uz7ppgx';
const dstValidatorAddress = 'cosmosvaloper1yd2papbelqt039ul63x8w05ndkipa3ws3pnh32';
const amount = '923';
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 847 ATOM ATOM to cosmosvaloper183swrgxor90kj7iln5q5emokq8l7823zvy57pl on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper183swrgxor90kj7iln5q5emokq8l7823zvy57pl';
const amount = '847';
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 3 with option 1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '3';
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;
} |
Delegate 220 ATOM ATOM to cosmosvaloper1kabwac6jv51xf3rs4h0gw6ltev13wfjh5mf4na on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1kabwac6jv51xf3rs4h0gw6ltev13wfjh5mf4na';
const amount = '220';
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 821 ATOM ATOM to cosmosvaloper17riedjen4kxyrq8irmh27u0f4tw9k90qq14mje on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper17riedjen4kxyrq8irmh27u0f4tw9k90qq14mje';
const amount = '821';
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 727 ATOM ATOM to cosmos1af5r8hfv04dyrbgyqxxr2mdavo5qp205uq2oer on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1af5r8hfv04dyrbgyqxxr2mdavo5qp205uq2oer';
const amount = '727';
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 56' and description 'Proposal Description 67' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 56';
const description = 'Proposal Description 67';
const deposit = '311';
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 33 with option 4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '33';
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;
} |
Vote on proposal 63 with option 3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '63';
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 53 with option 1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '53';
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 81 with option 2 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '81';
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;
} |
Vote on proposal 72 with option 2 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '72';
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 cosmosvaloper1jkb9n59xls3136fnunrx5y7hjmo5ldet7esaos on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1jkb9n59xls3136fnunrx5y7hjmo5ldet7esaos';
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 cosmosvaloper1o92vghihd1q402a3pnuos6hapeba5ahlvzc7gm on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1o92vghihd1q402a3pnuos6hapeba5ahlvzc7gm';
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 34' and description 'Proposal Description 50' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 34';
const description = 'Proposal Description 50';
const deposit = '963';
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 722 ATOM ATOM from cosmosvaloper18scc5tac87y35czh8bm3fohgbxt862apabd3pi to cosmosvaloper1ewe6j6pzd6vzb15dluz1vtxax5mcr7ujkj0lvr on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper18scc5tac87y35czh8bm3fohgbxt862apabd3pi';
const dstValidatorAddress = 'cosmosvaloper1ewe6j6pzd6vzb15dluz1vtxax5mcr7ujkj0lvr';
const amount = '722';
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;
} |
Redelegate 44 ATOM ATOM from cosmosvaloper103w5jdmc9g363tfgezedrx4d25y5tab1l7w6oz to cosmosvaloper1lh9t2pcowmah1rwhkmhc1f7xweitbcntqrl6ph on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper103w5jdmc9g363tfgezedrx4d25y5tab1l7w6oz';
const dstValidatorAddress = 'cosmosvaloper1lh9t2pcowmah1rwhkmhc1f7xweitbcntqrl6ph';
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;
} |
Withdraw rewards from cosmosvaloper15fh1usp51u8p7epgtlmr51w0s5p1s268xqeeua on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper15fh1usp51u8p7epgtlmr51w0s5p1s268xqeeua';
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 cosmosvaloper1y3wubwpqa5hol5kmpg40xvfmf74aixsu9ztuic on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1y3wubwpqa5hol5kmpg40xvfmf74aixsu9ztuic';
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 38 ATOM ATOM to cosmos1d18fnout15wie9niuwcjc5s1i93i8bahor0k9a on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1d18fnout15wie9niuwcjc5s1i93i8bahor0k9a';
const amount = '38';
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 504 ATOM ATOM to cosmos190smka0as1g0fu2q2lmk48so2lo6554iskhsh4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos190smka0as1g0fu2q2lmk48so2lo6554iskhsh4';
const amount = '504';
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;
} |
Withdraw rewards from cosmosvaloper1tr3ot82dngkj7dwb968lf4dkt2s9oxrtjq3ljn on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1tr3ot82dngkj7dwb968lf4dkt2s9oxrtjq3ljn';
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 430 ATOM ATOM to cosmosvaloper17mrks55b5u115x1mi7as5285kwu7gmdch1681k on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper17mrks55b5u115x1mi7as5285kwu7gmdch1681k';
const amount = '430';
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 50 with option 4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '50';
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 the best practices for remote work? | 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. |
Withdraw rewards from cosmosvaloper1ui6icm5geabcb8vodn0eo4adkle80oh6vgf5c0 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1ui6icm5geabcb8vodn0eo4adkle80oh6vgf5c0';
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 715 ATOM ATOM to cosmosvaloper1ad888kztgoh4gdfcodmtbxzb39a1v30alqa7ol on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1ad888kztgoh4gdfcodmtbxzb39a1v30alqa7ol';
const amount = '715';
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 368 ATOM ATOM to cosmosvaloper1iif1l3vmzvx2nwcuh5wk9tthffcrxbk03b7qt4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1iif1l3vmzvx2nwcuh5wk9tthffcrxbk03b7qt4';
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 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 cosmosvaloper1r7jjdp20foa0gginqjdi8s5do2gfgyc1el8p7f on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1r7jjdp20foa0gginqjdi8s5do2gfgyc1el8p7f';
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 cosmosvaloper1nc9hgh01crsoy9hyj1j5brwzt06awg7yf7vh5n on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1nc9hgh01crsoy9hyj1j5brwzt06awg7yf7vh5n';
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 702 ATOM ATOM to cosmos1sixg7a8dauvbb4ukxv0ppesddw612bg6v6xn7u on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1sixg7a8dauvbb4ukxv0ppesddw612bg6v6xn7u';
const amount = '702';
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;
} |
What are the benefits of a balanced diet? | 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. |
Help me organize my day with a schedule. | 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. |
Redelegate 602 ATOM ATOM from cosmosvaloper1r2qygs6s1nrdz8543zu0znuimbfl40frn8s2gl to cosmosvaloper1ditu98de32qy0igfye1tsterns2jm3b8tep52b on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1r2qygs6s1nrdz8543zu0znuimbfl40frn8s2gl';
const dstValidatorAddress = 'cosmosvaloper1ditu98de32qy0igfye1tsterns2jm3b8tep52b';
const amount = '602';
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;
} |
Redelegate 762 ATOM ATOM from cosmosvaloper1xvk5mj1cmwohuqk4hdqvj95c4z71rhiwcplw1l to cosmosvaloper1ho8lx8jafmznbz8p8n79o18vf7cjxtfyfj9a7l on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1xvk5mj1cmwohuqk4hdqvj95c4z71rhiwcplw1l';
const dstValidatorAddress = 'cosmosvaloper1ho8lx8jafmznbz8p8n79o18vf7cjxtfyfj9a7l';
const amount = '762';
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 111 ATOM ATOM to cosmosvaloper15xbtmpepnsp80lc8cv9c6ogzam8kkcfutq93mq on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper15xbtmpepnsp80lc8cv9c6ogzam8kkcfutq93mq';
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 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 561 ATOM ATOM from cosmosvaloper18k43goh4z0kbkryphzqt7cie9ahb2pc4ysm3xj to cosmosvaloper1nlo99sfs0o0il02hkalm2tfwghphgr19oxgrr2 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper18k43goh4z0kbkryphzqt7cie9ahb2pc4ysm3xj';
const dstValidatorAddress = 'cosmosvaloper1nlo99sfs0o0il02hkalm2tfwghphgr19oxgrr2';
const amount = '561';
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 70' and description 'Proposal Description 41' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 70';
const description = 'Proposal Description 41';
const deposit = '414';
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. | To create a weekly timetable, list all your tasks for the week. Group similar tasks together and assign specific time slots for each group. Ensure to include time for breaks and leisure activities to avoid burnout. |
Send 127 ATOM ATOM to cosmos11s6tstyj2rpr94i6v6hlaxzrv89sn6m88djl32 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos11s6tstyj2rpr94i6v6hlaxzrv89sn6m88djl32';
const amount = '127';
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 896 ATOM ATOM to cosmos1tym1oxtqtofq35zzo8s458ajlpts51sx9qeqo3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1tym1oxtqtofq35zzo8s458ajlpts51sx9qeqo3';
const amount = '896';
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 36 ATOM ATOM to cosmosvaloper1qge1hm3pxmam8q6jl5lhmc4hokq82jf5t3jaym on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1qge1hm3pxmam8q6jl5lhmc4hokq82jf5t3jaym';
const amount = '36';
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 947 ATOM ATOM from cosmosvaloper1l6t5qfb3q6vvq16v1aig577zq7957tc6oytm2y to cosmosvaloper1j3kffkp1mone8arx9v6ah4afvi7snfz79gn13y on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1l6t5qfb3q6vvq16v1aig577zq7957tc6oytm2y';
const dstValidatorAddress = 'cosmosvaloper1j3kffkp1mone8arx9v6ah4afvi7snfz79gn13y';
const amount = '947';
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 cosmosvaloper1i1ovxsaceefuqhvyblwes0273uh52dkkuckov3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1i1ovxsaceefuqhvyblwes0273uh52dkkuckov3';
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 cosmosvaloper17xtdgj61i7i4ri0psi6guibg3tgo3zooyi257l on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper17xtdgj61i7i4ri0psi6guibg3tgo3zooyi257l';
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 88 with option 3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '88';
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;
} |
Delegate 232 ATOM ATOM to cosmosvaloper14s56uh0rcikp15iebvzezz8uzkxnq5vw350p30 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper14s56uh0rcikp15iebvzezz8uzkxnq5vw350p30';
const amount = '232';
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 167 ATOM ATOM from cosmosvaloper1u0l1aqur9k53ldyei4ewwb1nj05vd4t234wu89 to cosmosvaloper1td5u5e0tsykt8nlp6ds6ht0wmp9v89gtvemwkn on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1u0l1aqur9k53ldyei4ewwb1nj05vd4t234wu89';
const dstValidatorAddress = 'cosmosvaloper1td5u5e0tsykt8nlp6ds6ht0wmp9v89gtvemwkn';
const amount = '167';
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 73 with option 4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '73';
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;
} |
Redelegate 750 ATOM ATOM from cosmosvaloper1dlr88gckl9hbnqbrg998ysr7cxowuvfghd3yxi to cosmosvaloper1d1utywpi6ilwb8execytk6j4gtm1dzgctfoxjj on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1dlr88gckl9hbnqbrg998ysr7cxowuvfghd3yxi';
const dstValidatorAddress = 'cosmosvaloper1d1utywpi6ilwb8execytk6j4gtm1dzgctfoxjj';
const amount = '750';
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 573 ATOM ATOM to cosmosvaloper1h6rbeaorxq4e9seik4pl36hnlcf5hh7z5f8bwp on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1h6rbeaorxq4e9seik4pl36hnlcf5hh7z5f8bwp';
const amount = '573';
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 519 ATOM ATOM from cosmosvaloper1mk189yd4zd8p92muvzjlzj15m7rt3ozwv7xhti to cosmosvaloper1cccp1zxusi2vn8tdxl4r708a1twlual72jlx79 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1mk189yd4zd8p92muvzjlzj15m7rt3ozwv7xhti';
const dstValidatorAddress = 'cosmosvaloper1cccp1zxusi2vn8tdxl4r708a1twlual72jlx79';
const amount = '519';
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 498 ATOM ATOM to cosmosvaloper13byawez4wmxc57w6ejhcwsxfq3z18h9nq70pns on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper13byawez4wmxc57w6ejhcwsxfq3z18h9nq70pns';
const amount = '498';
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 995 ATOM ATOM from cosmosvaloper1risi4mzlqjia10lb64loiy9idlmnvd4dutw66k on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1risi4mzlqjia10lb64loiy9idlmnvd4dutw66k';
const amount = '995';
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 420 ATOM ATOM from cosmosvaloper1eijlxilcsbhbh1efb7n3mwlz1ks6h83dkki4ya to cosmosvaloper1hkx75bjxoavseidog259k4e2643z2tl6y61uzc on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1eijlxilcsbhbh1efb7n3mwlz1ks6h83dkki4ya';
const dstValidatorAddress = 'cosmosvaloper1hkx75bjxoavseidog259k4e2643z2tl6y61uzc';
const amount = '420';
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 562 ATOM ATOM to cosmos1x769ar991ozl6w0n85q7r1gnmyk9g2ahlsyrk3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1x769ar991ozl6w0n85q7r1gnmyk9g2ahlsyrk3';
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 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 4' and description 'Proposal Description 95' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 4';
const description = 'Proposal Description 95';
const deposit = '458';
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 192 ATOM ATOM from cosmosvaloper15q69nmq78mktjeaeny4767wh0cyfz425l8al41 to cosmosvaloper1ggiamde49qu45lakd6lo9mvfx22nmdrjeuaxwz on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper15q69nmq78mktjeaeny4767wh0cyfz425l8al41';
const dstValidatorAddress = 'cosmosvaloper1ggiamde49qu45lakd6lo9mvfx22nmdrjeuaxwz';
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;
} |
Redelegate 986 ATOM ATOM from cosmosvaloper1jy4x295b3toyn46m9jq3e6cuddad4ltthp8gtz to cosmosvaloper1uaa9980zjsim0kuvm12ki6rmjd80rgaxm5gw7w on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1jy4x295b3toyn46m9jq3e6cuddad4ltthp8gtz';
const dstValidatorAddress = 'cosmosvaloper1uaa9980zjsim0kuvm12ki6rmjd80rgaxm5gw7w';
const amount = '986';
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;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.