@coin98-com/connect-sdk
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    Coin98 Connect

    NPM JavaScript Style Guide

    Install

    npm install --save @coin98-com/connect-sdk

    Usage

    Dapps Website Connection Example

    import { Client, Chain } from '@coin98-com/connect-sdk'
    
    const client = new Client()
    
    
    client.connect(Chain.fantom, {
      logo: "Dapps Logo URL",
      name: "Dapps Name",
      url: "Dapps URL"
    })

    React Native Connection (Without Expo) Example

    import { Client, Chain } from '@coin98-com/connect-sdk/dist/native'
    
    const client = new Client()
    
    client.connect(Chain.fantom, {
      logo: "Dapps Logo URL",
      name: "Dapps Name",
      callbackURL: "Application URI Schema"
    })

    Common API Request

    // Common API
    client.request({
      method: "<Your Request Method Here>",
      params: [],
      redirect: "(Optional), Callback URL after handle request"
    }): Promise<{ result, error }>

    Currently supported connection for EVM, Solana, Near, Cosmos

    Keywords

    none

    Install

    npm i @coin98-com/connect-sdk

    DownloadsWeekly Downloads

    40

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    40.7 kB

    Total Files

    15

    Last publish

    Collaborators

    • coin98_labs