SubnameChallenge

@justaname.id/sdkDocs


@justaname.id/sdk / SubnameChallenge

Class: SubnameChallenge

Constructors

new SubnameChallenge()

new SubnameChallenge(params): SubnameChallenge

Parameters

params: SubnameChallengeParams

Returns

SubnameChallenge

Defined in

packages/@justaname.id/sdk/src/lib/features/subname-challenge/index.ts:50

Methods

requestChallenge()

requestChallenge(params): Promise<RequestChallengeResponse>

Sends a request to initiate a challenge.

Parameters

params: Omit<MakeOptionalProps<RequestChallengeRequest, "origin" | "domain" | "chainId" | "ttl">, never>

The request parameters.

Returns

Promise<RequestChallengeResponse>

  • A promise that resolves with the response.

Defined in

packages/@justaname.id/sdk/src/lib/features/subname-challenge/index.ts:64


verifyMessage()

verifyMessage(params): Promise<VerifyChallengeResponse>

Sends a request to verify a specific address using SIWE.

Parameters

params: Omit<MakeOptionalProps<VerifyChallengeRequest, never>, never>

The request parameters.

Returns

Promise<VerifyChallengeResponse>

  • A promise that resolves with the response.

Defined in

packages/@justaname.id/sdk/src/lib/features/subname-challenge/index.ts:88

Last updated