Function createInterestBearingMint

  • Initialize an interest bearing account on a mint

    Parameters

    • connection: Connection

      Connection to use

    • payer: Signer

      Payer of the transaction fees

    • mintAuthority: PublicKey

      Account or multisig that will control minting

    • freezeAuthority: PublicKey

      Optional account or multisig that can freeze token accounts

    • rateAuthority: PublicKey

      The public key for the account that can update the rate

    • rate: number

      The initial interest rate

    • decimals: number

      Location of the decimal place

    • keypair: Keypair = ...

      Optional keypair, defaulting to a new random one

    • Optional confirmOptions: ConfirmOptions

      Options for confirming the transaction

    • programId: PublicKey = TOKEN_2022_PROGRAM_ID

      SPL Token program account

    Returns Promise<PublicKey>

    Public key of the mint

Generated using TypeDoc