Transaction API

Contains all endpoints regarding transactions. This includes different transaction types like withdrawals.

Fetch transactions

GET https://api.aquanow.io/accounts/v1/transaction

Fetches the transactions given by the query parameters associated to the authorized user.

To view example requests for this endpoint, visit Aquanow's Postman documentation.

Possible query parameter combinations: These are the only combinations that are currently supported. limit can be added to any of the combinations below. - txId

-tag - txHash -address + (startTime + endTime) optional

-startTime + endTime

-transactionType If the combination of the query parameters does not match one of the above, a generic 500 response will be returned.

Query Parameters

NameTypeDescription

limit

Number

e.g.,2

Limit the number of listed transactions. Must not be greater than 1000.

transactionType

String

e.g., Withdraw Filter by a supported transaction type.

One of Conversion, Credit, Debit, Deposit, Internal_Credit, Internal_Debit, Withdraw

startTime

Number

e.g., 1569533825636

UTC timestamp in milliseconds. Specify the start time of transactions. If this is specified, endTime needs to be specified as well.

endTime

Number

e.g., 1572976325459

UTC timestamp in milliseconds. Specify the end time of transactions.

If this is specified, startTime needs to be specified as well.

txId

String

e.g., 04cbakkdb3-795f-41fb-a70e-5df278cc4386

Specify the txId if you wish to get a single transaction by its ID. Not to be confused with txHash.

txHash

String

e.g.,70a867671a6e01e91f5888d800d3978e2ec9aec6770740572a0a485b7d4b6629

Specify the txHash (transactions hash) to get the corresponding transactions.

NOTE: This will only grab a transaction hash if it is a txHash associated with one of your transactions. It does NOT grab blockchain transaction hash data.

address

String

e.g., 0x25F437f5fb89743D8bEccce3d348e898944DA832

Specify the associated address to get the corresponding transactions. You can optionally add startTime and endTime as well.

tag

String

e.g., client

Specify the tag to get the corresponding transactions.

Headers

NameTypeDescription

x-api-key*

String

{{x-api-key}}

API Auth Key

x-signature*

String

32c92460f65cbb78d0eaf9a4361fb6b0a2bb8bb4c40f531e9974a0afc12d9a328b5ff621a544d242ee9ba1dfa799c85a

Signature created using your API secret

x-nonce*

String

1657731573930

Timestamp in millisecond

Returns an array of TransactionObject.

[
  {
    "quantity": 0.005,
    "symbol": "BTC",
    "txHash": "3e9839efd0e8b92631648f06c2c32e724b87af194ca05f5a0bbeccc6cbbad98b",
    "updatedAt": 1569964868510,
    "createdAt": 1569964868510,
    "username": "helloWorld",
    "address": "CD7iJgfC1BF1a26LuTxAuQ35E5TSPsTsDr",
    "itemDateTime": 1569964868509,
    "transactionType": "WITHDRAW",
    "adminApproval": "DONE"
  },
  {
    "quantity": 0.004,
    "symbol": "BTC",
    "txHash": "a302e62611fc2f3b6736e63eb9f034f45819abe750719693d033209841552b5a",
    "updatedAt": 1569975516918,
    "createdAt": 1569975516918,
    "username": "helloWorld",
    "address": "CD7iJgfC1BF1a26LuTxAuQ35E5TSPsTsDr",
    "itemDateTime": 1569975516917,
    "transactionType": "WITHDRAW",
    "adminApproval": "DONE"
  }
]

Request a crypto withdrawal

POST https://api.aquanow.io/accounts/v1/transaction

To view example requests for this endpoint, visit Aquanow's Postman documentation.

Headers

NameTypeDescription

x-api-key*

String

{{x-api-key}}

API Auth Key

x-signature*

String

49c6260c194f4d7ed5cb917dc70b9821673246b2abc1cf28f05df6a75fd24181e00f8e57b321d15ae45db58b3bffe27a

Signature created using your API secret

x-nonce*

Number

1618307861949

Timestamp in millisecond

Content-Type*

String

application/json

Request Body

NameTypeDescription

symbol*

String

e.g., BTC

All uppercase letters, the crypto currency you are withdrawing.

address*

String

Destination address you are withdrawing to.

quantity*

Number

Quantity you wish to withdraw.

NOTE: You must have sufficient funds to be able to withdraw.

transactionType*

String

e.g., WITHDRAW

Type of transaction.

NOTE: Currently, we only support WITHDRAW requests

currencyTag

String

Additional address property (Tag/Memo) that allows identifying the transfer beneficiary or destination for a transaction.

tag

String

Additional reference id that you can send with a withdrawal request.

networkType

String

e.g., ETH Specify a networkType for symbols that support multiple networks.

One of ETH, TRON,XLM, FTM, MATIC

NOTE: Only applicable to USDT, USDC, MATIC, and FTM coins.

accountId

String

e.g., CA1000012R Specify the accountId of the sub-account.

message

String

Additional field to add any messages/notes.

status

String

e.g., DONE Denotes the status of the withdrawal. Can be one of DONE or PROCESSING

txHash

String

e.g.,70a867671a6e01e91f5888d800d3978e2ec9aec6770740572a0a485b7d4b6629

Specify the txHash (transactions hash) for transactions that are DONE

NOTE: This does not create a new transaction on the blockchain.

Returns a TransactionObject.

{
  "itemDateTime": 1667206700438,
  "adminApproval": "PROCESSING",
  "networkType": "xrp",
  "address": "1EasiKeuuxEyjGwZfWF3Xh1muNjGpjDmeA",
  "networkFeeAqua": 0,
  "quantity": 0.005,
  "bankInfo": {},
  "txId": "8c7e0127-e5b2-48c8-9fac-5ad8c3eca69d",
  "symbol": "BTC",
  "username": "helloWorld",
  "transactionType": "WITHDRAW",
  "createdAt": 1667206700438,
  "updatedAt": 1667206700438
}