🇺🇲
Broearn Wallet Documentation
  • 🧬OVERVIEW
    • 💡What is Broearn Wallet?
    • 🛡️Security
    • 📋Available Networks
      • Parallel Universe Chain
      • Bitcoin
      • Ethereum
      • BNB Chain
      • Tron
      • Solana
      • OKX Chain
      • Optimism
      • Fantom
      • Ethereum Classic
      • Polygon
      • Avalanche
  • 🛸PUT
    • Extension & in Broearn app
      • Events
        • Disconnect
        • Accounts Changed
    • Detecting the Provider
  • Establishing a Connection
  • PROVIDER METHODS
    • Connect
    • Disconnect
    • SignMessage
    • SignTransaction
    • SignAllTransactions
    • SignAndSendTransaction
  • 🔹ETHEREUM & EVM
    • Getting Started with Ethereum and EVM
    • Detecting the Provider
    • Establishing a Connection
    • Sending a Transaction
    • Signing a Message
    • Provider API Reference
      • Properties
        • eth_chainId
        • eth_networkVersion
        • eth_selectedAddress
        • _events
        • _eventsCount
      • Events
        • Connect
        • Accounts Changed
        • Disconnect
        • Chain Changed
      • Methods
        • isConnected
        • request
  • Demo Applications
  • 📜ERRORS
  • ADVANCED
    • Auth
      • Web Javascript demo
      • Web Java
      • Web Golang
      • Web PHP
  • COMMUNITY AND SUPPORT
    • 🐦Twitter
    • ✈️Telegram
    • 🎮Discord
Powered by GitBook
On this page
  • Query String Parameters
  • Returns
  1. PROVIDER METHODS

SignTransaction

PreviousSignMessageNextSignAllTransactions

Last updated 1 year ago

The easiest and most recommended way to send a transaction is via . It is safer for users, and a simpler API for developers, for Broearn Wallet to submit the transaction immediately after signing it instead of relying on the application to do so.

However, it is also possible for an app to request just the signature from Broearn Wallet. Once signed, an app can submit the transaction itself .

Query String Parameters

  • window.bw.put.signTransaction({
        "transaction": "...", // serialized transaction, base58 encoded
        "session": "...", // token received from connect-method
    })
    • transaction (required): The transaction that Broearn wallet will sign, serialized and encoded in base58.

    • session (required): The session token received from the method.

Returns

Approve

  • data: An encrypted JSON object.

    // content of decrypted `data`-parameter
    {
        transaction: "...", // signed serialized transaction, base58 encoded
    }
    • transaction: The signed, serialized transaction that is base58 encoded. Broearn wallet will not submit this transactions.

{
  "errorCode": "...",
  "errorMessage": "..."
}

Reject

An errorCode and errorMessage as query parameters. Please refer to for a full list of possible error codes.

❌
✅
SignAndSendTransaction
Connect
Errors