- Preparing search index...
- The search index is not available
@gumhq/sdk
Methods
createDomain
- createDomain(tldPDA: PublicKey, domain: string, authority: PublicKey): Promise<{
gumDomainPDA: PublicKey;
instructionMethodBuilder: MethodsBuilder<GplNameservice, Object>;
}>
-
Parameters
-
tldPDA: PublicKey
-
domain: string
-
authority: PublicKey
Returns Promise<{
gumDomainPDA: PublicKey;
instructionMethodBuilder: MethodsBuilder<GplNameservice, Object>;
}>
get
- get(tldAccount: PublicKey): Promise<DecodeStruct<{
fields: [{
name: "name";
type: "string";
}, {
name: "authority";
type: "publicKey";
}, {
name: "domain";
type: "publicKey";
}];
kind: "struct";
}, DecodedHelper<{}, EmptyDefined>>>
-
Returns Promise<DecodeStruct<{
fields: [{
name: "name";
type: "string";
}, {
name: "authority";
type: "publicKey";
}, {
name: "domain";
type: "publicKey";
}];
kind: "struct";
}, DecodedHelper<{}, EmptyDefined>>>
getAllNameservices
- getAllNameservices(): Promise<GraphQLNameservice[]>
-
Returns Promise<GraphQLNameservice[]>
getDomainByName
- getDomainByName(domainName: string): Promise<GraphQLNameservice>
-
Returns Promise<GraphQLNameservice>
getNameserviceByDomain
- getNameserviceByDomain(domain: string): Promise<GraphQLNameservice>
-
Returns Promise<GraphQLNameservice>
getNameservicesByAuthority
- getNameservicesByAuthority(authority: string): Promise<GraphQLNameservice[]>
-
Returns Promise<GraphQLNameservice[]>
getOrCreateDomain
- getOrCreateDomain(tldPDA: PublicKey, domain: string, authority: PublicKey): Promise<PublicKey>
-
Parameters
-
tldPDA: PublicKey
-
domain: string
-
authority: PublicKey
Returns Promise<PublicKey>
transferDomain
- transferDomain(domainPDA: PublicKey, currentAuthority: PublicKey, newAuthority: PublicKey): Promise<MethodsBuilder<GplNameservice, Object>>
-
Parameters
-
domainPDA: PublicKey
-
currentAuthority: PublicKey
-
newAuthority: PublicKey
Returns Promise<MethodsBuilder<GplNameservice, Object>>