instruction
stringclasses 17
values | input
stringlengths 18
149
| output
stringclasses 29
values |
---|---|---|
Send {amount} SOL to {recipient} on Solana | Send 230 SOL to 1Amgja9Drqka2Lvmwet8eK9QoBBjgEiBqd6x3qFfCXhw on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Submit a proposal with title and description on Cosmos | Submit a proposal with title and description on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function submitProposal(mnemonic, chainConfig) {
const title = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f0d0>';
const description = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f160>';
const deposit = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f1f0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: deposit }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
assertIsBroadcastTxSuccess(result);
console.log('Proposal submitted successfully with hash:', result.transactionHash);
}
// Execute the function
submitProposal('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | Help me organize my day with a schedule. | To prepare for a job interview, research the company and the role you applied for. Practice common interview questions, dress appropriately, and arrive on time. Be ready to discuss your experience and how it relates to the position. Prepare some questions to ask the interviewer as well. |
Send {amount} SOL to {recipient} on Solana | Send 152 SOL to Neo9zhP7R7k8zoAFTdFFwJXHAcz8x7bzWLVYgVcGpBeJ on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Submit a proposal with title and description on Cosmos | Submit a proposal with title and description on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function submitProposal(mnemonic, chainConfig) {
const title = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f0d0>';
const description = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f160>';
const deposit = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f1f0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: deposit }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
assertIsBroadcastTxSuccess(result);
console.log('Proposal submitted successfully with hash:', result.transactionHash);
}
// Execute the function
submitProposal('your mnemonic here', chainConfig).catch(console.error);
|
Delegate {amount} ATOM to {validator} on Cosmos | Delegate 866 ATOM ATOM to cosmosvaloper106bwito5zigz4n45isl1hsiepfzesr986upfcj on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function delegateTokens(mnemonic, chainConfig) {
const validatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102a7d1f0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
delegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Delegate {amount} ATOM to {validator} on Cosmos | Delegate 682 ATOM ATOM to cosmosvaloper1u9zp4d04oyjin3tq55ul0ywqhkot1bq2vwxlqf on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function delegateTokens(mnemonic, chainConfig) {
const validatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102a7d1f0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
delegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | 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. |
Answer the personal assistant question | Create a weekly timetable based on my input tasks. | 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. |
Send {amount} SOL to {recipient} on Solana | Send 236 SOL to KrYxdP8NedQnbATenp6BCdLpysXQziCDmsj3PpsKmdSw on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 620 SOL to NSpPDyyMVRyyzjSGNwGTqtVHi4nLdWBudergFup1Q6Py on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 422 SOL to 8FjfFv4ZNP7w3hek6TeVQ9P9DqXZnJeFyBhaWf8PcrGZ on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 647 SOL to 4awQ7oeTrrfATVjtCJSEUWjrVuQpjsm9BorE7gxSp27q on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 632 SOL to GGc8WSYRdd47RtfxYixcwWf9uLTDYiTZHuDK872iQnVb on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 571 SOL to 7hgj2nAyHJ8pBXmpLPVPhaJgw5RPsBTRVitccgdAhbvp on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | How can I stay motivated while working from home? | 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. |
Send {amount} SOL to {recipient} on Solana | Send 200 SOL to tAVYu3cZpFyhf6wzQofEhyngoWyNeSGzS5vurp6321ao on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Submit a proposal with title and description on Cosmos | Submit a proposal with title and description on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function submitProposal(mnemonic, chainConfig) {
const title = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f0d0>';
const description = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f160>';
const deposit = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f1f0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: deposit }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
assertIsBroadcastTxSuccess(result);
console.log('Proposal submitted successfully with hash:', result.transactionHash);
}
// Execute the function
submitProposal('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 714 SOL to PDD8j2Zu85A6tLsCPw1RuEsgPshpDEDCyCHmDt6h4mub on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | How can I stay motivated while working from home? | To prepare for a job interview, research the company and the role you applied for. Practice common interview questions, dress appropriately, and arrive on time. Be ready to discuss your experience and how it relates to the position. Prepare some questions to ask the interviewer as well. |
Answer the personal assistant question | How do I plan my week effectively? | Strategies for time management include setting clear goals, prioritizing tasks, breaking tasks into smaller steps, using a planner or calendar, and avoiding procrastination. |
Delegate {amount} ATOM to {validator} on Cosmos | Delegate 890 ATOM ATOM to cosmosvaloper1n7v75cddpvyr4oazf5l9lpb2lm08qltkshxdbb on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function delegateTokens(mnemonic, chainConfig) {
const validatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102a7d1f0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
delegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 211 SOL to BtdCi4jTr6kTi4K8Zmmp9AXGvan3A14pTsLeSCBroHeF on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | Help me organize my day with a schedule. | 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. |
Undelegate {amount} ATOM from {validator} on Cosmos | Undelegate 904 ATOM ATOM from cosmosvaloper1aw7l62cc0do566xy9u414kx1lk0nwmfkwurhhu on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function undelegateTokens(mnemonic, chainConfig) {
const validatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102b85dc0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
undelegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Undelegate {amount} ATOM from {validator} on Cosmos | Undelegate 518 ATOM ATOM from cosmosvaloper1p4wsomh0e9bu3sxhmfiugcjltni2c1k2tlkq74 on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function undelegateTokens(mnemonic, chainConfig) {
const validatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102b85dc0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
undelegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 526 SOL to 9EFcsQrRNZVEguJecHb1fR6Ptn2vQPKn8sAjfnEDD9zs on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Redelegate {amount} ATOM from {validator_src} to {validator_dst} on Cosmos | Redelegate 783 ATOM ATOM from cosmosvaloper1jjb5xpqsiynumeb9o528v6479acv07usqfxank to cosmosvaloper19lql8ajpacic0g1ws1yq5pnb93aljzhqbv92o8 on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function redelegateTokens(mnemonic, chainConfig) {
const srcValidatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const dstValidatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102b85f70>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
redelegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 302 SOL to 11TsZSUQWddku3jtH37VshK37fgmKLT1wmwonjj88v8v on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 978 SOL to QGtHyN3muDvmxB2NtrKWQJLhRoaga6pC3Tkhu5d82UCj on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Withdraw rewards from {validator} on Cosmos | Withdraw rewards from cosmosvaloper1xrsxhh7ipnjbmok3vpk0jimnx8t52i7zn2b2zq on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function withdrawRewards(mnemonic, chainConfig) {
const validatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
withdrawRewards('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 695 SOL to nre9JxjabWgTLRohD2QqmJK3j4Kr6sQqkgYjjZs2SXgB on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 291 SOL to j5rbKXZzVAFFLomzUpb3htdD5NxdXtLgVRK3GQqno2eg on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 773 SOL to oe4jtF5TX69EEvAMD1kJDRiMtmZiMPjyhuWwBcNxGfjz on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 720 SOL to zJkHXRPGL2r6WNmFjjTPyhrb1xcA2e2jcrKhxpguVqd4 on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 679 SOL to bhbHSPcywvoCpJF7EeK1FMUZbKPsMbn4G1cLh5mQz6W1 on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Vote on proposal {proposalId} with option {option} on Cosmos | Vote on proposal 33 with option 1 on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function voteOnProposal(mnemonic, chainConfig) {
const proposalId = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f310>';
const option = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f3a0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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');
assertIsBroadcastTxSuccess(result);
console.log('Voted successfully with hash:', result.transactionHash);
}
// Execute the function
voteOnProposal('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | 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. |
Send {amount} SOL to {recipient} on Solana | Send 235 SOL to xPWfatFzxEouW9jY3eSptawvAp39YJAH1p5HYqNnqiMm on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | How do I prepare for a job interview? | 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. |
Answer the personal assistant question | Create a weekly timetable based on my input tasks. | 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. |
Answer the personal assistant question | How can I improve my coding skills? | 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. |
Answer the personal assistant question | How can I manage stress effectively? | To improve efficiency, try breaking down large tasks into smaller, manageable steps. Prioritize tasks based on urgency and importance, and eliminate any distractions while working. |
Send {amount} SOL to {recipient} on Solana | Send 977 SOL to SdrtNLK6Dm2uuvWCfTR8rFdjvRe74SUK5T115P25QDqx on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 713 SOL to 6ynmTDGSQku8s2FGLuZcxwv6WTkzb4FFxjftNZ2fMAA6 on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 227 SOL to TTkbsbQtxkKwKrgN6T1Zjf5wXcUP6VuhZ9gSC8sJDnr6 on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Redelegate {amount} ATOM from {validator_src} to {validator_dst} on Cosmos | Redelegate 102 ATOM ATOM from cosmosvaloper14tpvzjdmr3df708a9bk8y7vfe3e1kaqkiko9pa to cosmosvaloper1aewciegl9ldqwwfbdeik7mlspwstsfrzf0nedh on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function redelegateTokens(mnemonic, chainConfig) {
const srcValidatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const dstValidatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102b85f70>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
redelegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Submit a proposal with title and description on Cosmos | Submit a proposal with title and description on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function submitProposal(mnemonic, chainConfig) {
const title = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f0d0>';
const description = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f160>';
const deposit = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f1f0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: deposit }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
assertIsBroadcastTxSuccess(result);
console.log('Proposal submitted successfully with hash:', result.transactionHash);
}
// Execute the function
submitProposal('your mnemonic here', chainConfig).catch(console.error);
|
Submit a proposal with title and description on Cosmos | Submit a proposal with title and description on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function submitProposal(mnemonic, chainConfig) {
const title = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f0d0>';
const description = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f160>';
const deposit = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f1f0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: deposit }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
assertIsBroadcastTxSuccess(result);
console.log('Proposal submitted successfully with hash:', result.transactionHash);
}
// Execute the function
submitProposal('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 836 SOL to UxtdhgJZ2viTGxoro49q4jV8ZhjsoB5cgPnKCgEstawB on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 171 SOL to tNt2AmF2MTDbbxBU7wADAQ9YPFrKFNRwaAZv4tGv6Hm9 on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Vote on proposal {proposalId} with option {option} on Cosmos | Vote on proposal 47 with option 4 on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function voteOnProposal(mnemonic, chainConfig) {
const proposalId = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f310>';
const option = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f3a0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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');
assertIsBroadcastTxSuccess(result);
console.log('Voted successfully with hash:', result.transactionHash);
}
// Execute the function
voteOnProposal('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | How can I stay motivated while working from home? | Strategies for time management include setting clear goals, prioritizing tasks, breaking tasks into smaller steps, using a planner or calendar, and avoiding procrastination. |
Send {amount} SOL to {recipient} on Solana | Send 583 SOL to xmhegzNEsAYVLGwhXzs6FDfAhRz7xk1wCDG3kzBQfwHp on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Undelegate {amount} ATOM from {validator} on Cosmos | Undelegate 213 ATOM ATOM from cosmosvaloper1o84s8vv0htmzzniiun7kt025iznzxqh9qp8399 on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function undelegateTokens(mnemonic, chainConfig) {
const validatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102b85dc0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
undelegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | Create a weekly timetable based on my input tasks. | 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. |
Answer the personal assistant question | How can I manage stress effectively? | 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. |
Send {amount} SOL to {recipient} on Solana | Send 387 SOL to Lewk1EyyxaeraUNX3tTngJ6T3ajSgqK93mnyxXHjAW7e on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 987 SOL to 7qsHA6Nq5DiguPDt5tAUSgspAyCsSU3zpKT8AkWK3YXm on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 876 SOL to ZHZMzoMcicE2amsr3iCaA9uLZ15LxG2uCoWEvvrRCPDP on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 395 SOL to DFebgMQRzs27wniR511QAH2okMvsExKnUFzP8okkvaDc on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} ATOM to {recipient} on Cosmos | Send 262 ATOM ATOM to cosmos1l23eduxaivw2z6lkqv5154xoz0j0e1ebqzgfnq on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_cosmos_address at 0x10293d1f0>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.sendTokens(firstAccount.address, recipient, [sendAmount], fee, 'Sending tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} ATOM to {recipient} on Cosmos | Send 272 ATOM ATOM to cosmos1e450jdofuktgp5d5llhf1f6606ltgsbd26dyc1 on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_cosmos_address at 0x10293d1f0>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.sendTokens(firstAccount.address, recipient, [sendAmount], fee, 'Sending tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | Suggest a better plan for my tasks to improve efficiency. | 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. |
Send {amount} SOL to {recipient} on Solana | Send 481 SOL to 8WofYFxBgF6cWfXP2SncTKooK1QcoSeTcZuoQbpdTEec on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | How can I manage stress effectively? | To improve efficiency, try breaking down large tasks into smaller, manageable steps. Prioritize tasks based on urgency and importance, and eliminate any distractions while working. |
Answer the personal assistant question | 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. |
Answer the personal assistant question | How can I manage stress effectively? | A balanced diet provides essential nutrients and helps maintain overall health. It should include a variety of foods from all food groups: fruits, vegetables, protein, dairy, and grains. Staying hydrated and moderating intake of sugar and saturated fats are also important. |
Answer the personal assistant question | How do I prepare for a job interview? | Strategies for time management include setting clear goals, prioritizing tasks, breaking tasks into smaller steps, using a planner or calendar, and avoiding procrastination. |
Send {amount} SOL to {recipient} on Solana | Send 787 SOL to fv2v2FKLBvrC3t7idibLc3e8vWAw8qnkWumPefDh9dDX on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 388 SOL to PUU4PGMCqzMHqu5CN2qGnjjun9pwRYoqRb82rGrkP11P on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | How do I prepare for a job interview? | Best practices for remote work include setting up a dedicated workspace, maintaining a regular schedule, taking breaks, staying connected with colleagues, and using productivity tools to manage tasks and projects. |
Withdraw rewards from {validator} on Cosmos | Withdraw rewards from cosmosvaloper1j309qsrmir7v1uieyy7v6og7eyq7al4g4iuejs on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function withdrawRewards(mnemonic, chainConfig) {
const validatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
withdrawRewards('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} ATOM to {recipient} on Cosmos | Send 358 ATOM ATOM to cosmos1bkb9w2ioolc312ydgx8plnri1rp6ekc522tjm9 on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_cosmos_address at 0x10293d1f0>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.sendTokens(firstAccount.address, recipient, [sendAmount], fee, 'Sending tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 917 SOL to GpNQK2zJJ9L3zxcZ2psrPZLNcHTt9QeFCmQK9U1uqWru on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Delegate {amount} ATOM to {validator} on Cosmos | Delegate 460 ATOM ATOM to cosmosvaloper18q29wthnqq5ad5vbpk4qjcxseoz8u0302vat4t on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function delegateTokens(mnemonic, chainConfig) {
const validatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102a7d1f0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
delegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Submit a proposal with title and description on Cosmos | Submit a proposal with title and description on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function submitProposal(mnemonic, chainConfig) {
const title = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f0d0>';
const description = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f160>';
const deposit = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f1f0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: deposit }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
assertIsBroadcastTxSuccess(result);
console.log('Proposal submitted successfully with hash:', result.transactionHash);
}
// Execute the function
submitProposal('your mnemonic here', chainConfig).catch(console.error);
|
Undelegate {amount} ATOM from {validator} on Cosmos | Undelegate 502 ATOM ATOM from cosmosvaloper12edq6xha8lzgxt9z6gkmz3vwrlo4iuqhtun3s1 on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function undelegateTokens(mnemonic, chainConfig) {
const validatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102b85dc0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
undelegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Redelegate {amount} ATOM from {validator_src} to {validator_dst} on Cosmos | Redelegate 750 ATOM ATOM from cosmosvaloper1ljcdjyg3w6x1z5u93sm0t7xx8o89mj2ey06v20 to cosmosvaloper1xrd79utcao2r70p1xgmw5eh0ryz2nm7qldkfsq on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function redelegateTokens(mnemonic, chainConfig) {
const srcValidatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const dstValidatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102b85f70>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
redelegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | 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. |
Answer the personal assistant question | 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 {amount} ATOM to {validator} on Cosmos | Delegate 921 ATOM ATOM to cosmosvaloper1k7fxo3f2yff6e10p80lmg1kkonjdfwt1w97sbz on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function delegateTokens(mnemonic, chainConfig) {
const validatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102a7d1f0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.delegateTokens(firstAccount.address, validatorAddress, delegateAmount, fee, 'Delegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
delegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 254 SOL to UvZdF4JPWkFAzWE9hoNKKdXeqjt6Xin4jKHjaQ38n8Qs on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | What are the best practices for remote work? | To improve efficiency, try breaking down large tasks into smaller, manageable steps. Prioritize tasks based on urgency and importance, and eliminate any distractions while working. |
Send {amount} ATOM to {recipient} on Cosmos | Send 520 ATOM ATOM to cosmos1jkwr1tssbznzscjuybg16rjbqbwwhv1zb9mmhr on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_cosmos_address at 0x10293d1f0>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.sendTokens(firstAccount.address, recipient, [sendAmount], fee, 'Sending tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 699 SOL to hffhLXDCGbcRCtXT2Rf1mHBMMyapkH4mXWitZm9cMLiX on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Vote on proposal {proposalId} with option {option} on Cosmos | Vote on proposal 97 with option 1 on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function voteOnProposal(mnemonic, chainConfig) {
const proposalId = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f310>';
const option = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f3a0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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');
assertIsBroadcastTxSuccess(result);
console.log('Voted successfully with hash:', result.transactionHash);
}
// Execute the function
voteOnProposal('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | 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. |
Undelegate {amount} ATOM from {validator} on Cosmos | Undelegate 709 ATOM ATOM from cosmosvaloper1ol20k5tokbarqk5bx0fyotfko34rr4vv800wd8 on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function undelegateTokens(mnemonic, chainConfig) {
const validatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102b85dc0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
undelegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Vote on proposal {proposalId} with option {option} on Cosmos | Vote on proposal 61 with option 2 on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function voteOnProposal(mnemonic, chainConfig) {
const proposalId = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f310>';
const option = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f3a0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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');
assertIsBroadcastTxSuccess(result);
console.log('Voted successfully with hash:', result.transactionHash);
}
// Execute the function
voteOnProposal('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 811 SOL to hnARriZxrV5FX36MSt8Enq9RHmgP9RLaFLX3LPoYSupc on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 845 SOL to 5fBbUsChb9mcHJUNbM1aiJGKvNcAjLmqEs8hC6B4JrRr on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Redelegate {amount} ATOM from {validator_src} to {validator_dst} on Cosmos | Redelegate 307 ATOM ATOM from cosmosvaloper1itjwemgsd84rezo4oo4r8kwkwj8ame0hog9l4b to cosmosvaloper13ipfhrnox6kjcvxk9diqiwnegj6m286184ksxv on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function redelegateTokens(mnemonic, chainConfig) {
const srcValidatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const dstValidatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102b85f70>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.redelegateTokens(firstAccount.address, srcValidatorAddress, dstValidatorAddress, redelegateAmount, fee, 'Redelegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
redelegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Undelegate {amount} ATOM from {validator} on Cosmos | Undelegate 343 ATOM ATOM from cosmosvaloper1nf7davoea5ai661te0ia8v29uyoxludy05dzdm on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function undelegateTokens(mnemonic, chainConfig) {
const validatorAddress = '<function generate_random_validator_address at 0x102b85a60>';
const amount = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x102b85dc0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: amount };
const result = await client.undelegateTokens(firstAccount.address, validatorAddress, undelegateAmount, fee, 'Undelegating tokens');
assertIsBroadcastTxSuccess(result);
console.log('Transaction successful with hash:', result.transactionHash);
}
// Execute the function
undelegateTokens('your mnemonic here', chainConfig).catch(console.error);
|
Submit a proposal with title and description on Cosmos | Submit a proposal with title and description on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function submitProposal(mnemonic, chainConfig) {
const title = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f0d0>';
const description = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f160>';
const deposit = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f1f0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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: deposit }],
proposer: firstAccount.address,
},
};
const result = await client.signAndBroadcast(firstAccount.address, [proposalMsg], fee, 'Submitting proposal');
assertIsBroadcastTxSuccess(result);
console.log('Proposal submitted successfully with hash:', result.transactionHash);
}
// Execute the function
submitProposal('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 951 SOL to d43UfLVyxUcwvWrHP1PQm3kdzXG1Q151cEqAZBkpUZzb on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|
Vote on proposal {proposalId} with option {option} on Cosmos | Vote on proposal 46 with option 3 on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function voteOnProposal(mnemonic, chainConfig) {
const proposalId = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f310>';
const option = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f3a0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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');
assertIsBroadcastTxSuccess(result);
console.log('Voted successfully with hash:', result.transactionHash);
}
// Execute the function
voteOnProposal('your mnemonic here', chainConfig).catch(console.error);
|
Answer the personal assistant question | Create a weekly timetable based on my input tasks. | 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. |
Vote on proposal {proposalId} with option {option} on Cosmos | Vote on proposal 72 with option 1 on Cosmos | const { DirectSecp256k1HdWallet } = require('@cosmjs/proto-signing');
const { assertIsBroadcastTxSuccess, SigningStargateClient } = require('@cosmjs/stargate');
async function voteOnProposal(mnemonic, chainConfig) {
const proposalId = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f310>';
const option = '<function generate_cosmos_transaction_examples.<locals>.<lambda> at 0x105e0f3a0>';
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, { prefix: chainConfig.prefix });
const [firstAccount] = 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');
assertIsBroadcastTxSuccess(result);
console.log('Voted successfully with hash:', result.transactionHash);
}
// Execute the function
voteOnProposal('your mnemonic here', chainConfig).catch(console.error);
|
Send {amount} SOL to {recipient} on Solana | Send 880 SOL to J5rJwoqksi5NeBzMPcnYbooexjw2iuN4ExbyGi17EffV on Solana | const { Connection, Keypair, Transaction, LAMPORTS_PER_SOL, SystemProgram, sendAndConfirmTransaction } = require('@solana/web3.js');
const bip39 = require('bip39');
async function sendTransaction(mnemonic, chainConfig) {
const recipient = '<function generate_random_solana_address at 0x102b859d0>';
const amount = '<function generate_solana_transaction_examples.<locals>.<lambda> at 0x1029f6940>';
const connection = new Connection(chainConfig.rpcEndpoint, 'confirmed');
const seed = bip39.mnemonicToSeedSync(mnemonic).slice(0, 32);
const keypair = Keypair.fromSeed(seed);
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: keypair.publicKey,
toPubkey: recipient,
lamports: amount * LAMPORTS_PER_SOL,
})
);
const result = await sendAndConfirmTransaction(connection, transaction, [keypair]);
console.log('Transaction successful with hash:', result);
}
// Execute the function
sendTransaction('your mnemonic here', chainConfig).catch(console.error);
|