0.0.16 • Published 10 months ago

eas-react v0.0.16

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

EAS REACT SDK

EAS React SDK exposes a set of React components that enable schema creation and attestation. These components abstract away the complexities of interacting with the EAS SDK, providing a smooth and efficient development experience.

Installation

To install the EAS React SDK, run the following command:

npm install eas-react

Usage

To use the EAS React SDK in your React application, import the components you need from the eas-react package and integrate them into your components.

EasCreateSchema

import { EasCreateSchema } from "eas-react"

function App() {
  return (
    <div>
      <EasCreateSchema network='sepolia'
          signer={signer!}
          onSchemaCreated={(schemaId) => {
            console.log('Schema created:', schemaId);
            // handle schema creation here
          }}
        />
    </div>
  )
}

EasAttest

import { EasAttest } from "eas-react";

function App() {
  return (
    <div>
      <EasAttest
          text="Attest this Schema"
          schemaId="<SCHEMA_ID>"
          network="sepolia"
          signer={signer!}
          onAttestationComplete={(attestation) => {
            console.log('Attestation complete', attestation);
            // handle attestation here
          }}
        />
    </div>
  )
}
0.0.10

10 months ago

0.0.11

10 months ago

0.0.12

10 months ago

0.0.13

10 months ago

0.0.14

10 months ago

0.0.15

10 months ago

0.0.9

10 months ago

0.0.16

10 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago