入门
jcc_cloud
说明
jcc_cloud浏览器服务是基于SWTC浏览器原生接口的封装
安装
sh
npm install --save @jccdex/cloudnpm install --save @jccdex/cloudsh
pnpm add @jccdex/cloudpnpm add @jccdex/cloudsh
yarn add @jccdex/cloudyarn add @jccdex/cloud类签名
typescript
class JCCDexExplorer {
constructor(baseUrl: string, customFetch?: unknown) {}
}class JCCDexExplorer {
constructor(baseUrl: string, customFetch?: unknown) {}
}使用
javascript
import { JCCDexExplorer } from "@jccdex/cloud"
const explorer = new JCCDexExplorer('https://swtcscan.jccdex.cn')
explorer.fetchBalances({
uuid: new Date().getTime()
address: "jQDd...rwmy"
})import { JCCDexExplorer } from "@jccdex/cloud"
const explorer = new JCCDexExplorer('https://swtcscan.jccdex.cn')
explorer.fetchBalances({
uuid: new Date().getTime()
address: "jQDd...rwmy"
})javascript
const { JCCDexExplorer } = require("@jccdex/cloud")
const explorer = new JCCDexExplorer('https://swtcscan.jccdex.cn')
explorer.fetchBalances({
uuid: new Date().getTime()
address: "jQDd...rwmy"
})const { JCCDexExplorer } = require("@jccdex/cloud")
const explorer = new JCCDexExplorer('https://swtcscan.jccdex.cn')
explorer.fetchBalances({
uuid: new Date().getTime()
address: "jQDd...rwmy"
})