@logion/crossmint
TypeScript icon, indicating that this package has built-in type declarations

0.1.32 • Public • Published

Logion Crossmint SDK

This project provides some utility classes enabling the use of the Crossmint wallet with a logion client.

Note that only message signature is supported. So you will be able to authenticate and interact with logion off-chain services, but not submit extrinsics to the logion chain.

Usage

Install package @logion/crossmint with your favorite package manager and start siging content using the extension.

import { CrossmintSigner } from '@logion/crossmint';

const crossmint = new CrossmintEVMWalletAdapter({
    apiKey: "YOUR_API_KEY",
    chain: BlockchainTypes.ETHEREUM, // Only Ethereum is supported for the moment
});
  
const address = await crossmint.connect();
if(!address) {
    throw new Error("Unable to connect to Crossmint");
}

const client = LogionClient.create(...);
const signer = new CrossmintSigner(crossmint);
let authenticatedClient = await client.authenticate([ address ], signer);

Readme

Keywords

Package Sidebar

Install

npm i @logion/crossmint

Weekly Downloads

7

Version

0.1.32

License

Apache-2.0

Unpacked Size

3.58 kB

Total Files

6

Last publish

Collaborators

  • benoitdevos
  • gdethier