Transaction Info

Retrieve data on your organization's transactions

Fetch Transaction Data

Fetch a specific contact's data in an inabit organization, according to the contact's ID.

Using this endpoint users can request information on a specific transaction by its transaction ID in their inabit account.

query Transaction($where: TransactionWhereUniqueInput!) {
  transaction(where: $where) {
    id
    amount
    blockchain {
      name
      code
    }
    createdAt
    createdBy {
      fullName
    }
    fee
    note
    status {
      status
    }
    wallet {
      name
      id
    }
    financialAsset {
      code
    }
    isAccelerated
    priority
    rateUSD
    rateEUR
    kyt
  }
}

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Body (TransactionWhereUniqueInput) object

NameTypeDescription

id*

String

Transaction ID

Example body:

{
  "where": {
    "id": "clllyfhdj00w9btqke47wsesx"
  }
}

Response

Return values:

NameTypeDescription

id

String

Transaction ID

amount

String

Transaction Amount (in cryptocurrency)

name (blockchain)

String

Blockchain Name

code (blockchain)

String

Blockchain Code

createdAt

Datetime

Creation Time

fullName (createdBy)

String

Full Name of Initiator

fee

Integer

Transaction Fee

note

String

Transaction Note

status

String

Transaction Status

name (wallet)

String

Wallet Name

id (wallet)

String

Wallet ID

code (financialAsset)

String

FinancialAsset Code (i.e - "ETH" / "BTC")

isAccelerated

Boolean

Flag that indicates wether the transaction is accelerated. (true/false)

priority

String

Transaction Priority (Slow, Medium, Fast, etc.)

rateUSD

Integer

Asset Rate at the time of the Transaction (in USD)

rateEUR

Integer

Asset Rate at the time of the Transaction (in Euro)

kyt

String

KYT (Know-Your-Transaction) risk score. 0 - Worst score 10 - Best Score

{
	"data": {
		"transaction": {
			"id": "clk10q8he002kk660o1ed8ud4",
			"transactionType": "Withdrawal",
			"createdAt": "2023-07-13T10:39:42.963Z",
			"createdBy": {
				"fullName": "admin admin",
				"firstName": "admin",
				"lastName": "admin",
				"id": "cljzumg980000k603eaitu5sq",
				"profileFile": null
			},
			"txId": null,
			"contactCryptoAccount": {
				"address": "0xcce6de61f9abdb6b43effee5dd603bb7c6ee3fc6",
				"name": "Binance Smart Chain d97e1c12",
				"contact": {
					"name": "Wesley Hermann"
				}
			},
			"kyt": 6,
			"wallet": {
				"id": "cljzumgyb000ik603z04lxgyk",
				"name": "REAL WALLET Wallet",
				"externalId": "6422985cfa2a9b000726588b",
				"organization": {
					"id": "cljzumgxa0009k603wl8foc6x"
				},
				"organizationExchange": null
			},
			"financialAsset": {
				"id": "clefn78h5012plc6rxbmofnop",
				"code": "ETH",
				"name": "Ethereum",
				"precision": 8
			},
			"blockchain": {
				"id": "clefn78cl00i3lc6rih442mx9",
				"name": "Ethereum",
				"code": "ethereum",
				"contractType": "ERC20",
				"networkScannerUrl": "https://etherscan.io/tx/"
			},
			"amount": 0.5,
			"rateEUR": null,
			"rateUSD": null,
			"status": {
				"category": "InProgress",
				"status": "Processing",
				"exchangeStatuses": [],
				"transactionSubStatuses": [
					{
						"subStatus": "WaitingExecution"
					},
					{
						"subStatus": "InExecution"
					}
				]
			},
			"fee": null,
			"note": "",
			"swapAssetTo": null,
			"swapToAmount": null,
			"metaData": [
				{
					"value": "0.5",
					"transactionMetaDataField": {
						"id": "zb88n54ipqwjspo1wyw35nf5",
						"name": "requestedAmount"
					}
				}
			]
		}
	}
}

How do I retrieve my transaction ID?

In order to retrieve a transaction's identifier, you'll need to query all of an organization's transactions first, and fetch the specific transaction ID.

query Transactions($where: TransactionWhereInput) {
  transactions(where: $where) {
    id
  }
}

Example body:

{
  "where": {
    "wallet": {
      "organization": {
        "id": ""
      }
    }
  }
}

Try it out!

Last updated