# SubnameChallengeSiweConfig

[**@justaname.id/sdk**](https://docs.justaname.id/sdk-reference/justaname-core-sdk) • **Docs**

***

[@justaname.id/sdk](https://docs.justaname.id/sdk-reference/justaname-core-sdk/globals) / SubnameChallengeSiweConfig

## Interface: SubnameChallengeSiweConfig

Represents the Sign-In with Ethereum (SIWE) functionality, providing methods to initiate and verify challenges.

### Example

```typescript
import { JustaName } from '@justaname.id/sdk';

const configuration = {
 apiKey: 'your-api-key'
 };

 const justaName = JustaName.init(configuration);

const requestChallengeResponse = await justaName.siwe.requestChallenge({
 chainId: 1,
 origin: 'http://localhost:3333',
 address: '0x59c44836630760F97b74b569B379ca94c37B93ca',
 domain: 'localhost',
 ttl?: 120000,
});

```

### Extends

* `Omit`<[`SiweConfig`](https://docs.justaname.id/sdk-reference/justaname-core-sdk/interfaces/siweconfig), `"chainId"` | `"ttl"`>

### Properties

#### domain

> **domain**: `string`

Represents the ENS domain

**Inherited from**

`Omit.domain`

**Defined in**

[packages/@justaname.id/sdk/src/lib/types/siwe/siwe-config.ts:8](https://github.com/JustaName-id/JustaName-sdk/blob/dc845c10af242e3ca87d95ef392516ac0bfa8b95/packages/@justaname.id/sdk/src/lib/types/siwe/siwe-config.ts#L8)

***

#### origin

> **origin**: `string`

Represents the origin of the request (e.g. the domain of the website).

**Inherited from**

`Omit.origin`

**Defined in**

[packages/@justaname.id/sdk/src/lib/types/siwe/siwe-config.ts:13](https://github.com/JustaName-id/JustaName-sdk/blob/dc845c10af242e3ca87d95ef392516ac0bfa8b95/packages/@justaname.id/sdk/src/lib/types/siwe/siwe-config.ts#L13)
