Utility
All commands are listed below and detailed on their own section.
This endpoint searches for one of the following with the given "value" parameter in the PIRI network:
Token
Address
Transaction
Search content | Address, Token Name, Transaction ID
OK
POST /search HTTP/1.1
Host: core.pirichain.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 16
"value='text'"
OK
[
{
"type": "token",
"data": {
"_id": "<id>",
"tokenSymbol": "test",
"tokenName": "test",
"logo": "<img_url or base64>",
"assetID": 10012
}
}
]
Get test PIRI tokens for development purposes. This endpoint is typically used on testnet environments for testing purposes.
PIRI address to receive test tokens
Test PIRI sent successfully
POST /givemePiri HTTP/1.1
Host: core.pirichain.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 18
"address='text'"
Test PIRI sent successfully
{
"error": 0,
"message": "Test PIRI sent successfully",
"txHash": "d357d4..."
}
This endpoint allows reloading of network configuration settings on the blockchain network. By providing the hanOwnerSHA3 parameter (which is the SHA3 hash obtained during the blockchain network setup), the network settings can be reloaded and refreshed.
SHA3 hash obtained during blockchain network setup, required for authentication to reload network settings
Response from reload settings operation
POST /reloadSetting HTTP/1.1
Host: core.pirichain.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 23
"hanOwnerSHA3='text'"
Response from reload settings operation
{
"error": 0
}
Was this helpful?