For the complete documentation index, see llms.txt. This page is also available as Markdown.

Sending Transactions

Once an application is connected to the Rise Wallet via connect method, an app can submit the signed transaction using window.rise.signAndSubmitTransaction()and it will return a Promise that resolves when the request is successful and reject (throw when awaited) when the request fails.

Below is an example code describing the way to submit a transaction.

const payload = {
      type: 'entry_function_payload',
      function: '0x1::coin::transfer',
      type_arguments: ['0x1::aptos_coin::AptosCoin'],
      arguments: ['0x0f024fc664bfe474fd0cfe547ddea5a99b46868c2c331e9e29319b117fdb1b6a', 123123]
    };
const transaction = await window.rise.signAndSubmitTransaction(payload);
console.log(transaction)
// {
//  expiration_timestamp_secs: "1664829100"
//  gas_unit_price: "100"
//  hash: "0x12d9ceaa588b913b1da2b812c9429e010317c25d296543b3f372c55dedaf1056"
//  max_gas_amount: "379"
//  payload: {function: '0x1::coin::transfer', type_arguments: Array(1), arguments: Array(2), type: 'entry_function_payload'}
//  sender: "0xe19578243c9744fb4b7675192ed1c489d64e2aab17bc37cc1446b6e5601d7ce8"
//  sequence_number: "2"
//  signature: {public_key: '0x71c87ca87e89dd7d02d224465cc40a1aafb10a76a91a0857ddac29fe0c3cdf23', signature: '0xf378930929b7b977bbfd0d00c2c56fc128c3790270139ea9…23f2a8c06f367a6c9b88ccd3ef4aebe0966a072cf50fcf807'
// }

Last updated