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
        • Mainnet Tutorials
          • Getting Started
          • Connecting Wallet & Enabling “One Click Transaction”
          • Deposit & Withdraw Tokens
          • Placing a Market Trade Order
          • Placing a Limit Trade Order
          • Partially & Fully Closing a Live Trade Order
          • Adding Margin to an Open Position
          • Defining Take Profit & Stop Loss
      • Breaking Down Kana Perps
        • Assets Supported
        • Order Types
        • Orderbook
        • 1-Click Trading in Kana Perps
          • Delegation
        • Funding Rate
        • Leverage
        • Margin and Liquidation
        • Hedge Mode
          • Hedging a Short-Term 2-3% Price Decline
          • Dual Positioning for Flexible Profit-Taking
        • Trading Fees
      • Technical Architecture
      • 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
  3. SDK Gateway Functions

Aptos SDK Functions

Last updated 1 year ago

Methods
Description

To add fee payers to the account

To remove fee payers from the account

To get the token balance of the wallet

To get the wallet details

To compute smart wallet address

To get smart wallet address

To create smart wallet

To create a sponsored smart wallet

To change the controller of the account

To recover the account. (Guardians can recover account in case when the controller key is lost)

To add guardians to the smart wallet

To remove guardians from the smart wallet.

To deposit any coin to smart wallet (Doesn't need to register coins before sending when using this method)

To withdraw coins smart wallet. (Only controller can call this method)

To transfer coins to other addresses

To execute swap, stake, crosschain swap

addAccountFeePayers(walletAddress: string, feePayers: string[]): Promise<TransactionResponse>;
removeAccountFeePayers(walletAddress: string, feePayers: string[]): Promise<TransactionResponse>;
getWalletBalance(wallet?: string): Promise<TokenBalance[]>;
getSmartWalletDetails(wallet?: string): Promise<SmartWalletDetails>;
computeAccountAddress(): Promise<string>;    
getAccountAddress(controller?: string): Promise<string>;
createAccount(seed: string, guardians: string[], feePayers: string[]): Promise<TransactionResponse>;
createAccountSponsored(seed: string, guardians: string[], feePayers: string[]): Promise<TransactionResponse>;
changeControllerAccount(walletAddress: string, newController: string): Promise<TransactionResponse>;
recoverAccount(walletAddress: string, newController: string): Promise<TransactionResponse>;
addAccountGuardians(walletAddress: string, guardians: string[]): Promise<TransactionResponse>;
removeAccountGuardians(walletAddress: string, guardians: string[]): Promise<TransactionResponse>;
depositToAccount(walletAddress: string, coinType: string, amount: number): Promise<TransactionResponse>;
withdrawFromAccount(walletAddress: string, coinType: string, amount: number): Promise<TransactionResponse>;
transferFromAccount(walletAddress: string, coinType: string, amount: number): Promise<TransactionResponse>;
executeAptosFunction(wallAddress: string, coinTypes: string[], payload: any[]): Promise<TransactionResponse>;