For the complete documentation index, see llms.txt. This page is also available as Markdown.

Mutation JS

Import Plugins

import { client, TEZOS_DOMAINS_WRAPPER_URI, TEZOS_PLUGIN_JS } from "./client"

Temple Wallet Connection

Create a new connection to Temple Wallet using our Tezos Polywrap JS Plugin and parse the desired Tezos network as an argument.

export const connectTempleWallet = (network) => {
 return client.query({
   uri: TEZOS_PLUGIN_JS,
   query: `
       mutation {
         connectTempleWallet(
             appName: "polydomains",
             network: $network,
             connection: $connection
         )
       },
   `,
   variables: {
       network,
       connection: {
         network
       }
   }
 })
}

Commit Domain Name

Commits a user-defined domain name to the Tezos blockchain using the commitDomain function:

Buy Domain

Initiates a payment to buy a user-defined Tezos domain name that has previously been committed to the Tezos blockchain.

Last updated