Function sendTransaction

  • Sends and confirms a transaction

    Parameters

    • transaction: TransactionReturn<AnyTransaction>

      The transaction to send

    • connection: TransactionSender

      The connection to send the transaction to

    • Optional options: SendTransactionOptions

      Options to send transaction

    • retryInterval: number = 3000

      How often to resend the transaction before it's confirmed, in ms. Default is 3000

    • maxRetries: number = 10

      How many times to retry before giving up. Default is 10

    Returns Promise<RpcResponseAndContext<Result<TransactionSignature, TransactionError>>>

Generated using TypeDoc