Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TrueWallet/js-sdk
https://github.com/TrueWallet/js-sdk
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/TrueWallet/js-sdk
- Owner: TrueWallet
- License: gpl-3.0
- Created: 2023-09-04T18:14:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-16T22:39:44.000Z (5 months ago)
- Last Synced: 2024-07-18T04:04:00.351Z (4 months ago)
- Language: TypeScript
- Size: 231 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-account-abstraction - TrueWallet/js-sdk
README
# TrueWallet SDK
A JavaScript SDK for ERC-4337 implementation.Check the [documentation](https://docs.true-wallet.io/) for more information.
## Integration
Before starting you need to create an account in the TrueWallet [dashboard](https://dashboard.true-wallet.io). Create a project inside and copy the API Endpoint.## Installation
Install the required packages for initializing the TrueWallet SDK.*Tested with Angular, React, and Node.js v18 and higher*
```shell
npm install @truewallet/sdk
```## Integration Example
Before initialisation your first wallet, create endpoint url in the [dashboard](https://dashboard.true-wallet.io).To check all available methods, please refer to the [authentication](/sdk/authentication).
### Initialisation with salt:
```javascript
import {initTrueWallet} from '@truewallet/sdk';/** Initialisation with salt */
const trueWallet = await initTrueWallet({
signer: {
type: 'salt',
data: ['{{YOUR_UNIQUE_STRING_FOR_PRIVATE_KEY_GENERATION}}']
},
bundlerUrl: '{{ENDPOINT_URL_FROM_DASHBOARD}}',
// Optional, bundlerUrl is used when rpcProviderUrl is not provided
// rpcProviderUrl: '{{ENDPOINT_URL_FROM_DASHBOARD}}',
});
```