メインコンテンツへスキップ
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"
}
認証ユーザーのトランザクションが存在しない場合は 404 を返します。
{
  "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"
}

承認

x-api-key
string
header
必須

パスパラメータ

id
string
必須

AFK transaction id.

レスポンス

Transaction

id
string
必須

AFK transaction id.

status
enum<string>
必須

Current transaction status.

利用可能なオプション:
PENDING,
SUBMITTED,
CONFIRMED,
FAILED
explorerUrl
string | null
必須

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

chainType
enum<string>
必須

Chain family for the transaction.

利用可能なオプション:
ethereum,
solana
chainId
integer
必須

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

chainName
string
必須

Human-readable chain name for display (e.g., Base, Ethereum, Solana).

createdAt
string<date-time>
必須

Creation timestamp.

updatedAt
string<date-time>
必須

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.