Type alias TransferCompressedNftInput

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

Type declaration

  • nftOrSft: Sft

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

  • 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.

  • Optional authority?: Signer | TokenMetadataAuthorityTokenDelegate | TokenMetadataAuthorityHolder

    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?: TokenMetadataAuthorizationDetails

    The authorization rules and data to use for the transfer.

    See

    TokenMetadataAuthorizationDetails

    Default Value

    Defaults to not using auth rules.

  • Optional fromOwner?: PublicKey

    The wallet to get the tokens from.

    Default Value

    The public key of the provided authority.

  • Optional fromToken?: PublicKey

    The token account to be debited.

    Default Value

    Defaults to the associated token account of fromOwner.

  • Optional toToken?: PublicKey

    The token account to be credited.

    Default Value

    Defaults to the associated token account of toOwner.

  • Optional amount?: SplTokenAmount

    The amount of tokens to transfer.

    Default Value

    token(1)

Generated using TypeDoc