Giter VIP home page Giter VIP logo

scanprotocol's Introduction

ScanProtocol

一个通用扫码转账协议,由各钱包共同制定,旨在实现不同钱包间扫码转账

EOS系 转账

{
  protocol: 'ScanProtocol', 
  action: 'transfer',
  address: 'wangruixiwww',  // 转账目标地址
  contract: 'eosio.token',  // 可选,可以指定token,也可以由钱包扫码后自行选择转帐token,需要与字段symbol、precision保持匹配
  symbol: 'EOS',  // 可选,可以指定token,也可以由钱包扫码后自行选择转帐token,需要与字段contract、precision保持匹配
  precision: 4,  // 可选,可以指定token,也可以由钱包扫码后自行选择转帐token,需要与字段contract、symbol保持匹配
  blockchain: 'EOS', // BTC, ETH, EOS, BOS, MEET.ONE 
  amount: '2.4', // 可选  真实转账数量
  memo: 'something to say', // 可选 备注信息
  chainid: 'd5a3d18fbb3c084e3b1f3fa98c21014b5f3db536cc15d08f9f6479517c6a3d86' // 可选 
}

ETH 转账

{
  protocol: 'ScanProtocol', 
  action: 'transfer',
  address: '0x4e9ce36e442e55ecd9025b9a6e0d88485d628a67',  // 转账目标地址
  contract: '0xB8c77482e45F1F44dE1745F52C74426C631bDD52', // ETH不填或为空
  symbol: 'BNB',
  decimal: 18,
  blockchain: 'ETH',
  amount: '2.4' // 可选  真实转账数量
}

比较通用字段

  • 后续补充的其他公链,尽量保持一致性
{
  protocol: 'ScanProtocol', 
  action: 'transfer',
  address: '', 
  contract: '',
  symbol: '',
  blockchain: '',
  amount: '' // 可选  真实转账数量
}

线下支付协议

{
  "protocol":"pay",
  "name":"西贝莜面村",
  "blockchain":"BOS"
  "contract":"eosio.token",  //可选
  "address":"accountuser",
  "symbol":"BOS",
  "memo":"",    //可选
  "amount":"10"  //可选   
}

scanprotocol's People

Contributors

chendatony31 avatar fubin0083 avatar michaellee123 avatar noprom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.