Prepare setting records
set_recordsPrepare setting or deleting an ENS name's records for the user to sign in their own wallet, e.g. 'Set alice.eth's twitter to alicedev and its BTC address to bc1…'. Nothing is sent. Text records, addresses by coin and the content hash (website); null deletes a record, clearFirst removes every record first. Returns the steps, whether the account may make the change, plain signing instructions and the unsigned calls.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"account": "<account>"
},
"name": "set_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ENS name as the user wrote it, e.g. nick.eth; normalised by the server (ENSIP-15) | |
| texts | No | Text records by key, e.g. { url: 'https://…', 'com.github': 'alice' }; null deletes | |
| account | Yes | Account that will sign the transactions: an address (0x…) or an ENS name | |
| addresses | No | Addresses by coin, e.g. { eth: '0x…', btc: 'bc1…' }; null deletes | |
| clearFirst | No | Delete every existing record before writing these | |
| contentHash | No | Content hash URI, e.g. ipfs://…; null deletes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| plan | Yes | Handle of this plan for get_plan; pass it back unchanged | |
| calls | Yes | Unsigned calls, in order, for the account's wallet | |
| chain | Yes | ||
| steps | Yes | ||
| issues | Yes | Why a checked step would fail | |
| account | Yes | ||
| deploys | No | Contracts the plan deploys, at addresses known in advance | |
| signing | Yes | How to sign the steps, in plain words | |
| summary | Yes | ||
| warnings | Yes | ||
| willSucceed | Yes | Whether the steps that can be checked now would succeed if signed now | |
| requirements | Yes | What the account needs before signing, e.g. a token balance |