Send Transactions in Near
Sign and Send a Single Transaction
// Call wNEAR contract method
// Register the 'xxx.testnet' account to wNEAR on testnet (wrap.testnet)
const tx = {
receiverId: 'wrap.testnet',
actions: [
{
methodName: 'storage_deposit',
args: {
account_id: 'alice.testnet',
registration_only: true,
},
gas: parseNearAmount('0.003'),
deposit: parseNearAmount('0.00125'),
},
],
}
const res = await window.near.signAndSendTransaction(tx);Sign and Send Multiple Transactions
Last updated