Skip to main content
GET
/
tx
/
{id}
Get transaction by id
curl --request GET \
  --url https://api.afkcrypto.com/v1/tx/{id} \
  --header 'x-api-key: <api-key>'
{
  "id":"tx_cuid_here",
  "status":"PENDING",
  "hash": null,
  "chainType":"ethereum",
  "chainId":8453,
  "to":"0xrecipient...",
  "value":"1000000000000000",
  "error": null,
  "createdAt":"2025-08-25T08:00:00.000Z",
  "updatedAt":"2025-08-25T08:00:00.000Z"
}
{
  "id":"tx_cuid_here",
  "status":"PENDING",
  "hash": null,
  "chainType":"ethereum",
  "chainId":8453,
  "to":"0xrecipient...",
  "value":"1000000000000000",
  "error": null,
  "createdAt":"2025-08-25T08:00:00.000Z",
  "updatedAt":"2025-08-25T08:00:00.000Z"
}

Authorizations

x-api-key
string
header
required

Path Parameters

id
string
required

AFK transaction id.

Response

Transaction

id
string
required

AFK transaction id.

status
enum<string>
required

Current transaction status.

Available options:
PENDING,
SUBMITTED,
CONFIRMED,
FAILED
chainType
enum<string>
required

Chain family for the transaction.

Available options:
ethereum,
solana
createdAt
string<date-time>
required

Creation timestamp.

updatedAt
string<date-time>
required

Last updated timestamp.

hash
string | null

On-chain transaction hash/signature when available.

chainId
integer

EVM: numeric chainId; Solana: sentinel values 0=mainnet, -2=testnet, -3=devnet

to
string | null

Destination address, if applicable.

value
string | null

Native value sent in base units, if applicable.

error
string | null

Error message if the transaction failed.

I