Send Transaction
Sign and submit a Transaction
// transfer 1000 Octas to 0x123
const transaction = {
arguments: ['0x123', '1000'],
function: '0x1::coin::transfer',
type: 'entry_function_payload',
type_arguments: ['0x1::aptos_coin::AptosCoin'],
}
const options = {
max_gas_amount: '20000' // default to '50000'
}
...
// sign and submit the transaction & get the tx hash
const { hash } = await bloctoSDK.aptos.signAndSubmitTransaction(transaction, options)Last updated
Was this helpful?