Options
All
  • Public
  • Public/Protected
  • All
Menu

This is for common things between the client and server generally concerning data lookup

Hierarchy

  • SolstoryCommonAPI

Index

Constructors

Properties

program: Program<Idl>

Methods

  • getSolstoryPda(): Promise<PublicKey>
  • getWriterExtendedMetadataPda(writerKey: string | PublicKey): Promise<PublicKey>
  • Grab the PDA address for the metadata of a writer program.

    Parameters

    • writerKey: string | PublicKey

      the pubkey of the writer program

    Returns Promise<PublicKey>

  • getWriterHeadPda(writerKey: string | PublicKey, mintKey: string | PublicKey): Promise<PublicKey>
  • Grab the PDA address for the "head" of a story for an nft.

    Parameters

    • writerKey: string | PublicKey

      the pubkey of the writer program

    • mintKey: string | PublicKey

      the mint of the NFT – this is the same one you would use for metaplex metadata.

    Returns Promise<PublicKey>

  • getWriterMetadataPda(writerKey: string | PublicKey): Promise<PublicKey>
  • Grab the PDA address for the metadata of a writer program.

    Parameters

    • writerKey: string | PublicKey

      the pubkey of the writer program

    Returns Promise<PublicKey>

  • uploadSolstoryItem(itemJson: string): Promise<void>

Generated using TypeDoc