0.5.0 • Published 1 month ago

@anima-protocol/personhood-sdk-react v0.5.0

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

personhood-sdk-react

Personhood SDK

Visit anima.io | Read the Anima documentation

enter image description here

Install

With Yarn

yarn add @anima-protocol/personhood-sdk-react

With NPM

npm install @anima-protocol/personhood-sdk-react

Usage

import AnimaPersonHood from '@anima-protocol/personhood-sdk-react'

...
<AnimaPersonHood
    address={WALLET_ADDRESS}
    sessionId={SESSION_ID}
    onShared={(e) => { console.log(e) } }
    sign={async (data) =>  await YOUR_WALLET.sign(data)}
/>
...

Attributes list

Attribute nameAttribute typeDefaultRequiredDescription
sessionIdstring''YSession can be referred as a customer verification session. More info
addressstring''YYour user account Web3 wallet address
chainIdstring'1'NYour Web3 wallet chain id
sign(data: string) => voidundefinedYThis event is triggered when the user wants to sign their proof to share it or create an anima
onShared(data: boolean) => voidundefinedYThis event is triggered when the user has shared their proof. The function has one parameter a boolean is True when the user is successfull onboarded

Examples

React

Edit react

License

Apache 2.0 © Anima

0.5.0-alpha.0

1 month ago

0.5.0

1 month ago

0.4.7

3 months ago

0.4.5

10 months ago

0.4.6

10 months ago

0.4.4

11 months ago

0.4.1

11 months ago

0.4.3

11 months ago

0.4.2

11 months ago

0.3.12

1 year ago

0.3.11

1 year ago

0.4.0

1 year ago

0.3.9

1 year ago

0.3.10

1 year ago

0.2.0-rc4

1 year ago

0.2.0-rc5

1 year ago

0.2.0-rc6

1 year ago

0.2.0-rc1

1 year ago

0.2.1-rc8

1 year ago

0.2.1-rc7

1 year ago

0.3.0

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.8

1 year ago

0.3.7

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.2.2

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.1.1-rc1

1 year ago

0.1.1

1 year ago

0.1.0-rc10

1 year ago

0.1.0-rc9

1 year ago

0.1.0-rc8

1 year ago

0.1.0-rc7

1 year ago

0.1.0-rc6

1 year ago

0.1.0-rc5

1 year ago

0.1.0-rc4

1 year ago

0.1.0-rc3

1 year ago

0.1.0-rc2

1 year ago

0.1.0-rc1

1 year ago

0.1.0-rc0

1 year ago