Transaction
Create and retrieve transactions.
GET /v1/:currency/Addresses/:address/Transactions
GET /v1/:currency/Addresses/:address/Transactions
Get transaction history for a given address.
Request
Headers
Header | Type | Description |
X-REQUEST-SIGNATURE |
| Address Signature of |
Path Parameters
Attribute | Type | Description |
currency |
| The currency of the transactions. |
address |
| The public address associated with the transactions. |
Query Parameters
Attribute | Type | Description |
status |
| Optional. Either Confirmed (default) - Only includes confirmed transactions on the blockchain. Incomplete - Only includes unconfirmed and failed transactions in Gluwa. |
offset |
| Optional. The number of entries to skip. |
limit |
| Optional. The number of transactions returned in in the response (max 100). |
Response
HTTP Status | Return Object |
200 | array of Transaction. |
Transaction
Attribute | Type | Description |
Status |
| The status of the transaction. Unconfirmed - The transaction was announce to the blockchain, but is not included in any block yet. Confirmed - The transaction was included in the blockchain and received a confirmation. Failed - The transaction has failed for some reason. |
Amount |
| The amount sent or received in this transaction. |
TotalAmount |
| The sum of the |
Currency |
| The currency of the transaction |
Sources |
| The sources of the transaction. For BTC, there can be multiple sources. |
Targets |
| The targets of the transaction. For BTC, there can be multiple targets. |
TxnHash |
| Blockchain transaction hash. |
CreatedDateTime |
| Time at which the transaction was created. |
ModifiedDateTime |
| Time at which the transaction was last modified. |
MerchantOrderID |
| Optional. Used by the receiver to identify a payment. Supported by QR code payment feature only. |
Note |
| Optional. A message attached to the transaction. It is an optional memo you can associate with the transaction. |
Fee |
| Optional. Transaction fee. |
ID |
| Optional. Gluwa's internal transaction ID. If the transaction was made outside of Gluwa's system (ex> Transaction was made directly on the blockchain), then this will not be available. |
Errors
HTTP Status | Error Code | Description |
400 |
| Invalid URL parameters |
400 |
| Invalid address format. |
403 |
|
|
403 |
|
|
403 |
| Invalid |
500 |
| Server error. |
503 |
| Service unavailable for the specified currency |
GET /v1/:currency/Transactions/:txnhash
GET /v1/:currency/Transactions/:txnhash
Request
Headers
Header | Type | Description |
X-REQUEST-SIGNATURE |
| Address Signature of an address involved with |
Path Parameters
Attribute | Type | Description |
currency |
| The currency of the transaction. |
txnhash |
| Blockchain transaction hash. |
Response
HTTP Status | Return Object |
200 |
Errors
HTTP Status | Error Code | Description |
400 |
| Invalid URL parameters |
400 |
| Invalid |
403 |
|
|
403 |
|
|
403 |
| Invalid |
404 |
| Transaction not found. |
500 |
| Server error. |
503 |
| Service unavailable for the specified currency |
POST /v1/Transactions
POST /v1/Transactions
Request
Request Body
Attribute | Type | Description |
Signature |
| Transaction signed with the sender's private key. See Creating Transaction Signatures. |
Amount |
| Transaction amount, not including the fee. This is the amount that the receiver receives. |
Fee |
| Transaction fee amount. Generally, you should use the amount from the Fee endpoint. Your transaction may not get processed by Gluwa if the fee amount is smaller than the minimum fee amount. |
Currency |
| The currency of the transaction. |
Source |
| Address of the sender. |
Target |
| Address of the receiver. |
Nonce |
| Optional. Required if using Gluwacoin as the currency of the transaction. Nonce is an unsigned integer used when creating reserve transaction signature. It must be unique each time you make any new transactions (transfer, exchange, etc). Maximum value is 2^256-1. |
MerchantOrderID |
| Optional. A string value attached to the transaction which can be used for traceability between Gluwa and your application. |
Note |
| Optional. Optional memo attached to the transaction. |
Idem |
| Optional. Used for idempotent requests. See Idempotent Requests. |
PaymentID |
| Optional. A unique identifier for a payment used with QR code payment feature. You can get this value by decoding the QR code. |
PaymentSig |
| Optional. Required if |
Response
HTTP Status | Return Object |
202 | Optional. TransactionHash. Only for |
TransactionHash
Attribute | Type | Description |
TxnHash |
|
|
Errors
HTTP Status | Error Code | Description |
400 |
| Invalid URL parameters |
400 |
| Request body is missing. |
400 |
| Request validation errors. |
400 |
| Request validation errors. |
403 |
| Invalid payment signature. |
409 |
| Transfer already exists. |
500 |
| Server error. |
503 |
| Service unavailable for the specified currency |
Last updated