Skip to content

getStarknetIdUnboundedVerifierData

Action for getting unbounded verifier data associated with a Starknet ID.

Import

import { getStarknetIdUnboundedVerifierData } from "starkweb/core";

Usage

index.ts
import { getStarknetIdUnboundedVerifierData } from "starkweb/core";
import { config } from "./config";
 
const verifierData = await getStarknetIdUnboundedVerifierData(config, {
  starknetId: "0x123...", 
  field: "twitter", 
  domain: "app", 
  selector: "verified", 
  verifier: "0x456...", 
});

Parameters

import { type GetStarknetIdUnboundedVerifierDataParameters } from "starkweb/core";

starknetId

Hex

The Starknet ID to get unbounded verifier data for.

field

string

The specific field of verifier data to retrieve.

domain

string

The domain for the unbounded data.

selector

string

The selector for the specific data field.

verifier

Hex

The address of the verifier.

index.ts
import { getStarknetIdUnboundedVerifierData } from "starkweb/core";
import { config } from "./config";
 
const verifierData = await getStarknetIdUnboundedVerifierData(config, {
  starknetId: "0x123...", 
  field: "twitter", 
  domain: "app", 
  selector: "verified", 
  verifier: "0x456...", 
});

chainId (optional)

Hex | undefined

The chain ID to query. If not provided, uses the current chain.

index.ts
import { getStarknetIdUnboundedVerifierData } from "starkweb/core";
import { mainnet } from "starkweb/chains"; 
import { config } from "./config";
 
const verifierData = await getStarknetIdUnboundedVerifierData(config, {
  starknetId: "0x123...",
  field: "twitter",
  domain: "app",
  selector: "verified",
  verifier: "0x456...",
  chainId: mainnet.chain_id, 
});

Return Type

import { type GetStarknetIdUnboundedVerifierDataReturnType } from "starkweb/core";

Returns the unbounded verifier data value for the specified field, domain, selector, and verifier.

Example

example.ts
import { getStarknetIdUnboundedVerifierData } from "starkweb/core";
import { mainnet } from "starkweb/chains"; 
import { config } from "./config";
 
// Get unbounded verifier data on current chain
const verifierData = await getStarknetIdUnboundedVerifierData(config, {
  starknetId: "0x123...", 
  field: "twitter", 
  domain: "app", 
  selector: "verified", 
  verifier: "0x456...", 
});
console.log("Unbounded verifier data:", verifierData);
 
// Get unbounded verifier data on specific chain
const mainnetData = await getStarknetIdUnboundedVerifierData(config, {
  starknetId: "0x123...",
  field: "twitter",
  domain: "app",
  selector: "verified",
  verifier: "0x456...",
  chainId: mainnet.chain_id, 
});

Error

import { type GetStarknetIdUnboundedVerifierDataErrorType } from "starkweb/core";

TanStack Query

import {
  type GetStarknetIdUnboundedVerifierDataData,
  type GetStarknetIdUnboundedVerifierDataOptions,
  type GetStarknetIdUnboundedVerifierDataQueryFnData,
  type GetStarknetIdUnboundedVerifierDataQueryKey,
  getStarknetIdUnboundedVerifierDataQueryKey,
  getStarknetIdUnboundedVerifierDataQueryOptions,
} from "starkweb/query";