Kana Labs
  • Getting Started
    • Welcome to Kana Labs
  • CROSS CHAIN SWAPS
    • AMM DEX Aggregator
  • INTEGRATE KANA WIDGET
    • Kana Widget
      • Install Widget
      • Configure Widget
      • Configure Aptos Keyless
  • Web3 Aggregator SDK
    • Web3 Aggregator SDK
      • Installation
      • SameChain
      • Cross Chain Swap
      • Aggregator API's
  • SPOT TRADING PLATFORM
    • Kana Trade
      • API Docs
  • PERPETUAL FUTURES
    • Kana Perps
      • Getting Started
        • Mint Tokens on Testnet
      • Breaking Down Kana Perps
        • Assets Supported
        • Order Types
        • Orderbook
        • Funding Rate
        • Leverage
        • Margin and Liquidation
        • Hedge Mode
          • Hedging a Short-Term 2-3% Price Decline
          • Dual Positioning for Flexible Profit-Taking
        • Trading Fees
      • API Docs
        • Installation Setup
        • Kana Perps Typescript REST API
        • Kana Perps Python Websocket API
        • Kana Perps Python REST API
        • Steps to place an order
        • Perps Contract Error Codes
        • Websocket Connection
        • Supported Markets
  • SPOT & PERP APIs
    • Trading APIs
      • Kana Trade API
      • Kana Perps API
        • Installation Setup
        • Example setup functions
        • Kana Perps Typescript REST API
        • Kana Perps Websocket API
        • Kana Perps Python Websocket API
        • Kana Perps Python REST API
        • Steps to place an order
  • PAYMASTER SERVICE
    • Kana Paymaster For Aptos and Supra
      • How it works?
      • How to Register?
      • Deposit Allowance
      • Manage Users
      • Paymaster SDK Tutorial (Typescript)
      • Paymaster API
      • Module & Function Whitelist
      • Subscription - Coming soon
      • FAQS
  • PERPETUAL OPTIONS
    • OPerps
  • Tokenomics & Governance
    • Kana Labs Tokenomics
  • REWARDS & REFERRAL PROGRAM
    • Rewards Program
      • Reward Program Season 1
      • Reward Program Season 2
      • How to Keep Track of Your Points?
      • Where to find the Missions Dashboard?
  • Referral Program
    • How to Generate Referral Link? (For the Referrer)
    • How to map your wallet to the invite IDs? (For the invited users)
Powered by GitBook
On this page
  1. Smart Wallet SDK
  2. Mirai SDK - The EVM Smart Wallet & Paymaster

Paymaster

Paymaster is a system designed to allow a company or organization to cover the transaction fees, commonly known as gas fees, for a whitelisted users.

Last updated 1 year ago

  1. User Transaction Initiation: A whitelisted user initiates a transaction on the blockchain but does not supply the gas fee.

  2. Paymaster Intervention: The Paymaster account detects this transaction. It verifies if the user is on the whitelist and the transaction is valid.

  3. Gas Fee Payment: If the conditions are met, the Paymaster uses its funds to pay the gas fee required for the transaction.

  4. Transaction Completion: The transaction is processed on the blockchain, thanks to the Paymaster covering the cost.

The main advantage of the Paymaster feature is that it removes the burden of gas fees from individual users, especially beneficial in scenarios where users might not have the means or wish to spend their own cryptocurrency on transaction fees. This system is particularly advantageous for companies looking to onboard new users who are unfamiliar with blockchain technology or for applications aiming to provide a more user-friendly experience. By covering transaction fees, companies can encourage more frequent and frictionless interactions on their platform.

Methods
Description

To add a whitelist using the specified accountAddress and chainId.

To check a whitelist using the specified accountAddress, sponsorAddress and chainId.

To deposit using the specified amount and chainId.

To get a sponsor balance using the specified sponsorAddress and chainId.

To remove a whitelist using the specified accountAddress, sponsorAddress and chainId.

 * @param apiKey - Contact kanalabs to obtain the API key for authentication.
addWhitelist(accountAddress: string, chainId: number): Promise<any>
checkWhitelist(accountAddress: string, sponsorAddress: string, chainId: number)
deposit(amount: string, chainId: number)
getSponsorBalance(sponsorAddress: string, chainId: number): Promise<any>
removeWhitelist(accountAddress: string, chainId: number)
How gas fees is sponsored using Paymaster in Mirai Smart Wallet