Skip to content
SDKProductDomains and accessDomain

Domain methods: transfer, verify

The Domain Verbs transfer, verify as typed SDK methods, with inputs, result, refusals and an example.

Reference for Domain, one group of Domain methods.

Domain.transfer

Transfer moves a Domain’s registration to another holder or registrar, with its records intact. Verb page.

TypeScript
interface DomainVerbs {
  transfer(input: DomainTransferInput, options?: SB.CallOptions): SB.Call<Domain>
}

Emits Domain.transferred.

Inputs

InputTypeRequiredDescription
domainDomainrequiredThe Domain to move.
tostringrequiredThe receiving holder or registrar.
kindstringrequiredin from another registrar, registrant to a new owner, push between accounts, or out to leave.
codeSecretThe transfer code, for in and out.

Returns

OutputTypeRequiredDescription
domainDomainrequiredThe transferred Domain.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.
The record is not in a state that allows this Verb, so the call is refused.refusedRead the record, run the Verb that moves it to an allowed state, then retry.None.
Before transferableAtrefusedClear what the check names, then call it again.None.

Example

TypeScript
import { $ } from 'startup-builder'

const domain = await $.Domain.transfer({ domain: 'domain_VbYut4CTsH', to: 'Example to', kind: 'in' })

Domain.verify

Verify checks a Domain’s DNS, ownership and certificate again and records each result, with the fix for any failure. Verb page.

TypeScript
interface DomainVerbs {
  verify(input: DomainVerifyInput, options?: SB.CallOptions): SB.Call<DomainVerifyOutput>
}

Emits Domain.verified.

Inputs

InputTypeRequiredDescription
domainDomainrequiredThe Domain to check.

Returns

OutputTypeRequiredDescription
checksjsonrequiredEach check with its status and, on failure, its reason and fix.
domainDomainrequiredThe Domain with its state after the checks.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const { checks, domain } = await $.Domain.verify({ domain: 'domain_VbYut4CTsH' })