Last transaction of the address

The method allows you to get the last transaction of the address.

Description of fields

Field
Type
Description

id

string

Transaction ID

status

enum(processed, error, rejected, pending)

Transaction status

type

enum(withdrawal, deposit)

Transaction type

currrency

string

Coin

network

string

Network

addressFrom

string

The address from which the coins were sent

addressTo

string

The address that received the coins

amount

string

Transaction amount

tx

string

TX hash in the blockchain

feeCurrency

string or null

(When withdrawal) Commission Coin

feeAmount

string or null

(When withdrawal) The amount of the commission

feeAmountUSD

string or null

(When withdrawal) The amount of the commission in terms of USD

Withdrawal

string or null

ID of the withdrawal in the system

orphanDepositId

string or null

ID of the orphan transaction in the system

createdAt

string

Date of transaction

Last transaction of the address

post
Header parameters
x-api-public-keystringOptional

Public API-key

x-api-signaturestringOptional

Signing the request body with a private API-key

Content-typestringOptional

Request content type

Example: application/json
Body

Request body for receiving the last transaction of an address. You only need to specify one parameter: id or address

idstringRequired

Address ID. Required, if 'address' was not provided

Example: 2d8b3e86-b6b6-4b83-994c-cee35e1a63da
addressstringRequired

Blockchain address. Required, if 'id' was not provided

Example: 0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f
Responses
200Success
application/json
post
POST /api-gateway/addresses/last-transaction HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 100

{
  "id": "2d8b3e86-b6b6-4b83-994c-cee35e1a63da",
  "address": "0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f"
}
200Success
{
  "success": true,
  "response": {
    "id": "2a9485e6-2062-4969-8d69-75c429c2c738",
    "status": "processed",
    "type": "deposit",
    "currency": "USDT",
    "network": "ethereum",
    "addressFrom": "0x1AFfB0a96FBefAa97dCe488DfD97512346cf3Ab8",
    "addressTo": "0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f",
    "amount": "12.99",
    "tx": "0x2a6113054f5b4fbcdbb5fa128815bf07ce355021165b13c616545438a0fda3ca",
    "feeCurrency": null,
    "feeAmount": null,
    "feeAmountUSD": null,
    "withdrawalId": null,
    "orphanDepositId": null,
    "createdAt": "2025-06-09T13:18:11.473Z"
  }
}

Last updated