Rise Wallet
  • 🙌Introduction
    • Self-Custody
    • Best Practices
    • Bigger Picture
  • Features
    • ✨Active on Devnet
  • Integrations
    • ⛓️Integrate Rise Wallet
      • With the Wallet Adapter
      • Without the Wallet Adapter
        • Detecting the Provider
        • Establishing Connection
        • Sending Transactions
        • Signing Transactions
        • Signing Messages
    • 🎭Profile Picture Protocol
      • Get a Wallet's Profile Picture
      • Set a NFT as a Profile Picture
      • Clear Profile Picture
    • ⚡Rise Notifications
      • Sending Notifications
      • User Perspective
        • Notification Center
        • Subscription Management
      • API Endpoints
        • Broadcast Endpoint
        • Unicast Endpoint
        • List Casts Endpoint
        • View Cast Endpoint
        • Check Key Subscription Status
Powered by GitBook
On this page
  1. Integrations
  2. Integrate Rise Wallet
  3. Without the Wallet Adapter

Signing Transactions

Once an application is connected to the Rise Wallet via connect method, an app can create a signed transaction using window.rise.signTransaction()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 sign a transaction.

const payload = {
      type: 'entry_function_payload',
      function: '0x1::coin::transfer',
      type_arguments: ['0x1::aptos_coin::AptosCoin'],
      arguments: ['0x0f024fc664bfe474fd0cfe547ddea5a99b46868c2c331e9e29319b117fdb1b6a', 123123]
    };
const signedTransaction = await window.rise.signTransaction(payload);
console.log(signedTransaction)
// {
//  publicKey: "0x71c87ca87e89dd7d02d224465cc40a1aafb10a76a91a0857ddac29fe0c3cdf23",
//  signature: Uint8Array(318) ...
// }
PreviousSending TransactionsNextSigning Messages

Last updated 2 years ago

⛓️