posthttps://api.circle.com/v1/cpn/payments/{paymentId}/transactions/accelerate
Accelerate a transaction based on the payment ID. It should be used when a transaction associated with the payment is broadcasted but not confirmed for a long period of time (i.e 10 minutes). This is usually due to gas fees being too low and not picked up by any miner/validator.
The /accelerate endpoint essentially creates another transaction with the same params as the broadcasted transaction. If multiple broadcasted transactions exist, it will use the newest created one. Afterwards, OFI can sign with a higher gas fee and submit via /submit endpoint to accelerate blockchain confirmation.
Requirements for using this endpoint:
No COMPLETED transaction exist for the payment (otherwise onchain transaction has completed)
No CREATED transaction exist for the payment, otherwise OFI should sign that transaction and submit
No PENDING transaction exist for the payment, otherwise OFI should wait for transaction to be broadcasted
In another word, all existing transaction for the payment should either be FAILED (which is no longer effective) or BROADCASTED (which means they are stuck onchain and not confirmed)
The payment id created previously.
Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests. To create a UUIDv4 go to uuidgenerator.net. If the same key is reused, it will be treated as the same request and the original response will be returned.
1{
2 "data": {
3 "id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
4 "paymentId": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
5 "status": "PENDING",
6 "failureReason": "FAILED_ON_ONCHAIN",
7 "expireDate": "2023-01-01T12:04:05Z",
8 "senderAddress": "0xe01be9cdd9e744ae6a709794bfe531ec3ec0671c",
9 "senderAccountType": "EOA",
10 "blockchain": "ETH-SEPOLIA",
11 "amount": {
12 "amount": "110.27",
13 "currency": "USDC"
14 },
15 "destinationAddress": "0xe01be9cdd9e744ae6a709794bfe531ec3ec0671c",
16 "estimatedFee": {
17 "type": "EIP1559",
18 "payload": {
19 "gasLimit": "21000",
20 "maxFeePerGas": "5935224468",
21 "maxPriorityFeePerGas": "1022783914"
22 }
23 },
24 "messageType": "EIP3009",
25 "messageToBeSigned": {},
26 "signedTransaction": "AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABpzlAhqqen7eyTe0KQ3w+9NS4E+7sscb+Cr...",
27 "transactionHash": "2vmEDSBThR143WJyJePkpKVQcERVo9KePuCUwYU8fkoJaQjarTMj6sZG7DNnJ4zjhtRz6hDruqEFEkD4wJpGviiW"
28 }
29}