> For the complete documentation index, see [llms.txt](https://docs.bitcart.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bitcart.ai/guides/transaction-speed.md).

# Transaction speed

![Transaction speed](https://4146767839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lz8A22xAOkwN-WbWyqG%2Fuploads%2Fgit-blob-12b1c6214e62ee7d8ced9d9cfeb5e19c4e8d939e%2Ftransaction_speed.png?alt=media)

What does transaction speed mean?

First of all, transaction speed applies only to on-chain invoices. All lightning invoices are instantly marked as complete.

To understand why transaction speed setting is needed, you need to understand the invoice statuses in Bitcart:

When invoice has just been created, it has `pending` status.

If no payment has been sent within the invoice time frame (expiration time), invoice is marked `expired`. Expired invoices no longer listen for incoming payments, but you may manually mark it complete.

If a payment has been sent within the invoice time frame (expiration time), invoice status is set to `paid`.

With `paid` status, customer is redirected to the redirect URL, and checkout page shows paid. But all the notifications, emails and custom scripts aren't executed yet.

When payment has been confirmed (has >= 1 confirmations), invoice status is set to `confirmed`.

When payment's number of confirmations is >= transaction speed, invoice status is set to `complete`, and all the postorder actions are executed (like notifications).

So, transaction speed controls how fast you want your invoice to be complete. Default value of 0 provides the fastest checkout, but it is not always good for your use case, it might be not safe.

Value of 1 means waiting for one confirmation, which is enough in most cases.

You can set transaction speed in store checkout settings to any value between 0 and 10.

Wallets also have their own transaction speed setting. If set, it overrides the store setting for payments to that wallet, e.g. to require more confirmations for one coin than for another. If empty, the store setting is used. Wallet transaction speed can be any value between 0 and 10, or between 0 and 32 for Monero wallets.

Required number of confirmations is fixed when the invoice is created: changing transaction speed only affects new invoices.
