- Preparing search index...
- The search index is not available
@gumhq/sdk
Methods
create
- create(fromProfile: PublicKey, toProfile: PublicKey, owner: PublicKey, payer?: PublicKey): Promise<{
connectionPDA: PublicKey;
instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
}>
-
Parameters
-
fromProfile: PublicKey
-
toProfile: PublicKey
-
owner: PublicKey
-
payer: PublicKey = owner
Returns Promise<{
connectionPDA: PublicKey;
instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
}>
createWithSession
- createWithSession(fromProfile: PublicKey, toProfile: PublicKey, sessionPublicKey: PublicKey, sessionTokenAccount: PublicKey, payer?: PublicKey): Promise<{
connectionPDA: PublicKey;
instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
}>
-
Parameters
-
fromProfile: PublicKey
-
toProfile: PublicKey
-
sessionPublicKey: PublicKey
-
sessionTokenAccount: PublicKey
-
payer: PublicKey = sessionPublicKey
Returns Promise<{
connectionPDA: PublicKey;
instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
}>
delete
- delete(connectionAccount: PublicKey, fromProfile: PublicKey, toProfile: PublicKey, owner: PublicKey, refundReceiver?: PublicKey): MethodsBuilder<GplCore, Object>
-
Parameters
-
connectionAccount: PublicKey
-
fromProfile: PublicKey
-
toProfile: PublicKey
-
owner: PublicKey
-
refundReceiver: PublicKey = owner
Returns MethodsBuilder<GplCore, Object>
deleteWithSession
- deleteWithSession(connectionAccount: PublicKey, fromProfile: PublicKey, toProfile: PublicKey, sessionPublicKey: PublicKey, sessionTokenAccount?: PublicKey, refundReceiver?: PublicKey): MethodsBuilder<GplCore, Object>
-
Parameters
-
connectionAccount: PublicKey
-
fromProfile: PublicKey
-
toProfile: PublicKey
-
sessionPublicKey: PublicKey
-
sessionTokenAccount: PublicKey = null
-
refundReceiver: PublicKey = sessionPublicKey
Returns MethodsBuilder<GplCore, Object>
get
- get(connectionAccount: 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>>>
-
Parameters
-
connectionAccount: PublicKey
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>>>
getConnectionsByAuthority
getFollowersByProfile
- getFollowersByProfile(profileAccount: PublicKey): Promise<string[]>
-
Parameters
-
profileAccount: PublicKey
Returns Promise<string[]>
getFollowingsByProfile
- getFollowingsByProfile(profileAccount: PublicKey): Promise<string[]>
-
Parameters
-
profileAccount: PublicKey
Returns Promise<string[]>