evolutionlandorg / js-sdk

Evolution Land JS SDK
https://evolutionland.js.org
4 stars 5 forks source link
js-sdk web3

A javascript library for interact with blockchain(Ethereum、Tron) and Evolution Land.

Usage

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
    <title>Document</title>
</head>
<body>
<script src="https://github.com/evolutionlandorg/js-sdk/raw/master/./dist/evolutionland.min.js"></script>
<script>
    const evo = new Evolution();

    await evo.createWeb3js()

    // await evo.createTronweb()
    // await evo.createEvolutionLand('tron', 'main');

    // await evo.createEvolutionLand('crab', 'pangolin');
    // const evolandInstance = evo.crabEvoland

    await evo.createEvolutionLand('ethereum', 'ropsten');
    const evolandInstance = evo.ethEvoland

    evo.ethEvoland.buyRing(10000)
</script>
</body>
</html>