@coin98-com/connect-sdk
v1.1.0
Published
Coin98 Connect SDK - The leading multi-chain wallet and DeFi gateway.
Downloads
62
Readme
Coin98 Connect
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"
})
Lite without any handler (Example With React Native)
import { Client, Chain } from '@coin98-com/connect-sdk/dist/lite'
import { Linking } from 'react-native'
const client = new Client({
callback(cUrl){
Linking.openURL(cUrl);
}
})
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