# Domain Set Record

[WriteAddress](https://ednsdomains.gitbook.io/edns-sdk-doc/readme/domain-set-record/writeaddress)

[WriteText](https://ednsdomains.gitbook.io/edns-sdk-doc/readme/domain-set-record/writetext)

### Examples

To set up a wallet address "0x14A1A496fABc43bFAfC358005dE336a7B5222b20" for receiving ETH for domain name "ednsdomains2022.meta" .

```
import {WriteAddress, GetEdnsProvider} from "@edns/sdk";
const privateKey = 'xxx...'
const provider = await GetEdnsProvider()
let walletWithProvider = new ethers.Wallet(privateKey, provider);
 try {
  let result = await WriteAddress("ednsdomains2022.meta","ETH","0x14A1A496fABc43bFAfC358005dE336a7B5222b20",walletWithProvider)
  console.log(result)
}catch (e){
    console.log(e)
}
    
```

To add a GITHUB Link for Domain "ednsdomains2022.meta"

```
import {WriteText, TextType,GetEdnsProvider} from "@edns/sdk";
const privateKey = 'xxx...'
const provider = await GetEdnsProvider()
let walletWithProvider = new ethers.Wallet(privateKey, provider);
try {
    let result = await WriteText("ednsdomains2022.meta",TextType.GITHUB, "https://github.com/ednsdomains/Edns-sdk",walletWithProvider,)
    console.log(result)
}catch (e){
    console.log(e)
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ednsdomains.gitbook.io/edns-sdk-doc/readme/domain-set-record.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
