Loading...
Loading...
Compare original and translation side by side
| Need | Use |
|---|---|
Register a | |
| Edit records on an ENS name the user already owns | |
| Embed the records UI inside a custom flow | |
| Mint a subname from a Namespace onchain listing | |
| Create or update gasless subnames through Namespace | |
EnsNameRegistrationFormEnsRecordsFormSelectRecordsFormSubnameMintFormOffchainSubnameFormoffchain-ens-subname-sdk| 需求 | 使用组件 |
|---|---|
注册 | |
| 编辑用户已拥有的ENS域名记录 | |
| 在自定义流程中嵌入记录UI | |
| 从Namespace链上列表铸造子域名 | |
| 通过Namespace创建或更新无gas费的链下子域名 | |
EnsNameRegistrationFormEnsRecordsFormSelectRecordsFormSubnameMintFormOffchainSubnameFormoffchain-ens-subname-sdkadvanced.mdadvanced.mdwagmiviem@tanstack/react-querywagmiviem@tanstack/react-querynpm install @thenamespace/ens-componentsimport "@thenamespace/ens-components/styles.css";npm install @thenamespace/ens-componentsimport "@thenamespace/ens-components/styles.css";avatarUploadDomainimport { EnsNameRegistrationForm } from "@thenamespace/ens-components";
<EnsNameRegistrationForm
isTestnet={false}
avatarUploadDomain="app.example.com"
onRegistrationSuccess={result => {
console.log(result.total, result.expiryDate);
}}
/>;avatarUploadDomainapp.example.comhttps://avatarUploadDomainimport { EnsNameRegistrationForm } from "@thenamespace/ens-components";
<EnsNameRegistrationForm
isTestnet={false}
avatarUploadDomain="app.example.com"
onRegistrationSuccess={result => {
console.log(result.total, result.expiryDate);
}}
/>;avatarUploadDomainapp.example.comhttps://EnsNameRegistrationFormEnsNameRegistrationFormreferrerisTestnet={true}onConnectWalletreferrerisTestnet={true}onConnectWallet