Socket
Book a DemoInstallSign in
Socket

minter-js-web3-sdk

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minter-js-web3-sdk

JS Web3 SDK for Minter Blockchain

latest
Source
npmnpm
Version
0.0.15
Version published
Maintainers
1
Created
Source

minter-js-web3-sdk

NPM Package License: MIT

Please note that this package is under active development and is subject to change.

Install

npm install minter-js-web3-sdk

Usage

// - calculation of smart-wallet address
// - methods to build, sign, and broadcast combined tx from multiple internal txs
import useWeb3SmartWallet from 'minter-js-web3-sdk/src/composables/use-web3-smartwallet.js';

// - calculates reward amount (in erc20 tokens or native coin) for relay service
// - build internal txs to swap erc20 token to native coin and send it to relay service as reward
import useWeb3SmartWalletWithRelayReward from 'minter-js-web3-sdk/src/composables/use-web3-smartwallet-relay-reward.js';

// swap tokens via 1inch, makes estimation and build internal swap tx
import useWeb3SmartWalletSwap from 'minter-js-web3-sdk/src/composables/use-web3-smartwallet-swap.js';

Examples

Transfer ERC20 token and pay fee with it https://github.com/MinterTeam/honee-app-web/blob/dev/components/ActionSendWeb3.vue

Swap via 1inch (spend on Minter and receive on Minter) https://github.com/MinterTeam/honee-app-web/blob/master/components/ActionSwapWeb3.vue

Keywords

minter

FAQs

Package last updated on 17 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts