Transaction

All transactions methods are below and detailed on their section.

List transactions

post
/listTransactions

This endpoint lists transactions on the PIRI network based on the skip and limit parameters provided to it. The returned transactions are transactions confirmed by nodes.

Body
skipnumberRequired

Page count for skip according to limit value.

Default: 0
limitnumber ยท max: 100Required

Record count for per page

Default: 10
Responses
chevron-right
200

OK

application/json; charset=utf-8
txCountTotalinteger ยท int32Required

Total number of transactions

post
/listTransactions
200

OK

List pool transactions

post
/listPoolTransactions

This endpoint lists pending and unconfirmed transfers created in the PIRI network. The approval time for a transaction can vary depending on the approval times of the nodes. However, the time it takes for a transaction to be included in a block (once confirmed) is a maximum of 30 seconds.

Another important point to note here is that if a transaction is confirmed but has been approved by an insufficient number of nodes for any reason, the maximum time that can pass for it to be reevaluated and approved by the nodes that did not confirm it is 6 hours. A transaction that is not confirmed within 6 hours will not undergo reconfirmation checks.

Furthermore, in the PIRI network, if a transaction is not confirmed, it is not retained as an unconfirmed transaction in the system and is instantly disregarded.

Responses
chevron-right
200

OK

application/json; charset=utf-8
typeinteger ยท int32Required
confirmedbooleanRequired
confirmationCountinteger ยท int32Required
_idstringRequired
fromstringRequired
tostringRequired
assetIDinteger ยท int32Required
timeStampinteger ยท int64Required
amountinteger ยท int32Required
transactionHashstringRequired
feenumberRequired
signaturestringRequired
pubstringRequired
symbolstringRequired
__vinteger ยท int32Required
post
/listPoolTransactions
200

OK

List transactions by asset ID

post
/listTransactionsByAssetID

This endpoint returns the same result as the "listTransactions" endpoint, but specific to the specified asset type (PIRI or Token), based on the provided assetID parameter.

Body
skipnumberRequired

Page count for skip according to limit value.

Default: 0
limitnumber ยท max: 100Required

Record count for per page

Default: 50
assetIDstringRequired

Asset ID

descbooleanOptional

Descending order

Default: false
Responses
chevron-right
200

OK

application/json; charset=utf-8
countinteger ยท int32Required

Total number of transactions matching the asset ID filter

post
/listTransactionsByAssetID
200

OK

List transactions by address

post
/listTransactionsByAddr

This endpoint returns the same result as the "listTransactions" endpoint, but only specific to the provided PIRI Address, based on the specified "address" parameter.

Body
skipnumberRequired

Page count for skip according to limit value.

Default: 0
limitnumber ยท max: 100Required

Record count for per page

Default: 50
addressstringRequired

PIRI Address

Responses
chevron-right
200

OK

application/json; charset=utf-8
countinteger ยท int32Required

Total number of transactions for the specified address

post
/listTransactionsByAddr
200

OK

Get transaction details

post
/getTransaction

This endpoint returns the details of a transaction created within the PIRI network. The parameter it takes is the "tx" value, which corresponds to the hash value associated with the transaction. It is also referred to as "transactionHash" within the schemas.

The list of validating nodes that approved the transaction is included in the returned transaction as "validatorNodes."

Body
txstringRequired

Transaction Hash

Responses
chevron-right
200

OK

application/json; charset=utf-8
typeinteger ยท int32Required
confirmedbooleanRequired
confirmationCountinteger ยท int32Required
_idstringRequired
transactionHashstringRequired
__vinteger ยท int32Required
amountinteger ยท int32Required
assetIDinteger ยท int32Required
blockHeightinteger ยท int32Required
feenumberRequired
fromstringRequired
pubstringRequired
signaturestringRequired
symbolstringRequired
timeStampinteger ยท int64Required
tostringRequired
customDatastring[]Required

Additional custom data associated with the transaction

broadcastHexstringRequired
post
/getTransaction
200

OK

Get pool transaction details

post
/getPoolTransaction

This endpoint, like the "getTransaction" endpoint, returns the details of a pool transaction based on the specified "tx" parameter. However, once this transaction is confirmed, even if the provided "tx" information is correct, it will no longer return a result. In other words, this endpoint's response can be retrieved just before a transaction is confirmed.

Additionally, the returned result will have a different schema from the result that will be returned after this transaction is confirmed (e.g., information such as "blockHeight" and "validatorNodes").

Body
txstringRequired

Transaction Hash

Responses
chevron-right
200

OK

application/json; charset=utf-8
typeinteger ยท int32Required
confirmedbooleanRequired
confirmationCountinteger ยท int32Required
_idstringRequired
fromstringRequired
tostringRequired
assetIDinteger ยท int32Required
timeStampinteger ยท int64Required
amountinteger ยท int32Required
transactionHashstringRequired
feenumberRequired
signaturestringRequired
pubstringRequired
symbolstringRequired
__vinteger ยท int32Required
post
/getPoolTransaction
200

OK

Last updated