Type alias TransferCompressedNftBuilderParams

TransferCompressedNftBuilderParams: {
    toOwner: PublicKey;
    compression: TransferNftCompressionParam;
    nftOrSft: Sft;
    amount?: undefined | SplTokenAmount;
    toToken?: undefined | PublicKey;
    fromOwner?: undefined | PublicKey;
    fromToken?: undefined | PublicKey;
    authority?: undefined | Signer | TokenMetadataAuthorityHolder | TokenMetadataAuthorityTokenDelegate;
    authorizationDetails?: undefined | TokenMetadataAuthorizationDetails;
    instructionKey?: undefined | string;
}

Type declaration

  • toOwner: PublicKey

    The wallet to send the tokens to.

  • compression: TransferNftCompressionParam

    The compression data needed for transfer. Including the assetProof, concurrent merkle tree account info, and compression metadata.

  • nftOrSft: Sft

    The compressed NFT or SFT to transfer. We only need its address and token standard.

  • Optional amount?: undefined | SplTokenAmount

    The amount of tokens to transfer.

    Default Value

    token(1)

  • Optional toToken?: undefined | PublicKey

    The token account to be credited.

    Default Value

    Defaults to the associated token account of toOwner.

  • Optional fromOwner?: undefined | PublicKey

    The wallet to get the tokens from.

    Default Value

    The public key of the provided authority.

  • Optional fromToken?: undefined | PublicKey

    The token account to be debited.

    Default Value

    Defaults to the associated token account of fromOwner.

  • Optional authority?: undefined | Signer | TokenMetadataAuthorityHolder | TokenMetadataAuthorityTokenDelegate

    An authority allowed to transfer the asset.

    Note that Metadata authorities are not supported for this instruction.

    If a Signer is provided directly, it will be used as an Holder authority.

    See

    TokenMetadataAuthority

    Default Value

    metaplex.identity()

  • Optional authorizationDetails?: undefined | TokenMetadataAuthorizationDetails

    The authorization rules and data to use for the transfer.

    See

    TokenMetadataAuthorizationDetails

    Default Value

    Defaults to not using auth rules.

  • Optional instructionKey?: undefined | string

    A key to distinguish the instruction that uses the NFT.

Generated using TypeDoc