LogoLogo
WebsiteLoginStatus
API Reference
API Reference
  • Introduction
  • Introduction to GraphQL
    • What is GraphQL?
      • GraphQL Schema
      • Example Using GraphQL
    • Authentication
    • Queries
      • Example Query
    • Mutations
      • Example Mutation
    • Variables
    • Fields
  • Develop With inabit API
    • Getting Started
      • Authentication
      • inabit Postman Collection
    • Organizations
      • Organization Info
      • Organization ID
      • Organization Users
      • Organization Contacts
      • Organization Transactions
    • Wallets
      • Wallets Info
      • Create inabit Wallet
      • Edit Wallet Name
      • Generate Deposit Address
      • Fetch Deposit Address
      • Save Address to Whitelist
      • Archive / Unarchive Wallet
      • Disconnect Exchange Wallet
    • Contacts
      • Contact Info
      • Create New Contact
      • Update Contact
    • Transactions
      • Transaction Info
      • Create Transfer Request
      • Create Off Ramp Request
      • Create On Ramp Request
      • Create Exchange Swap
      • Create inabit Wallet Swap
      • Edit Transaction Note
    • Utilities
      • Fetch Financial Asset
      • Fetch Blockchains
  • Remote Approver App
    • Setup and Configuration
    • API Wallets Generation
    • Automate Signing Transactions
    • Webhooks
      • Notification Types
  • WHAT WE SUPPORT
    • Assets & Tokens
    • Blockchains
    • Exchanges
      • Binance
      • Kucoin
      • Kraken
  • Changelog
Powered by GitBook
On this page
  • Fetch Transaction Data
  • Headers
  • Body (TransactionWhereUniqueInput) object
  • Response
  • Try it out!

Was this helpful?

Export as PDF
  1. Develop With inabit API
  2. Transactions

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

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body (TransactionWhereUniqueInput) object

Name
Type
Description

id*

String

Transaction ID

Example body:

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

Response

Return values:

Name
Type
Description

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

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!

PreviousTransactionsNextCreate Transfer Request

Was this helpful?

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

accelerated
Apollo Studio