1.0.2 • Published 1 year ago
dragonlabz-implementical-web3-sdk v1.0.2
Example of how to use the web3 sdk
Installation
npm
npm install dragonlabz-implementical-web3-sdk
yarn
yarn add dragonlabz-implementical-web3-sdk
Usage
ES6 usage
import Web3Sdk from 'dragonlabz-implementical-web3-sdk';
const web3 = Web3Sdk();
useEffect(() => {
web3.getOffChainSignature([1,2,3]).then(console.log).catch(console.log);
}, []);
Web usage
<script type="module">
import Web3Sdk from './web_usage.js';
const web3Sdk = new Web3Sdk();
web3Sdk.getOffChainSignature([1, 2, 3]).then((result)=> console.log('offchain signature: ', result));
</script>