Giter Club home page Giter Club logo

anyweb-js-sdk's Introduction

AnyWeb JS SDK

AnyWeb JS SDK 是为 Anyweb 开发的SDK,提供了一套简单的API,方便开发者快速将 Dapp 接入到 AnyWeb 中实现便捷的钱包服务。

Features:

  • 支持在移动端和PC端调用钱包服务
  • 支持网页内和跳转App调用钱包服务
  • 支持多链钱包服务
  • 支持 热钱包冷钱包
  • 简单易用快速上手

支持性

已支持

  • Conflux

待支持

  • Conflux EVM Space

Docs

前往 官网文档 了解更多

开始之前

请先在 AnyWeb开放平台 注册账号获取到AppId等相关信息。

安装

npm 安装

$ npm install --save @idealight-labs/anyweb-js-sdk

引用方法

ESM

import { Provider } from '@idealight-labs/anyweb-js-sdk';

const provider = new Provider({
  logger: console,
  appId: '从open.anyweb.cc拿到的AppId',
});

logger可以传入null来禁用日志打印,或传入自定义的日志工具,默认为window.console

UMD

anyweb-js-sdkdist 目录中进行引用 umd 版本.

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@idealight-labs/anyweb-js-sdk@latest/dist/anyweb-js-sdk.umd.min.js"></script>

<script type="text/javascript">
  const provider = new window.AnyWeb({
    logger: console,
    appId: '从open.anyweb.cc拿到的AppId'
  })
</script>

anyweb-js-sdk's People

Contributors

geyang-git avatar iamyoki avatar littleor avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.