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":"CONFIRMED",
  "hash": "0xec04909efc1a39fb777f649d3c1f556cdc529c824b557e172899bd15077c4c01",
  "explorerUrl": "https://basescan.org/tx/0xec04909efc1a39fb777f649d3c1f556cdc529c824b557e172899bd15077c4c01",
  "chainName":"Base",
  "chainType":"ethereum",
  "chainId":8453,
  "to":"0xrecipient...",
  "value":"1000000000000000",
  "error": null,
  "createdAt":"2025-08-25T08:00:00.000Z",
  "updatedAt":"2025-08-25T08:00:05.000Z"
}
Returns 404 if transaction does not exist for authenticated user.
{
  "id":"tx_cuid_here",
  "status":"CONFIRMED",
  "hash": "0xec04909efc1a39fb777f649d3c1f556cdc529c824b557e172899bd15077c4c01",
  "explorerUrl": "https://basescan.org/tx/0xec04909efc1a39fb777f649d3c1f556cdc529c824b557e172899bd15077c4c01",
  "chainName":"Base",
  "chainType":"ethereum",
  "chainId":8453,
  "to":"0xrecipient...",
  "value":"1000000000000000",
  "error": null,
  "createdAt":"2025-08-25T08:00:00.000Z",
  "updatedAt":"2025-08-25T08:00:05.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
explorerUrl
string | null
required

Direct link to the transaction on a chain explorer. Null until a hash/signature exists.

chainType
enum<string>
required

Chain family for the transaction.

Available options:
ethereum,
solana
chainId
integer
required

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

chainName
string
required

Human-readable chain name for display (e.g., Base, 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.

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.