API Reference

Create a transaction

posthttps://api.circle.com/v1/cpn/payments/{paymentId}/transactions

  • Reference
  • Playground

Creates an unsigned onchain transaction for a specific payment.

Path parameters
paymentId
uuid
Required

The payment id created previously.

Body parameters
senderAccountType
string
Required

The OFI address. Should include the address and the network.

Allowed valuesEOA
idempotencyKey
string
Required

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.

Response
RequestChoose a language
ResponseChoose an example
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}
Did this page help you?
© 2023-2025 Circle Technology Services, LLC. All rights reserved.