example

lj_web3_tron_sdk support dapp load

Getting Started

lj_web3_tron_sdk: ^1.0.0

Usage

引入方式

import 'package:lj_web3_tron_sdk/lj_web3_tron_sdk.dart';
import 'package:lj_web3_tron_sdk/src/models/chain_model.dart';

web3_dapp_browser 具体实现

声明

// 钱包
  Web3Model token = Web3Model();

  // 代币
  ChainModel chain = ChainModel();

创建助记词


Web3TronSDK.generateMnemonic();

创建区块链钱包


Web3TronSDK.getToken(token.mnemonic, type: ChainTypes.eth);

获取对应链的对象


await Web3TronSDK.getChainModel(ChainTypes.eth);

Additional information

初始效果

创建效果

Libraries

lj_web3_tron_sdk
Support for doing something awesome.