VN Bot Developer's Guide

1. Register and log in (using MetaMask)

Step 1: Install MetaMask

  • Download and install MetaMask wallet on either your PC or mobile.

  • Create a new wallet account or import an existing wallet.

Step 2: Log in to the VN Bot Developer Platform

  • Click the "Login" button and select "MetaMask Wallet" to log in.

  • Complete wallet signature confirmation and login.

2. Register as a VN Bot developer user

Step 1: Enter the registration page

  • After logging in, it will automatically redirect to the registration page.

  • Fill in the relevant developer information and submit.

Step 2: Fill in developer information

  • Fill in necessary information such as wallet address, developer name, contact information, etc.

Step 3: Complete registration

  • Click the "Register" button to complete the developer account registration.

3. Upload your Bot program

Step 1: Create a new Bot project

  • Click the "Create New Bot" button and fill in the Bot name and description.

  • Select the Bot type (e.g. NFT, GAME_FI, etc.).

Step 2: Upload the Bot program file

  • Upload local program files directly.

Step 3: Submit for review

  • Click 'Submit for Review' and wait for the platform to approve.

4. Manage your Bot program

  • View and manage all the bot programs you upload in the developer backend.

  • Support operations such as updating, deleting, and version management.

5. VN JSBridge API Specification

  • 5.1 - Init JSBridge

    5.2 - Enum

    VNEventName

    • Token: Get token event id

    • UserInfo:get vn user info event id

    5.3 - Constant

    VN_FLUTTER_CHANNEL

    The key of Javascript Channel, Flutter will auto register before page loaded.

    VN_JS_BRIDGE

    The key of callback handlers collection, provided by web application to receive event data.

    VN_JS_BRIDGE_TOKEN_FUNC

    The handler of get token evnet, should register by user when initialize VNJSBridge.

    VN_JS_BRIDGE_USERINFO_FUNC

    The handler of get user info evnet, should register by user when initialize VNJSBridge.

    5.4 - NPM Packag

    https://www.npmjs.com/package/vn-jsbridge-sdk

6. Frequently Asked Questions (FAQ)

  • How can I verify if my developer account has been successfully registered? Ans- After logging in, you can view the "My Account" page.

  • What languages or frameworks can I upload bot programs for? Ans- Supports multiple programming languages and frameworks, such as Node.js, Python, etc.

  • How can I check the running status of my bot? Ans- View statistics, log information, and user feedback in the developer backend.

7. Platform support and community

  • Developer Community: Join the developer community and discuss technical issues.

  • Technical support email: [email protected] .

Last updated