This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"address": "08c7bdf66f0ac29e154e9c05a8c00cc661f35a63a74d6f63dcc290c0d70e18c3" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"address": "08c7bdf66f0ac29e154e9c05a8c00cc661f35a63a74d6f63dcc290c0d70e18c3", | |
"balance": "100" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function createWallet() { | |
const { LibraWallet } = require('kulap-libra') | |
// Generate an account | |
const wallet = new LibraWallet() // create new wallet with BIP39 | |
const account = wallet.newAccount() // Derivation paths to "LIBRA WALLET: derived key$0" | |
return { | |
address: account.getAddress().toHex(), // Get full address | |
mnemonic: wallet.config.mnemonic // Your super secret key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { LibraWallet, LibraClient, LibraNetwork } = require('kulap-libra') | |
const BigNumber = require('bignumber.js') | |
async function createWallet() { | |
// Generate an account | |
const wallet = new LibraWallet() | |
const account = wallet.newAccount() | |
return { | |
address: account.getAddress().toHex(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { LibraWallet, LibraClient, LibraNetwork } = require('kulap-libra') | |
const axios = require('axios') | |
const BigNumber = require('bignumber.js') | |
async function createWallet() { | |
// Generate an account | |
// const wallet = new LibraWallet() | |
const wallet = new LibraWallet({ | |
mnemonic: 'order curtain live pact market tissue rally run dolphin shuffle convince napkin spot main suffer segment excite toilet ceiling cute master six agent narrow' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { LibraWallet, LibraClient, LibraNetwork } = require('kulap-libra') | |
const BigNumber = require('bignumber.js') | |
async function createWallet() { | |
// Generate an account | |
const wallet = new LibraWallet() | |
const account = wallet.newAccount() | |
return { | |
address: account.getAddress().toHex(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { LibraWallet, LibraClient, LibraNetwork } = require('kulap-libra') | |
const BigNumber = require('bignumber.js') | |
async function createWallet() { | |
// Generate/get an account | |
// const wallet = new LibraWallet() | |
const wallet = new LibraWallet({mnemonic: 'finish topple cannon hammer eyebrow disorder enter reject long then tragic hammer diagram spy mom weapon amateur cup census sketch review consider galaxy foam'}) | |
const account = wallet.newAccount() | |
return { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --location --request POST "https://libraservice2.kulap.io/createWallet" \ | |
--header "Content-Type: application/json" \ | |
--data "{ | |
\"minting\": true | |
}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
*Submitted for verification at Etherscan.io on 2017-07-05 | |
*/ | |
pragma solidity ^0.4.11; | |
/** | |
* Math operations with safety checks | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.6.0; | |
interface ERC20Basic { | |
// uint public totalSupply; | |
function balanceOf(address who) external view returns (uint); | |
function transfer(address to, uint value) external; | |
event Transfer(address indexed from, address indexed to, uint value); | |
} | |
contract NattaponV2 is ERC20Basic { |
OlderNewer