Type alias SendTokensInput

SendTokensInput: {
    mintAddress: PublicKey;
    amount: SplTokenAmount;
    toOwner?: PublicKey;
    toToken?: PublicKey | Signer;
    fromOwner?: PublicKey | Signer;
    fromToken?: PublicKey;
    fromMultiSigners?: KeypairSigner[];
    delegateAuthority?: Signer;
}

Type declaration

  • mintAddress: PublicKey

    The address of the mint account.

  • amount: SplTokenAmount

    The amount of tokens to send.

  • Optional toOwner?: PublicKey

    The owner of the destination token account.

    Default Value

    metaplex.identity().publicKey

  • Optional toToken?: PublicKey | Signer

    The address of the destination token account.

    Note that this may be required as a Signer if the destination token account does not exist and we need to create it before sending the tokens.

    Default Value

    Defaults to using the associated token account from the mintAddress and toOwner parameters.

  • Optional fromOwner?: PublicKey | Signer

    The owner of the source token account.

    This may be provided as a PublicKey if one of the following is true:

    • the owner of the source token account is a multisig and the fromMultiSigners parameter is provided.
    • we are using a delegate authority to send the tokens and the delegateAuthority parameter is provided.

    Default Value

    metaplex.identity()

  • Optional fromToken?: PublicKey

    The address of the source token account.

    Default Value

    Defaults to using the associated token account from the mintAddress and fromOwner parameters.

  • Optional fromMultiSigners?: KeypairSigner[]

    The signing accounts to use if the source token owner is a multisig.

    Default Value

    []

  • Optional delegateAuthority?: Signer

    The delegate authority of the source token account as a Signer.

    This is required when the owner of the source token account is provided as a PublicKey as someone needs to authorize that transfer of tokens.

    Default Value

    Defaults to not using a delegate authority.

Generated using TypeDoc