core-js
tweed javascript SDK
Fully compatible with JavaScript and TypeScript
Install
Install by package manager, install the paytweed/core-js from the npm public registry.
Setup
Ensure you have an application set up on the tweed dashboard
Import the TweedClient
from the tweed core-js SDK initial using create()
function.
Use the from the management console.
Connect Users
Use the connect()
function to handle user sign-ups and sign-ins. When a user signs up, a wallet is created for them behind the scenes and becomes immediately available upon completion of the sign-up process. To modify the login options, simply visit the tweed dashboard.
Logout users
To logout users from the application, call the logout function.
Ethereum Provider | EIP-1193
The Ethereum Provider acts as a bridge for Web3 libraries designed for EVM chains, such as EthersJS and Web3JS. For example, integrating Tweed with a dApp built using EthersJS is straightforward and requires only three lines of code.
implements the chainChanged
functionality to support the EVMs that are supported by the tweed infrastructure.
Set palette mode
The tweed widgets SDK offers both dark and light modes. You can select which one to use with this function.
Last updated