// JavaScript
const tx = {
wallet: 'MetaMask', // required
from: '0x8c32D410c843A41db54408099ab3fd92C8434aa8', // required
to: '0x9D50C095D29655C1f0589c61A8F3d10280D6C91e', // required
rpc: '', // option
value: 100, // option
contractabi: [], // option
function: 'owner',// option
args:
[
'0x8c32D410c843A41db54408099ab3fd92C8434aa8',
'0x7b76dBF7f01ebA3eE2fa1339C8C29FA6949b1bE4',
100,
'0xDc2280A89e7Fa73D84f4e01c07f1421Cab69eacb'
], // option
gasPrice: 15000000000, // option
gasPriceKoef: 2, // option
gas: 22000, // option
nonce: , // option
chainId: , // option
}
// JavaScript
const tx = {
wallet: 'WalletConnect', // required
from: '0x8c32D410c843A41db54408099ab3fd92C8434aa8', // required
to: '0x9D50C095D29655C1f0589c61A8F3d10280D6C91e', // required
chainIdWC: 56, // required
rpc: '', // option
value: 100, // option
contractabi: [], // option
function: 'owner',// option
args:
[
'',
'',
100,
''
], // option
gasPrice: 15000000000, // option
gasPriceKoef: 2, // option
gas: 22000, // option
nonce: , // option
chainId: , // option
}
// JavaScript
const tx = {
wallet: 'TronLink', // required
settings: {
fullNode: 'https://nile.trongrid.io/',
solidityNode: "https://nile.trongrid.io/",
eventServer: "https://nile.trongrid.io/",
}, // option
contractabi:'', // required
contractaddress:'', // required
args:[], // required
function: 'mint', // required
feeLimit: 100000000, // required
from: '', // required
value: 0, // required
confirmed: true, // option true - ждать подтверждения новыми блоками, false - нет
}
// JavaScript
const tx = {
wallet: 'WalletConnectTronV1', // required
settings: {
fullNode: 'https://api.trongrid.io',
solidityNode: 'https://api.trongrid.io',
eventServer: 'https://api.trongrid.io',
}, // option
from: "", // required
contractaddress: "", // required
function: "approve(address,uint256)", // required
args: [{type:'address',value:''},{type:'uint256',value:1}], // required
confirmed: true, // option true - ждать подтверждения новыми блоками, false - нет
}
// JavaScript
const txHash = await makeTransaction(tx)