question
stringlengths 34
149
| answer
stringlengths 173
1.02k
|
---|---|
Undelegate 565 ATOM ATOM from cosmosvaloper1me403h3keby276uml7667bqxputqdzdvwlx6jo on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1me403h3keby276uml7667bqxputqdzdvwlx6jo';
const amount = '565';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 518 ATOM ATOM to cosmosvaloper1nshj51rmf2iewin5fundkonvosevvjq3kg6dzl on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1nshj51rmf2iewin5fundkonvosevvjq3kg6dzl';
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 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 cosmosvaloper1sw9zn8c0jq4k4qocipqqxyyouk2empf48fxg1h on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1sw9zn8c0jq4k4qocipqqxyyouk2empf48fxg1h';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 216 ATOM ATOM to cosmos1e7mscd9cxjc586qj5kz8p4l59pw0v5krmuc4ye on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1e7mscd9cxjc586qj5kz8p4l59pw0v5krmuc4ye';
const amount = '216';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 51' and description 'Proposal Description 13' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 51';
const description = 'Proposal Description 13';
const deposit = '385';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 71' and description 'Proposal Description 52' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 71';
const description = 'Proposal Description 52';
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;
} |
Send 761 ATOM ATOM to cosmos1zpyerx8q5xga1hd0kqojabjtrqysuccwiko8nn on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1zpyerx8q5xga1hd0kqojabjtrqysuccwiko8nn';
const amount = '761';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 967 ATOM ATOM from cosmosvaloper11vpkuwedwmvcydbqxw6ivfg6rsw29af1rh4ejn to cosmosvaloper1j5ius5xag0076mgn3z2p7r4pxh7yxei0r9ajtk on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper11vpkuwedwmvcydbqxw6ivfg6rsw29af1rh4ejn';
const dstValidatorAddress = 'cosmosvaloper1j5ius5xag0076mgn3z2p7r4pxh7yxei0r9ajtk';
const amount = '967';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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. | 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. |
Delegate 530 ATOM ATOM to cosmosvaloper1fmvyp9okje0xjnp9oq85a2tqu16bx9hsaysvko on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1fmvyp9okje0xjnp9oq85a2tqu16bx9hsaysvko';
const amount = '530';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const delegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
return result.transactionHash;
} |
Withdraw rewards from cosmosvaloper19w79mulw8v1u54b0obrjhwy4x1ho4w8zrp2ptp on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper19w79mulw8v1u54b0obrjhwy4x1ho4w8zrp2ptp';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 98 ATOM ATOM from cosmosvaloper1c8uuf7zfxege2bdp8apsoemome1887lov8uop2 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1c8uuf7zfxege2bdp8apsoemome1887lov8uop2';
const amount = '98';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 93 with option 4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '93';
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 156 ATOM ATOM from cosmosvaloper1srpaotnff24v6p8r1sl46wq7ko7aizib7d567c to cosmosvaloper1xaqciuakmos0xlkyrm68ctp4s1xqxd46jrfzjb on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1srpaotnff24v6p8r1sl46wq7ko7aizib7d567c';
const dstValidatorAddress = 'cosmosvaloper1xaqciuakmos0xlkyrm68ctp4s1xqxd46jrfzjb';
const amount = '156';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 289 ATOM ATOM to cosmosvaloper1nsc1lcwqemdt4oq3t5snlk6ugmmv3v0x1mj536 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1nsc1lcwqemdt4oq3t5snlk6ugmmv3v0x1mj536';
const amount = '289';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 981 ATOM ATOM from cosmosvaloper14dcyz56cawb8kksx9jr2aw3re118gbio9tdydi on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper14dcyz56cawb8kksx9jr2aw3re118gbio9tdydi';
const amount = '981';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 190 ATOM ATOM to cosmos1eve1s3eo1vf1pndtw9tk6ns00wbkwlte29u7pf on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1eve1s3eo1vf1pndtw9tk6ns00wbkwlte29u7pf';
const amount = '190';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 89 ATOM ATOM to cosmos19r8krrsvsevra8j4j5dkr8hw3oaufpvd3r7akp on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos19r8krrsvsevra8j4j5dkr8hw3oaufpvd3r7akp';
const amount = '89';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 679 ATOM ATOM to cosmosvaloper1aeod507lfdbzdk3ybcvpzuv7l872mnloq5ubgd on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1aeod507lfdbzdk3ybcvpzuv7l872mnloq5ubgd';
const amount = '679';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 324 ATOM ATOM to cosmos1ocj2bcbkanw3m0dv7frnbveo77u3wuh68ddb2z on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1ocj2bcbkanw3m0dv7frnbveo77u3wuh68ddb2z';
const amount = '324';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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;
} |
Help me organize my day with a schedule. | 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 cosmosvaloper1hvmtjmx09zyficuvroa0xybx64g6zrjow34ue1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1hvmtjmx09zyficuvroa0xybx64g6zrjow34ue1';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 999 ATOM ATOM to cosmosvaloper1enkymnnawhegb8zloe9wgmovzj6ul7i5c6g38l on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1enkymnnawhegb8zloe9wgmovzj6ul7i5c6g38l';
const amount = '999';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 cosmosvaloper1uylvcwvdb4q27wdgf35ohoq3lrq6mann21eqap on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1uylvcwvdb4q27wdgf35ohoq3lrq6mann21eqap';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 10 ATOM ATOM from cosmosvaloper1a7q6vg3yjm62ei2ri9rsg6jrqjlhl9gycrcq88 to cosmosvaloper1wb6ilvpfnytwi29qeesmmus1r71z8i341yzshf on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1a7q6vg3yjm62ei2ri9rsg6jrqjlhl9gycrcq88';
const dstValidatorAddress = 'cosmosvaloper1wb6ilvpfnytwi29qeesmmus1r71z8i341yzshf';
const amount = '10';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 19 with option 1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '19';
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;
} |
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. |
Delegate 651 ATOM ATOM to cosmosvaloper18fp3ywnjqdzz9zl474ntoa6ezpu9az3iq9otxf on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper18fp3ywnjqdzz9zl474ntoa6ezpu9az3iq9otxf';
const amount = '651';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 180 ATOM ATOM from cosmosvaloper143cf5r8djtl30uldca8wcqzqv750ffn1zmlf7d on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper143cf5r8djtl30uldca8wcqzqv750ffn1zmlf7d';
const amount = '180';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 908 ATOM ATOM from cosmosvaloper1gufs1ygv8nd9sa075r6mlytd3zxj4h58oasp6y to cosmosvaloper1a00c9w1z3zkt5l0jcutrdjfj0zay1nnscm1gjb on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1gufs1ygv8nd9sa075r6mlytd3zxj4h58oasp6y';
const dstValidatorAddress = 'cosmosvaloper1a00c9w1z3zkt5l0jcutrdjfj0zay1nnscm1gjb';
const amount = '908';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 94 ATOM ATOM from cosmosvaloper1ivibmm9fotjhmt8n4zih5tx9rvewzivykoy9ia on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1ivibmm9fotjhmt8n4zih5tx9rvewzivykoy9ia';
const amount = '94';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const undelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
return result.transactionHash;
} |
Vote on proposal 10 with option 2 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '10';
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;
} |
Send 103 ATOM ATOM to cosmos1lkx8e9xn51g25kefd7ddy0q1mptg1x0tjvxm1z on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1lkx8e9xn51g25kefd7ddy0q1mptg1x0tjvxm1z';
const amount = '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 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 445 ATOM ATOM to cosmosvaloper17lf4fxj8nvixbrp3enj32czpwjs2rhod7ulux0 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper17lf4fxj8nvixbrp3enj32czpwjs2rhod7ulux0';
const amount = '445';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 41 ATOM ATOM from cosmosvaloper1kg0h3g9uo1a2snhcia7kaoz7q0ywzrwdpm0s5b on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1kg0h3g9uo1a2snhcia7kaoz7q0ywzrwdpm0s5b';
const amount = '41';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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;
} |
Suggest some research topics for blockchain technology. | Strategies for time management include setting clear goals, prioritizing tasks, breaking tasks into smaller steps, using a planner or calendar, and avoiding procrastination. |
Send 828 ATOM ATOM to cosmos1efzsdnar2705vyquf5j7rcdi050e5ew87y94n6 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1efzsdnar2705vyquf5j7rcdi050e5ew87y94n6';
const amount = '828';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 131 ATOM ATOM to cosmosvaloper1h9csr62qufbacih4918sin0326nxbneifygk81 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1h9csr62qufbacih4918sin0326nxbneifygk81';
const amount = '131';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 460 ATOM ATOM from cosmosvaloper15rhzior9qejfb0os9zmga9h8do64ewx04vamaz to cosmosvaloper1r3quyswje1sektzanl8mw42uvs2kucnieyh5si on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper15rhzior9qejfb0os9zmga9h8do64ewx04vamaz';
const dstValidatorAddress = 'cosmosvaloper1r3quyswje1sektzanl8mw42uvs2kucnieyh5si';
const amount = '460';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 638 ATOM ATOM to cosmos1rqneimgcfzyy64yj4icts5thgwq5t73qjfx3rt on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1rqneimgcfzyy64yj4icts5thgwq5t73qjfx3rt';
const amount = '638';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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;
} |
How can I manage stress effectively? | 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. |
Vote on proposal 80 with option 1 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '80';
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;
} |
What are the best practices for remote work? | 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. |
What are the best practices for remote work? | Improving productivity can be achieved by prioritizing tasks, eliminating distractions, setting clear goals, and taking regular breaks. Techniques like the Pomodoro Technique and time blocking can also help manage time effectively. |
Submit a proposal with title 'Proposal Title 26' and description 'Proposal Description 43' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 26';
const description = 'Proposal Description 43';
const deposit = '582';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 cosmosvaloper1fnecf6knkleknuj651ja4xqi8qgjmcjuaa5v90 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1fnecf6knkleknuj651ja4xqi8qgjmcjuaa5v90';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 cosmosvaloper1kbkfzxr2z2wzsryx8658axgajh123qboajyvbw on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1kbkfzxr2z2wzsryx8658axgajh123qboajyvbw';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 659 ATOM ATOM to cosmos10yc668xc7ft22jhrz2iis72khxmg53t1bt2xil on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos10yc668xc7ft22jhrz2iis72khxmg53t1bt2xil';
const amount = '659';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 672 ATOM ATOM from cosmosvaloper143au7aovwt0ustcmiql0fhwvpi9q2oh3wbl8qa on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper143au7aovwt0ustcmiql0fhwvpi9q2oh3wbl8qa';
const amount = '672';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 38 with option 3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '38';
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 75 with option 3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '75';
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 11 with option 3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '11';
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;
} |
How do I prepare for a job interview? | Improving productivity can be achieved by prioritizing tasks, eliminating distractions, setting clear goals, and taking regular breaks. Techniques like the Pomodoro Technique and time blocking can also help manage time effectively. |
Undelegate 494 ATOM ATOM from cosmosvaloper10fxxgk1cjmuwo3wuncdqrlh948sfb8d5b4oef5 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper10fxxgk1cjmuwo3wuncdqrlh948sfb8d5b4oef5';
const amount = '494';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 51 with option 3 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const proposalId = '51';
const option = '3';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const voteMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgVote',
value: { proposalId: proposalId, voter: firstAccount.address, option: option },
};
const result = await client.signAndBroadcast(firstAccount.address, [voteMsg], fee, 'Voting on proposal');
return result.transactionHash;
} |
Undelegate 58 ATOM ATOM from cosmosvaloper19qlfoy6n2hkhjm2ii4ipcjd62a8mfl3wa8fywk on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper19qlfoy6n2hkhjm2ii4ipcjd62a8mfl3wa8fywk';
const amount = '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 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 218 ATOM ATOM to cosmosvaloper1x8gdy7hmeai350zbzo6es1my877pchu47v9y7o on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1x8gdy7hmeai350zbzo6es1my877pchu47v9y7o';
const amount = '218';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const 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 948 ATOM ATOM from cosmosvaloper1wad47bdhb8t1mjiwvh00it5r82ueyy3oi6za00 to cosmosvaloper14xhcmwk08vld5qfh82qqjcftg4wj6e3uhr8e2c on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1wad47bdhb8t1mjiwvh00it5r82ueyy3oi6za00';
const dstValidatorAddress = 'cosmosvaloper14xhcmwk08vld5qfh82qqjcftg4wj6e3uhr8e2c';
const amount = '948';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 610 ATOM ATOM to cosmosvaloper1guzgyr8s3vhld7mie3e1i4mvnu84fxn0iqwwbx on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1guzgyr8s3vhld7mie3e1i4mvnu84fxn0iqwwbx';
const amount = '610';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 94' and description 'Proposal Description 19' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 94';
const description = 'Proposal Description 19';
const deposit = '71';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 476 ATOM ATOM from cosmosvaloper1wgy7amox908jtvpvz7lods43xtvrn99fe8lldw to cosmosvaloper1wqqowk14pbyqjt6xjf0h7c1m5c44xrzozwlec4 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1wgy7amox908jtvpvz7lods43xtvrn99fe8lldw';
const dstValidatorAddress = 'cosmosvaloper1wqqowk14pbyqjt6xjf0h7c1m5c44xrzozwlec4';
const amount = '476';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 497 ATOM ATOM from cosmosvaloper156m7neaeosr2esif6lkemd70f9gseduh6iv04n to cosmosvaloper1w3lorfeizq3xo2qqy32djc1q5als0ch7tmg4n2 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper156m7neaeosr2esif6lkemd70f9gseduh6iv04n';
const dstValidatorAddress = 'cosmosvaloper1w3lorfeizq3xo2qqy32djc1q5als0ch7tmg4n2';
const amount = '497';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 10' and description 'Proposal Description 70' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 10';
const description = 'Proposal Description 70';
const deposit = '804';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 249 ATOM ATOM to cosmos1dlg3f3vkgg5hvhfc1ol39cwtiitpsy3h9535td on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1dlg3f3vkgg5hvhfc1ol39cwtiitpsy3h9535td';
const amount = '249';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 43' and description 'Proposal Description 97' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 43';
const description = 'Proposal Description 97';
const deposit = '5';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const proposalMsg = {
typeUrl: '/cosmos.gov.v1beta1.MsgSubmitProposal',
value: {
content: {
typeUrl: '/cosmos.gov.v1beta1.TextProposal',
value: { title: title, description: description },
},
initialDeposit: [{ denom: chainConfig.denom, amount: (parseFloat(deposit) * 1000000).toString() }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
return result.transactionHash;
} |
How do I plan my week effectively? | 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. |
Delegate 780 ATOM ATOM to cosmosvaloper1tgjs3cpntsg9ig2iiciljz6vjxvh8fhpoqfr9i on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1tgjs3cpntsg9ig2iiciljz6vjxvh8fhpoqfr9i';
const amount = '780';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 27' and description 'Proposal Description 89' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 27';
const description = 'Proposal Description 89';
const deposit = '57';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 19' and description 'Proposal Description 72' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 19';
const description = 'Proposal Description 72';
const deposit = '825';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 32 ATOM ATOM to cosmos1ach63dw53anwjqxw912dn9mpabg3myqtpglzph on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1ach63dw53anwjqxw912dn9mpabg3myqtpglzph';
const amount = '32';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 796 ATOM ATOM to cosmos1xqxx55fdyjsrddo6qiu0np3u8ca6n2d9qvhkwy on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1xqxx55fdyjsrddo6qiu0np3u8ca6n2d9qvhkwy';
const amount = '796';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 774 ATOM ATOM to cosmos1ovdjva318rrftz06idynwmpkg5xlbt8xchyhzs on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1ovdjva318rrftz06idynwmpkg5xlbt8xchyhzs';
const amount = '774';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 626 ATOM ATOM to cosmosvaloper1wblp5at4rj32g4hlhhh11awyq1kw8am7bvoccc on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1wblp5at4rj32g4hlhhh11awyq1kw8am7bvoccc';
const amount = '626';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 494 ATOM ATOM to cosmos11k9a39quo7seinq3n3va8zalxze0g18hvhatll on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos11k9a39quo7seinq3n3va8zalxze0g18hvhatll';
const amount = '494';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 607 ATOM ATOM to cosmosvaloper1g7g4mt2pnks31gwhn83tj561jkwidt8onspux5 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1g7g4mt2pnks31gwhn83tj561jkwidt8onspux5';
const amount = '607';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 645 ATOM ATOM to cosmos1wqd9tpi0g6ovhmkn034e4j6m5d79h6sq7fjvrj on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1wqd9tpi0g6ovhmkn034e4j6m5d79h6sq7fjvrj';
const amount = '645';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const 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 480 ATOM ATOM from cosmosvaloper1uez5lngmvk5h1zy5z928hk6xnxx3ltch2i62bf on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1uez5lngmvk5h1zy5z928hk6xnxx3ltch2i62bf';
const amount = '480';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 81 ATOM ATOM to cosmos1rnka8hqmygy0hwodzwo9288v0mfmh2i9dgsz8u on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1rnka8hqmygy0hwodzwo9288v0mfmh2i9dgsz8u';
const amount = '81';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 512 ATOM ATOM to cosmosvaloper1en3znrqi5knohe6nhmk7l8semj9jg35nj86mon on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1en3znrqi5knohe6nhmk7l8semj9jg35nj86mon';
const amount = '512';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 cosmosvaloper1tkf2e1iykv1efarcqaw6n4jy2mfxnyaqnz42gs on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1tkf2e1iykv1efarcqaw6n4jy2mfxnyaqnz42gs';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 44 ATOM ATOM to cosmos1mh59x3umtn89jgvpvtdqfwl2k9koazfzcisjxf on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1mh59x3umtn89jgvpvtdqfwl2k9koazfzcisjxf';
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 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 23' and description 'Proposal Description 42' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 23';
const description = 'Proposal Description 42';
const deposit = '491';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 manage stress effectively? | 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. |
Redelegate 182 ATOM ATOM from cosmosvaloper11fz9q0kf7eg5dtgbb46cv9asxxdw6yqaa6dsw1 to cosmosvaloper177h3ibhb13esb1ql16p303si7txah9ze4unbli on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper11fz9q0kf7eg5dtgbb46cv9asxxdw6yqaa6dsw1';
const dstValidatorAddress = 'cosmosvaloper177h3ibhb13esb1ql16p303si7txah9ze4unbli';
const amount = '182';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const redelegateAmount = { denom: chainConfig.denom, amount: (parseFloat(amount) * 1000000).toString() };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
return result.transactionHash;
} |
How do I prepare for a job interview? | 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. |
Undelegate 490 ATOM ATOM from cosmosvaloper17wpliheah9m68r434694ttdeh79d4sk19h6f11 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper17wpliheah9m68r434694ttdeh79d4sk19h6f11';
const amount = '490';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 327 ATOM ATOM to cosmos1f6wjb10v5q4c2by93y903jzy8o49zreovcjym7 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const recipient = 'cosmos1f6wjb10v5q4c2by93y903jzy8o49zreovcjym7';
const amount = '327';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 210 ATOM ATOM from cosmosvaloper15zodevtgwtwucf3llkzt2gzxouzokw123c3qn8 to cosmosvaloper1z6ef9l60uoa2n0oceleklzvbaox8qvhmx8iylp on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper15zodevtgwtwucf3llkzt2gzxouzokw123c3qn8';
const dstValidatorAddress = 'cosmosvaloper1z6ef9l60uoa2n0oceleklzvbaox8qvhmx8iylp';
const amount = '210';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 cosmosvaloper1xsp51nk2c5vuapqd57h7wz1iixqdsfkobzbuj8 on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1xsp51nk2c5vuapqd57h7wz1iixqdsfkobzbuj8';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 736 ATOM ATOM to cosmosvaloper1br81ypcokb9132f4dkgjxk2d57i9xp7xqpz2qy on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1br81ypcokb9132f4dkgjxk2d57i9xp7xqpz2qy';
const amount = '736';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 489 ATOM ATOM to cosmosvaloper1xwlhl9ruwf1e205ujltwg57ddbz7wlnprudxqz on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1xwlhl9ruwf1e205ujltwg57ddbz7wlnprudxqz';
const amount = '489';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 528 ATOM ATOM to cosmosvaloper1gsgpn98id93w1v4jopwqap07z5jf5pbwq0kpao on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1gsgpn98id93w1v4jopwqap07z5jf5pbwq0kpao';
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 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 185 ATOM ATOM from cosmosvaloper1xdviko1bn0vhqf0x0xl1e1k0xsvn367zxa1ogn to cosmosvaloper1yplb2664pm60mu6ayshs2xdrzifioktxoyvief on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1xdviko1bn0vhqf0x0xl1e1k0xsvn367zxa1ogn';
const dstValidatorAddress = 'cosmosvaloper1yplb2664pm60mu6ayshs2xdrzifioktxoyvief';
const amount = '185';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 624 ATOM ATOM from cosmosvaloper17f1hdstqc34evw9krgmrdw7lounh12vd6hiywn to cosmosvaloper1kay3wrva0rivat0ecy93f14gqacy4mx4gpk7lb on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper17f1hdstqc34evw9krgmrdw7lounh12vd6hiywn';
const dstValidatorAddress = 'cosmosvaloper1kay3wrva0rivat0ecy93f14gqacy4mx4gpk7lb';
const amount = '624';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 71' and description 'Proposal Description 33' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 71';
const description = 'Proposal Description 33';
const deposit = '555';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 cosmosvaloper1iagrw9u0hixic3aqr4yqdd79opj9t8cqqdrvbu on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1iagrw9u0hixic3aqr4yqdd79opj9t8cqqdrvbu';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 868 ATOM ATOM from cosmosvaloper1dk0qid0phnqray4lkwfoope0ps2vn7ees0r4o6 to cosmosvaloper1k2z5icfk6ougbf05sotfr3gdba93g28emo8ncp on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1dk0qid0phnqray4lkwfoope0ps2vn7ees0r4o6';
const dstValidatorAddress = 'cosmosvaloper1k2z5icfk6ougbf05sotfr3gdba93g28emo8ncp';
const amount = '868';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 90' and description 'Proposal Description 91' on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const title = 'Proposal Title 90';
const description = 'Proposal Description 91';
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;
} |
Withdraw rewards from cosmosvaloper1z4uf35pyw4ejwwzkl3bqjj8c6ez1craqjy23kv on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const validatorAddress = 'cosmosvaloper1z4uf35pyw4ejwwzkl3bqjj8c6ez1craqjy23kv';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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 548 ATOM ATOM from cosmosvaloper1e5ch1vjpg7hdeoawa7lh6xcrshw6munxd5mz47 to cosmosvaloper18pdw56gfzok6iiumw105q1zs7euc9unkl9zlzi on Cosmos. | async (DirectSecp256k1HdWallet, SigningStargateClient, mnemonic, chainConfig) => {
const srcValidatorAddress = 'cosmosvaloper1e5ch1vjpg7hdeoawa7lh6xcrshw6munxd5mz47';
const dstValidatorAddress = 'cosmosvaloper18pdw56gfzok6iiumw105q1zs7euc9unkl9zlzi';
const amount = '548';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(chainConfig.rpcEndpoint, wallet);
const fee = {
amount: [{ denom: chainConfig.denom, amount: chainConfig.feeAmount }],
gas: chainConfig.gas,
};
const 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