Details of the JSON and Object and description table of crypto transaction fee recommendations API created by Crypto APIs
In this article, I will try to clarify the object table and JSON output specifically of Crypto APIs' crypto transaction fee recommendations API. The object table and JSON output provide detailed information about the recommended transaction fees for various cryptocurrencies. Understanding how to interpret and utilize this data can be crucial for optimizing the efficiency and cost of crypto transactions.
Object and Description of API Output
Objects | Description |
apiVersion | Specifies the version of the API that incorporates this endpoint. |
requestId | Defines the ID of the request. The requestId is generated by Crypto APIs and it's unique for every request. |
context | In batch situations the USer can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the USer. |
data | |
item | |
unit | Currency unit. |
fast | Fast fee per byte calculated from unconfirmed transactions |
slow | Slow fee per byte calculated from unconfirmed transactions |
standard | Standard fee per byte calculated from unconfirmed transactions |
feeCushionMultiplier | Fee cushion multiplier used to multiply the base fee |
apiVersion: This object specifies the version of the Crypto APIs API that incorporates the endpoint being accessed.
requestId: This object defines the unique ID of the request being made to the Crypto APIs API. It is generated by Crypto APIs.
context: This object is used in batch situations to allow the user to correlate responses with requests. It is specified by the user and is present in the response regardless of whether it was successful or returned as an error.
data: This object contains data relevant to the request being made.
item: This object contains data about a specific item relevant to the request being made.
unit: This object specifies the currency unit being used in the request.
fast: This object contains the fee per byte calculated from unconfirmed transactions that is considered fast.
slow: This object contains the fee per byte calculated from unconfirmed transactions that is considered slow.
standard: This object contains the fee per byte calculated from unconfirmed transactions that is considered standard.
feeCushionMultiplier: This object contains the fee cushion multiplier used to multiply the base fee for a transaction.
The information in the table is useful because it provides details about various objects related to transaction fee recommendations for cryptocurrencies. Understanding the meaning and significance of these objects can be crucial for optimizing the efficiency and cost of crypto transactions. For example, the unit object specifies the currency being used, which is important to know when making a transaction. The fast, slow, and standard objects provide information about different fee options that can be chosen based on the desired speed of the transaction. The feeCushionMultiplier object allows the user to adjust the base fee for a transaction based on their own risk tolerance and desired level of confirmation. All of this information can help the user make informed decisions about their crypto transactions.
JSON REST Output
This JSON output contains information about a cryptocurrency transaction. The top level objects include "apiVersion", "requestId", "context", and "data". The "apiVersion" object specifies the version of the Crypto APIs API being used. The "requestId" object is a unique ID generated by Crypto APIs for the request being made. The "context" object is specified by the user and is present in the response regardless of whether it was successful or returned as an error. The "data" object contains information about the transaction itself.
Within the "data" object, there is an "item" object that contains various properties about the transaction, such as the transaction hash, transaction ID, and timestamps. There is also an object for the transaction fee, which includes the amount and the unit of the fee. The "blockchainSpecific" object contains information that is specific to the blockchain the transaction is taking place on, such as the locktime, size, and version of the transaction. This object also includes lists of the inputs ("vin") and outputs ("vout") for the transaction. Each input and output includes information about the addresses involved and the value being transferred.
{
"apiVersion": "2021-03-20",
"requestId": "601c1710034ed6d407996b30",
"context": "yourExampleString",
"data": {
"item": {
"index": 1,
"isConfirmed": true,
"minedInBlockHash": "00000000407f119ecb74b44229228910400aaeb9f4e3b9869955b85a53e9b7db",
"minedInBlockHeight": 1939750,
"recipients": [
{
"address": "2MzakdGTEp8SMWEHKwKM4HYv6uNCBXtHpkV",
"amount": "0.000144"
}
],
"senders": [
{
"address": "2N5PcdirZUzKF9bWuGdugNuzcQrCbBudxv1",
"amount": "0.00873472"
}
],
"timestamp": 1582202940,
"transactionHash": "1ec73b0f61359927d02376b35993b756b1097cb9a857bec23da4c98c4977d2b2",
"transactionId": "4b66461bf88b61e1e4326356534c135129defb504c7acb2fd6c92697d79eb250",
"fee": {
"amount": "0.00016932",
"unit": "ZEC"
},
"blockchainSpecific": {
"locktime": 1781965,
"size": 248,
"vSize": 166,
"version": 1,
"vin": [
{
"addresses": [
"2N5PcdirZUzKF9bWuGdugNuzcQrCbBudxv1"
],
"coinbase": "0399991d20706f6f6c2e656e6a6f79626f646965732e636f6d20393963336532346234374747a53e994c4a000001",
"scriptSig": {
"asm": "0014daaf6d5cb86befe42df851a4d1df052e663754c1",
"hex": "160014daaf6d5cb86befe42df851a4d1df052e663754c1",
"type": "scripthash"
},
"sequence": 4294967295,
"txid": "caee978cae255bbe303ac86152679e46113a8b12925aa3afaa312d89d11ccbf8",
"txinwitness": [
"3045022100c11ea5740bcd69f0f68a4914279838014d28923134d18e05c5a5486dfd06cc8c02200dadccec3f07bed0d1040f9e5a155efa5fdd40fc91f92342578d26848da4c6b901"
],
"value": "0.00873472",
"vout": 1
}
],
"vout": [
{
"isSpent": false,
"scriptPubKey": {
"addresses": [
"2MzakdGTEp8SMWEHKwKM4HYv6uNCBXtHpkV"
],
"asm": "OP_HASH160 507a5bd8cac1d9efdf4c0a4bfacb3e0abb4f8d15 OP_EQUAL",
"hex": "a914507a5bd8cac1d9efdf4c0a4bfacb3e0abb4f8d1587",
"reqSigs": 1,
"type": "scripthash"
},
"value": "0.00014400"
}
]
}
}
}
}
Conclusion
In conclusion, we have discussed the object table and JSON output of Crypto APIs' crypto transaction fee recommendations API. We have described the various objects that are included in this output, such as "apiVersion", "requestId", "context", and "data". We have also discussed the contents of the "data" object, including the "item" object and the "blockchainSpecific" object. Understanding the information provided in this output can be useful for optimizing the efficiency and cost of cryptocurrency transactions.
Source
The Crypto APIs crypto transaction fee recommendations API can be accessed through the third party data marketplace of Worldindata. This marketplace allows users to request access to a variety of APIs and data sources, including the Crypto APIs crypto transaction fee recommendations API. By using the Worldindata marketplace, users can easily discover and access the data and APIs they need for their projects. To request access to the Crypto APIs crypto transaction fee recommendations API through the Worldindata marketplace, users will need to create an account and follow the necessary steps to request access to the API. Once access has been granted, users will be able to use the API to retrieve transaction fee recommendations for various cryptocurrencies.