Class Post

Hierarchy

  • Post

Constructors

Properties

sdk: SDK

Methods

  • Parameters

    • metadataUri: string
    • profileAccount: PublicKey
    • owner: PublicKey
    • payer: PublicKey = owner

    Returns Promise<{
        instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
        postPDA: PublicKey;
    }>

  • Parameters

    • metadataUri: string
    • profileAccount: PublicKey
    • sessionPublicKey: PublicKey
    • sessionTokenAccount: PublicKey
    • payer: PublicKey = sessionPublicKey

    Returns Promise<{
        instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
        postPDA: PublicKey;
    }>

  • Parameters

    • postAccount: PublicKey
    • profileAccount: PublicKey
    • owner: PublicKey
    • refundReceiver: PublicKey = owner

    Returns MethodsBuilder<GplCore, Object>

  • Parameters

    • postAccount: PublicKey
    • profileAccount: PublicKey
    • sessionPublicKey: PublicKey
    • sessionTokenAccount: PublicKey
    • refundReceiver: PublicKey = sessionPublicKey

    Returns MethodsBuilder<GplCore, Object>

  • Parameters

    • postAccount: 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>>>

  • Parameters

    • profileAccount: PublicKey

    Returns Promise<GraphQLFeed[]>

  • Parameters

    • replyToPostAccount: PublicKey
    • metadataUri: String
    • profileAccount: PublicKey
    • owner: PublicKey
    • payer: PublicKey = owner

    Returns Promise<{
        instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
        postPDA: PublicKey;
    }>

  • Parameters

    • replyToPostAccount: PublicKey
    • metadataUri: String
    • profileAccount: PublicKey
    • sessionPublicKey: PublicKey
    • sessionTokenAccount: PublicKey
    • payer: PublicKey = sessionPublicKey

    Returns Promise<{
        instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
        postPDA: PublicKey;
    }>

  • Parameters

    • newMetadataUri: string
    • postAccount: PublicKey
    • profileAccount: PublicKey
    • owner: PublicKey

    Returns Promise<MethodsBuilder<GplCore, Object>>

  • Parameters

    • newMetadataUri: string
    • postAccount: PublicKey
    • profileAccount: PublicKey
    • sessionPublicKey: PublicKey
    • sessionTokenAccount: PublicKey

    Returns Promise<MethodsBuilder<GplCore, Object>>

Generated using TypeDoc