Skip to content

7. Using the SDK

portuu3 edited this page Jun 13, 2023 · 4 revisions

Typescript

Installation

Using yarn:

yarn add @human-protocol/sdk

Using npm:

npm install @human-protocol/sdk

Escrow

Create Escrow

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('', ['']);
Clone this wiki locally