Coder Social home page Coder Social logo

blocto-integration's Introduction

Blocto Integration

Blocto is the easiest dapp browser ever created. With Blocto you can get access blockchain technology easily. We use meta-transaction to pay gas fee for users, so users can start trying your dapp even they don't have any cryptocurrency.

Download

Web3 Provider

Blocto injects a global API into websites at window.bloctoProvider and window.{network} at the same time. Currently, Blocto suppports networks:

  • ethereum
  • tangerine

If user is on Ethereum network, the provider will be injected at window.bloctoProvider and window.ethereum.

Sign Message

The api to call signing message is not different with other private key based wallets. The only difference is that the return value contains multiple signatures because Blocto is a smart contract based wallet. Therefore, please follow EIP-1654 to verify the signature. There are some open-source implementations of EIP-1654 signature verification: go js.

Send Transaction

You don't need to change anything. If it works with MetaMask, it will also work on Blocto.

Send Batch Transaction

Please take a look at web3 doc. For general web3 provider, BatchRequest send all transactions simultaneously. For Blocto provider, it will combine multiple transactions (in order) into ONE transaction. If one of transactions fails, all transactions will fail. This method can also save a lot of gas.

If you would like to know more technical details, please see the smart contract code: Etherscan

Deep Linking

Open Blocto dapp browser with a url and blockchain network

  • url: dapp website url
  • blockchain: optional parameter. Currently, Blocto suppports networks:

https://blocto.app/link?url=https://knightstory.io&blockchain=ethereum

We will automatically detect that user is on Android/iOS/Web and show different CTA button on the webpage.

Push Notification

Read more on PushNotification.

Reward system

Read more on RewardSystem.

Contact Us

If you have any questions, please feel free to contact us: [email protected]

blocto-integration's People

Contributors

scottphc avatar wubobo avatar

Watchers

 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.