Package Exports
- @web3-wallet-selector/wallet-utils
- @web3-wallet-selector/wallet-utils/index.cjs
- @web3-wallet-selector/wallet-utils/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@web3-wallet-selector/wallet-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@web3-wallet-selector/wallet-utils
This is the Wallet Utils package for Utility Wallet Selector.
Installation and Usage
The easiest way to use this package is to install it from the NPM registry, this package requires web3-api-js
v1.0.0 or above:
# Using Yarn
yarn add web3-api-js
# Using NPM.
npm install web3-api-js
# Using Yarn
yarn add @web3-wallet-selector/wallet-utils
# Using NPM.
npm install @web3-wallet-selector/wallet-utils
Then use it in your custom wallet integration:
import { createAction, signTransactions } from "@web3-wallet-selector/wallet-utils";
const action = createAction({
type: "Transfer",
params: {
deposit: "10000000000000000000000",
},
});
const signedTransactions = await signTransactions(
[{ signerId, receiverId, actions }],
signer,
options.network
);
License
This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0).