Skip to content

波场 DAPP 开发文档

H5 DAPP 开发

TronWeb API

麦子钱包兼容 TronWeb (web3) API 协议,并提供与 tronlink,tronapy 同样功能

TronWeb API 官方文档

https://github.com/TronWatch/TronWeb

Tron DAPP 开发示例

https://github.com/mathwallet/math-trxjs

https://github.com/kookiekrak/TronLink-Demo-Messages

使用 TronWeb 接口的应用

TronBet

TRX Market

Native DAPP 开发

SimpleWallet 协议

您可以通过麦子钱包定制版 SimpleWallet 协议进行:

Native APP 跳转麦子钱包支付或合约签名。

协议标准请查看:

https://github.com/mathwallet/SimpleWallet

注意:transferReq.blockchain 参数请传 tron

SimpleWallet API 开发示例

麦子钱包团队开发了一套APP端调起麦子钱包进行支付的示例代码:

iOS – https://github.com/mathwallet/MathWalletSDK-iOS

Android – https://github.com/mathwallet/MathWalletSDK-Android

网页 DAPP 打开麦子钱包支付

支持手机浏览器网页通过链接的形式打开麦子钱包进行支付和合约签名。接口基于 SimpleWallet 协议麦子拓展版本:

https://github.com/mathwallet/SimpleWallet

示例DEMO和代码:

http://developer.mathwallet.org/sample12/

https://github.com/mathwallet/math-eosjs/tree/master/eos/sample12