1.0.2 • Published 1 year ago

dragonlabz-implementical-web3-sdk v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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>

License

MIT

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago