Developer (English)
  • Get Started
  • Wallet
    • ​Ready to start
    • Mobile SDK
      • iOS
      • Android
    • EOS MiniWallet SDK
      • iOS
      • Android
    • ​Pull up wallet with DeepLink
    • JS-SDK
    • EOS resource payment
    • Debug DApp
    • Clear Cache
  • Extension Wallet
    • Guide
      • Introduction
      • Getting Started
      • Common Terms
      • Initialize the DApp
      • Access account
      • Send transaction
    • API Reference
      • Ethereum Provider API
      • Tron Provider API
      • RPC API
      • Signing Data
  • QRCode Protocol
    • Dynamic QRCode
    • EVM network
    • TRON
    • EOSIO
    • Solana
    • BTC
  • TIP Protocol
  • Wallet Connect
  • Token
    • Token price display support
    • How to submit token
    • How to Submit a Token Logo
    • FAQ
  • DApp
    • How to Submit DApps
    • FAQ
  • Network
    • Blockchain Unique Identifier
    • Supported Chains
      • Transaction Data
    • New Blockchains
      • Lite add blockchain
      • Basic support introduction and demonstration
      • Adding Advanced blockchain
      • Adding custom blockchain
  • FAQ
Powered by GitBook
On this page
  • Extension Protocol Support
  • For detailed document of tp-js-sdk, please refer to: https://github.com/TP-Lab/tp-js-sdk
  • Commonly used tp-js-sdk interface
  1. Wallet

JS-SDK

Previous​Pull up wallet with DeepLinkNextEOS resource payment

Last updated 10 months ago

Extension Protocol Support

TokenPocket mobile app is already compatible with Metamask(ETH), Unisat(BTC), TronLink(TRON), Phantom(Solana), Scatter(EOS) , iWallet(IOST) and TonConnect(TON) protocols.

If your DApp already supports extension wallet protocols such as MetaMask, TronLink, Phantom, Scatter, iWallet,and TonConnect, you can run it directly in the DApp browser of TokenPocket without any modification.

For details please refer to:

From Android 2.1.8 and iOS 2.3.8 ,TokenPocket mobile app is already compatible with TonConnect(TON).

How to use Nostr DAPP in TokenPocket, Please refer to:

In addition, we also provide tp-js-sdk. The SDK only takes effect in the TokenPocket mobile Dapp browser, and provides interfaces such as full-screen display, saving pictures, and rotating the screen.

To debug Dapp in the TP wallet, you can turn on the developer mode. How to open: Open Wallet -> My -> About Us -> Quickly tap the TP icon at the top for 8 times -> Click on the developer mode at the bottom -> Developer mode

Commonly used tp-js-sdk interface

Get app information

tp.getAppInfo()

Scan code

tp.invokeQRScanner().then(console.log)

"abcdefg"

Set DApp to full screen display

tp.fullScreen({
   fullScreen: 0
})

For detailed document of tp-js-sdk, please refer to:

For more interfaces, please check the detailed document:

https://github.com/TP-Lab/tp-js-sdk
https://github.com/TP-Lab/tp-js-sdk
https://github.com/TP-Lab/tp-js-sdk
About NostrTokenPocket(English)
Logo