Martian Wallet Dev Docs
HomeChrome web store
  • Introduction
  • 🏗️Integration
    • Detecting the Provider
    • Establishing a Connection
    • Displaying Your App
  • ⚙️methods
    • Aptos
      • Generate Transaction
      • Sign Transaction
      • Submit Transaction
      • Sign and Submit Transaction
      • Sign Generic Transaction
      • Generate Sign and Submit Transaction
      • Create Collection
      • Create Token
      • Add Network
      • Change Network
      • Get Networks
      • Get Transaction
      • Get Transactions
      • Get Account Transactions
      • Get Account Resources
      • Get Account
      • Get Chain Id
      • Get Ledger Info
    • Sui
      • Sign Transaction Block
      • Sign and Execute Transaction
      • Get Public Key
      • Get Old Address
      • Get Accounts
    • Sign Message
    • Get Network
    • Get Current Blockchain
    • Cancel Submitted Transactions
    • Network Change Event
    • Account Change Event
Powered by GitBook
On this page
  1. methods

Cancel Submitted Transactions

This method can be used to cancel pending transaction approve requests submitted by the origin.

Note: This will cancel all transaction approve requests originated from that tab.

Below is an example code describing the way to cancel submitted trasnactions.

const { status } = await window.martian.cancelSubmittedTransactions();
console.log(status);
// above code output
done
const { status } = await window.martian.sui.cancelSubmittedTransactions();
console.log(status);
// above code output
done
PreviousGet Current BlockchainNextNetwork Change Event

Last updated 2 years ago

⚙️