-
Notifications
You must be signed in to change notification settings - Fork 39
7. Using the SDK
portuu3 edited this page Jun 13, 2023
·
4 revisions
Using yarn:
yarn add @human-protocol/sdk
Using npm:
npm install @human-protocol/sdk
import { useSigner, useChainId } from 'wagmi';
import { EscrowClient, InitClient } from '@human-protocol/sdk';
const { data: signer } = useSigner();
const escrowClient = new EscrowClient(await InitClient.getParams(signer));
const escrowAddress = await escrowClient.createEscrow('', ['']);