- Preparing search index...
- The search index is not available
@gumhq/sdk
Methods
burnBadge
- burnBadge(badgeAccount: PublicKey, issuer: PublicKey, schema: PublicKey, holder: PublicKey, signer: PublicKey): Promise<MethodsBuilder<GplCore, Object>>
-
Parameters
-
badgeAccount: PublicKey
-
issuer: PublicKey
-
schema: PublicKey
-
holder: PublicKey
-
signer: PublicKey
Returns Promise<MethodsBuilder<GplCore, Object>>
createBadge
- createBadge(metadataUri: string, issuer: PublicKey, schema: PublicKey, holderProfile: PublicKey, updateAuthority: PublicKey, authority: PublicKey): Promise<{
badgePDA: PublicKey;
instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
}>
-
Parameters
-
metadataUri: string
-
issuer: PublicKey
-
schema: PublicKey
-
holderProfile: PublicKey
-
updateAuthority: PublicKey
-
authority: PublicKey
Returns Promise<{
badgePDA: PublicKey;
instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
}>
createIssuer
- createIssuer(authority: PublicKey): Promise<{
instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
issuerPDA: PublicKey;
}>
-
Returns Promise<{
instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
issuerPDA: PublicKey;
}>
createSchema
- createSchema(metadataUri: string, authority: PublicKey): Promise<{
instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
schemaPDA: PublicKey;
}>
-
Parameters
-
metadataUri: string
-
authority: PublicKey
Returns Promise<{
instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
schemaPDA: PublicKey;
}>
deleteIssuer
- deleteIssuer(issuerAccount: PublicKey, authority: PublicKey): Promise<MethodsBuilder<GplCore, Object>>
-
Parameters
-
issuerAccount: PublicKey
-
authority: PublicKey
Returns Promise<MethodsBuilder<GplCore, Object>>
deleteSchema
- deleteSchema(schemaAccount: PublicKey, authority: PublicKey): Promise<MethodsBuilder<GplCore, Object>>
-
Parameters
-
schemaAccount: PublicKey
-
authority: PublicKey
Returns Promise<MethodsBuilder<GplCore, Object>>
getAllBadges
- getAllBadges(): Promise<GraphQLBadge[]>
-
Returns Promise<GraphQLBadge[]>
getBadge
- getBadge(userAccount: PublicKey): Promise<DecodeStruct<{
fields: [{
name: "issuer";
type: "publicKey";
}, {
name: "holder";
type: "publicKey";
}, {
name: "updateAuthority";
type: "publicKey";
}, {
name: "schema";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "verified";
type: "bool";
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}];
kind: "struct";
} | {
fields: [{
name: "fromProfile";
type: "publicKey";
}, {
name: "toProfile";
type: "publicKey";
}];
kind: "struct";
} | {
fields: [{
name: "profile";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}, {
name: "replyTo";
type: {
option: "publicKey";
};
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "screenName";
type: "publicKey";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}];
kind: "struct";
} | {
fields: [{
name: "fromProfile";
type: "publicKey";
}, {
name: "toPost";
type: "publicKey";
}, {
name: "reactionType";
type: "string";
}];
kind: "struct";
}, DecodedHelper<[{
name: "PostError";
type: {
kind: "enum";
variants: [{
name: "URITooLong";
}];
};
}, {
name: "ProfileMetadataError";
type: {
kind: "enum";
variants: [{
name: "URITooLong";
}];
};
}, {
name: "ConnectionError";
type: {
kind: "enum";
variants: [{
name: "CannotConnectToSelf";
}];
};
}], EmptyDefined>>>
-
Returns Promise<DecodeStruct<{
fields: [{
name: "issuer";
type: "publicKey";
}, {
name: "holder";
type: "publicKey";
}, {
name: "updateAuthority";
type: "publicKey";
}, {
name: "schema";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "verified";
type: "bool";
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}];
kind: "struct";
} | {
fields: [{
name: "fromProfile";
type: "publicKey";
}, {
name: "toProfile";
type: "publicKey";
}];
kind: "struct";
} | {
fields: [{
name: "profile";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}, {
name: "replyTo";
type: {
option: "publicKey";
};
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "screenName";
type: "publicKey";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}];
kind: "struct";
} | {
fields: [{
name: "fromProfile";
type: "publicKey";
}, {
name: "toPost";
type: "publicKey";
}, {
name: "reactionType";
type: "string";
}];
kind: "struct";
}, DecodedHelper<[{
name: "PostError";
type: {
kind: "enum";
variants: [{
name: "URITooLong";
}];
};
}, {
name: "ProfileMetadataError";
type: {
kind: "enum";
variants: [{
name: "URITooLong";
}];
};
}, {
name: "ConnectionError";
type: {
kind: "enum";
variants: [{
name: "CannotConnectToSelf";
}];
};
}], EmptyDefined>>>
getBadgesByHolder
- getBadgesByHolder(holder: string): Promise<GraphQLBadge[]>
-
Returns Promise<GraphQLBadge[]>
getBadgesByIssuer
- getBadgesByIssuer(issuer: string): Promise<GraphQLBadge[]>
-
Returns Promise<GraphQLBadge[]>
getCredentialsByCredentialId
- getCredentialsByCredentialId(credentialId: string): Promise<any>
-
Returns Promise<any>
getCredentialsByIssuerGatewayId
- getCredentialsByIssuerGatewayId(issuerGatewayId: string): Promise<any>
-
Returns Promise<any>
getCredentialsByUserWallet
- getCredentialsByUserWallet(userWallet: any): Promise<any>
-
Returns Promise<any>
getIssuer
- getIssuer(issuerAccount: PublicKey): Promise<DecodeStruct<{
fields: [{
name: "issuer";
type: "publicKey";
}, {
name: "holder";
type: "publicKey";
}, {
name: "updateAuthority";
type: "publicKey";
}, {
name: "schema";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "verified";
type: "bool";
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}];
kind: "struct";
} | {
fields: [{
name: "fromProfile";
type: "publicKey";
}, {
name: "toProfile";
type: "publicKey";
}];
kind: "struct";
} | {
fields: [{
name: "profile";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}, {
name: "replyTo";
type: {
option: "publicKey";
};
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "screenName";
type: "publicKey";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}];
kind: "struct";
} | {
fields: [{
name: "fromProfile";
type: "publicKey";
}, {
name: "toPost";
type: "publicKey";
}, {
name: "reactionType";
type: "string";
}];
kind: "struct";
}, DecodedHelper<[{
name: "PostError";
type: {
kind: "enum";
variants: [{
name: "URITooLong";
}];
};
}, {
name: "ProfileMetadataError";
type: {
kind: "enum";
variants: [{
name: "URITooLong";
}];
};
}, {
name: "ConnectionError";
type: {
kind: "enum";
variants: [{
name: "CannotConnectToSelf";
}];
};
}], EmptyDefined>>>
-
Returns Promise<DecodeStruct<{
fields: [{
name: "issuer";
type: "publicKey";
}, {
name: "holder";
type: "publicKey";
}, {
name: "updateAuthority";
type: "publicKey";
}, {
name: "schema";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "verified";
type: "bool";
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}];
kind: "struct";
} | {
fields: [{
name: "fromProfile";
type: "publicKey";
}, {
name: "toProfile";
type: "publicKey";
}];
kind: "struct";
} | {
fields: [{
name: "profile";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}, {
name: "replyTo";
type: {
option: "publicKey";
};
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "screenName";
type: "publicKey";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}];
kind: "struct";
} | {
fields: [{
name: "fromProfile";
type: "publicKey";
}, {
name: "toPost";
type: "publicKey";
}, {
name: "reactionType";
type: "string";
}];
kind: "struct";
}, DecodedHelper<[{
name: "PostError";
type: {
kind: "enum";
variants: [{
name: "URITooLong";
}];
};
}, {
name: "ProfileMetadataError";
type: {
kind: "enum";
variants: [{
name: "URITooLong";
}];
};
}, {
name: "ConnectionError";
type: {
kind: "enum";
variants: [{
name: "CannotConnectToSelf";
}];
};
}], EmptyDefined>>>
getIssuerByAddress
- getIssuerByAddress(address: string): Promise<GraphQLIssuer>
-
Returns Promise<GraphQLIssuer>
getIssuerByAuthority
- getIssuerByAuthority(authority: string): Promise<GraphQLIssuer[]>
-
Returns Promise<GraphQLIssuer[]>
getSchema
- getSchema(schemaAccount: PublicKey): Promise<DecodeStruct<{
fields: [{
name: "issuer";
type: "publicKey";
}, {
name: "holder";
type: "publicKey";
}, {
name: "updateAuthority";
type: "publicKey";
}, {
name: "schema";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "verified";
type: "bool";
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}];
kind: "struct";
} | {
fields: [{
name: "fromProfile";
type: "publicKey";
}, {
name: "toProfile";
type: "publicKey";
}];
kind: "struct";
} | {
fields: [{
name: "profile";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}, {
name: "replyTo";
type: {
option: "publicKey";
};
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "screenName";
type: "publicKey";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}];
kind: "struct";
} | {
fields: [{
name: "fromProfile";
type: "publicKey";
}, {
name: "toPost";
type: "publicKey";
}, {
name: "reactionType";
type: "string";
}];
kind: "struct";
}, DecodedHelper<[{
name: "PostError";
type: {
kind: "enum";
variants: [{
name: "URITooLong";
}];
};
}, {
name: "ProfileMetadataError";
type: {
kind: "enum";
variants: [{
name: "URITooLong";
}];
};
}, {
name: "ConnectionError";
type: {
kind: "enum";
variants: [{
name: "CannotConnectToSelf";
}];
};
}], EmptyDefined>>>
-
Returns Promise<DecodeStruct<{
fields: [{
name: "issuer";
type: "publicKey";
}, {
name: "holder";
type: "publicKey";
}, {
name: "updateAuthority";
type: "publicKey";
}, {
name: "schema";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "verified";
type: "bool";
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}];
kind: "struct";
} | {
fields: [{
name: "fromProfile";
type: "publicKey";
}, {
name: "toProfile";
type: "publicKey";
}];
kind: "struct";
} | {
fields: [{
name: "profile";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}, {
name: "replyTo";
type: {
option: "publicKey";
};
}];
kind: "struct";
} | {
fields: [{
name: "authority";
type: "publicKey";
}, {
name: "metadataUri";
type: "string";
}, {
name: "screenName";
type: "publicKey";
}, {
name: "randomHash";
type: {
array: ["u8", 32];
};
}];
kind: "struct";
} | {
fields: [{
name: "fromProfile";
type: "publicKey";
}, {
name: "toPost";
type: "publicKey";
}, {
name: "reactionType";
type: "string";
}];
kind: "struct";
}, DecodedHelper<[{
name: "PostError";
type: {
kind: "enum";
variants: [{
name: "URITooLong";
}];
};
}, {
name: "ProfileMetadataError";
type: {
kind: "enum";
variants: [{
name: "URITooLong";
}];
};
}, {
name: "ConnectionError";
type: {
kind: "enum";
variants: [{
name: "CannotConnectToSelf";
}];
};
}], EmptyDefined>>>
updateBadge
- updateBadge(metadataUri: string, badgeAccount: PublicKey, issuer: PublicKey, schema: PublicKey, signer: PublicKey): Promise<MethodsBuilder<GplCore, Object>>
-
Parameters
-
metadataUri: string
-
badgeAccount: PublicKey
-
issuer: PublicKey
-
schema: PublicKey
-
signer: PublicKey
Returns Promise<MethodsBuilder<GplCore, Object>>
updateSchema
- updateSchema(metadataUri: string, authority: PublicKey, schemaAccount: PublicKey): Promise<MethodsBuilder<GplCore, Object>>
-
Parameters
-
metadataUri: string
-
authority: PublicKey
-
schemaAccount: PublicKey
Returns Promise<MethodsBuilder<GplCore, Object>>
verifyIssuer
- verifyIssuer(issuerAccount: PublicKey, signer: PublicKey): Promise<MethodsBuilder<GplCore, Object>>
-
Parameters
-
issuerAccount: PublicKey
-
signer: PublicKey
Returns Promise<MethodsBuilder<GplCore, Object>>