getContract
getContract(
options):object
Defined in: packages/synapse-core/src/pdp-verifier/index.ts:57
Get the PDP Verifier contract
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options | OptionsType | getContract.OptionsType |
Returns
Section titled “Returns”object
Contract getContract.OutputType
abi:
Abi| readonlyunknown[]
address
Section titled “address”address:
`0x${string}`
Example
Section titled “Example”import { getContract } from '@filoz/synapse-core/pdp-verifier'import { calibration } from '@filoz/synapse-core/chains'import { createPublicClient, http } from 'viem'
const client = createPublicClient({ chain: calibration, transport: http(),})
const contract = getContract({ client })const dataSetId = 1nconst isLive = await contract.read.dataSetLive([dataSetId])Throws
Section titled “Throws”Errors getContract.ErrorType