0.2.6 • Published 1 year ago

@marblexyz/wagmi-connector v0.2.6

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

Marble Wagmi Connector

This is a connector desgined to help integrate the Marble Wallet SDK with the wagmi React Hook library.

What is Marble?

Marble Wallet is a self-custodial wallet that does not require extensions or seed phrases. Developers can use Marble Wallet to build seamless onboarding experiences for their users, similar to the ones provided by Coinbase or Reddit's self-custodial wallet.

Developers can offer wallet-onboarding, a fiat on-ramp, and pre-built UI components to their users, all in a single package. Marble Wallet can improve onboarding for users to your app by up to 90%.

Advantages of Marble Wallet:

  • Email-based authentication. No seed phrases, extensions, or apps required. Marble runs in the browser.
  • Embedded fiat on-ramp.
  • Pre-built and highly customizable UI components.
  • Out-of-the-box support for WalletConnect.
  • ... and more!

What is Wagmi?

wagmi is a collection of React Hooks containing everything you need to start working with Ethereum. wagmi makes it easy to "Connect Wallet," display ENS and balance information, sign messages, interact with contracts, and much more — all with caching, request deduplication, and persistence.

Check out wagmi's documentation for more information.

Installation Instructions

Setting up the Marble Wagmi Connector is easy. First, install the package:

npm install --save @marblexyz/wagmi-connector
# or
yarn add @marblexyz/wagmi-connector

Then, import the MarbleWalletConnector class and instantiate it with your Marble Client Key:

import MarbleWalletConnector from "@marblexyz/wagmi-connector";

const marbleConnector = new MarbleWalletConnector({
  options: {
    clientKey: "YOUR_CLIENT_KEY",
  },
});

const { connect: connectMarble } = useConnect({
  connector: marbleConnector,
});

Finally, use the connectMarble function to connect to Marble:

const { connect: connectMarble } = useConnect({
  connector: marbleConnector,
});

const connect = async () => {
  try {
    await connectMarble();
  } catch (error) {
    console.error(error);
  }
};
0.2.1

1 year ago

0.2.0

2 years ago

0.2.6

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.1.0

2 years ago

0.1.1

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago