- Preparing search index...
- The search index is not available
@gumhq/sdk
Methods
create
- create(fromProfileAccount: PublicKey, toPostAccount: PublicKey, reactionType: string, owner: PublicKey, payer?: PublicKey): Promise<{
instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
reactionPDA: PublicKey;
}>
-
Parameters
-
fromProfileAccount: PublicKey
-
toPostAccount: PublicKey
-
reactionType: string
-
owner: PublicKey
-
payer: PublicKey = owner
Returns Promise<{
instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
reactionPDA: PublicKey;
}>
createWithSession
- createWithSession(fromProfileAccount: PublicKey, toPostAccount: PublicKey, reactionType: string, sessionPublicKey: PublicKey, sessionTokenAccount: PublicKey, payer?: PublicKey): Promise<{
instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
reactionPDA: PublicKey;
}>
-
Parameters
-
fromProfileAccount: PublicKey
-
toPostAccount: PublicKey
-
reactionType: string
-
sessionPublicKey: PublicKey
-
sessionTokenAccount: PublicKey
-
payer: PublicKey = sessionPublicKey
Returns Promise<{
instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
reactionPDA: PublicKey;
}>
delete
- delete(reactionAccount: PublicKey, toPostAccount: PublicKey, fromProfileAccount: PublicKey, owner: PublicKey, refundReceiver?: PublicKey): MethodsBuilder<GplCore, Object>
-
Parameters
-
reactionAccount: PublicKey
-
toPostAccount: PublicKey
-
fromProfileAccount: PublicKey
-
owner: PublicKey
-
refundReceiver: PublicKey = owner
Returns MethodsBuilder<GplCore, Object>
deleteWithSession
- deleteWithSession(reactionAccount: PublicKey, toPostAccount: PublicKey, fromProfileAccount: PublicKey, sessionPublicKey: PublicKey, sessionTokenAccount: PublicKey, refundReceiver?: PublicKey): MethodsBuilder<GplCore, Object>
-
Parameters
-
reactionAccount: PublicKey
-
toPostAccount: PublicKey
-
fromProfileAccount: PublicKey
-
sessionPublicKey: PublicKey
-
sessionTokenAccount: PublicKey
-
refundReceiver: PublicKey = sessionPublicKey
Returns MethodsBuilder<GplCore, Object>
get
- get(reactionAccount: 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
-
reactionAccount: 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>>>