diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index 21b2d33f..47617e15 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -5,6 +5,7 @@ version = "0.1.75"
authors = ["contact@blockfrost.io"]
edition = "2021"
license = "Apache-2.0"
+readme = "../README.md"
[dependencies]
serde = { version = "^1.0", features = ["derive"] }
diff --git a/rust/src/models/_utils_txs_evaluate_utxos_post_request.rs b/rust/src/models/_utils_txs_evaluate_utxos_post_request.rs
index e0dd35f0..0e96f730 100644
--- a/rust/src/models/_utils_txs_evaluate_utxos_post_request.rs
+++ b/rust/src/models/_utils_txs_evaluate_utxos_post_request.rs
@@ -1,7 +1,7 @@
/*
* Blockfrost.io ~ API Documentation
*
- * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
+ * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
*
* The version of the OpenAPI document: 0.1.76
* Contact: contact@blockfrost.io
@@ -11,6 +11,8 @@
use crate::models;
use serde::{Deserialize, Serialize};
+use super::_utils_txs_evaluate_utxos_post_request_additional_utxo_set_inner_inner::UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInner;
+
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UtilsTxsEvaluateUtxosPostRequest {
/// Transaction CBOR (encoded using base64 or base16).
@@ -18,7 +20,8 @@ pub struct UtilsTxsEvaluateUtxosPostRequest {
pub cbor: String,
/// Additional UTXO as an array of tuples [TxIn, TxOut]. See https://ogmios.dev/mini-protocols/local-tx-submission/#additional-utxo-set.
#[serde(rename = "additionalUtxoSet", skip_serializing_if = "Option::is_none")]
- pub additional_utxo_set: Option>>,
+ pub additional_utxo_set:
+ Option>>,
}
impl UtilsTxsEvaluateUtxosPostRequest {
@@ -29,4 +32,3 @@ impl UtilsTxsEvaluateUtxosPostRequest {
}
}
}
-
diff --git a/rust/src/models/_utils_txs_evaluate_utxos_post_request_additional_utxo_set_inner_inner.rs b/rust/src/models/_utils_txs_evaluate_utxos_post_request_additional_utxo_set_inner_inner.rs
index 3b95f02a..3dd156ea 100644
--- a/rust/src/models/_utils_txs_evaluate_utxos_post_request_additional_utxo_set_inner_inner.rs
+++ b/rust/src/models/_utils_txs_evaluate_utxos_post_request_additional_utxo_set_inner_inner.rs
@@ -1,7 +1,7 @@
/*
* Blockfrost.io ~ API Documentation
*
- * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
+ * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
*
* The version of the OpenAPI document: 0.1.76
* Contact: contact@blockfrost.io
@@ -11,6 +11,8 @@
use crate::models;
use serde::{Deserialize, Serialize};
+use super::_utils_txs_evaluate_utxos_post_request_additional_utxo_set_inner_inner_any_of_1_value::UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1Value;
+
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInner {
/// Transaction hash for the input
@@ -23,7 +25,7 @@ pub struct UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInner {
#[serde(rename = "address")]
pub address: String,
#[serde(rename = "value")]
- pub value: Box,
+ pub value: Box,
#[serde(rename = "datum_hash", skip_serializing_if = "Option::is_none")]
pub datum_hash: Option,
#[serde(rename = "datum", skip_serializing_if = "Option::is_none")]
@@ -33,7 +35,10 @@ pub struct UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInner {
}
impl UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInner {
- pub fn new(address: String, value: models::UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1Value) -> UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInner {
+ pub fn new(
+ address: String,
+ value: UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1Value,
+ ) -> UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInner {
UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInner {
tx_id: None,
index: None,
@@ -45,4 +50,3 @@ impl UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInner {
}
}
}
-
diff --git a/rust/src/models/_utils_txs_evaluate_utxos_post_request_additional_utxo_set_inner_inner_any_of_1.rs b/rust/src/models/_utils_txs_evaluate_utxos_post_request_additional_utxo_set_inner_inner_any_of_1.rs
index 0d803bda..2b78d727 100644
--- a/rust/src/models/_utils_txs_evaluate_utxos_post_request_additional_utxo_set_inner_inner_any_of_1.rs
+++ b/rust/src/models/_utils_txs_evaluate_utxos_post_request_additional_utxo_set_inner_inner_any_of_1.rs
@@ -1,7 +1,7 @@
/*
* Blockfrost.io ~ API Documentation
*
- * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
+ * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
*
* The version of the OpenAPI document: 0.1.76
* Contact: contact@blockfrost.io
@@ -11,6 +11,8 @@
use crate::models;
use serde::{Deserialize, Serialize};
+use super::_utils_txs_evaluate_utxos_post_request_additional_utxo_set_inner_inner_any_of_1_value::UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1Value;
+
/// UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1 : TxOut
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1 {
@@ -18,7 +20,7 @@ pub struct UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1 {
#[serde(rename = "address")]
pub address: String,
#[serde(rename = "value")]
- pub value: Box,
+ pub value: Box,
#[serde(rename = "datum_hash", skip_serializing_if = "Option::is_none")]
pub datum_hash: Option,
#[serde(rename = "datum", skip_serializing_if = "Option::is_none")]
@@ -29,7 +31,10 @@ pub struct UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1 {
impl UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1 {
/// TxOut
- pub fn new(address: String, value: models::UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1Value) -> UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1 {
+ pub fn new(
+ address: String,
+ value: UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1Value,
+ ) -> UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1 {
UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1 {
address,
value: Box::new(value),
@@ -39,4 +44,3 @@ impl UtilsTxsEvaluateUtxosPostRequestAdditionalUtxoSetInnerInnerAnyOf1 {
}
}
}
-
diff --git a/rust/src/models/account_addresses_total.rs b/rust/src/models/account_addresses_total.rs
index 63d5f430..4795517d 100644
--- a/rust/src/models/account_addresses_total.rs
+++ b/rust/src/models/account_addresses_total.rs
@@ -1,7 +1,7 @@
/*
* Blockfrost.io ~ API Documentation
*
- * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
+ * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
*
* The version of the OpenAPI document: 0.1.76
* Contact: contact@blockfrost.io
@@ -11,22 +11,29 @@
use crate::models;
use serde::{Deserialize, Serialize};
+use super::account_addresses_total_received_sum_inner::AccountAddressesTotalReceivedSumInner;
+
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AccountAddressesTotal {
/// Bech32 encoded stake address
#[serde(rename = "stake_address")]
pub stake_address: String,
#[serde(rename = "received_sum")]
- pub received_sum: Vec,
+ pub received_sum: Vec,
#[serde(rename = "sent_sum")]
- pub sent_sum: Vec,
+ pub sent_sum: Vec,
/// Count of all transactions for all addresses associated with the account
#[serde(rename = "tx_count")]
pub tx_count: i32,
}
impl AccountAddressesTotal {
- pub fn new(stake_address: String, received_sum: Vec, sent_sum: Vec, tx_count: i32) -> AccountAddressesTotal {
+ pub fn new(
+ stake_address: String,
+ received_sum: Vec,
+ sent_sum: Vec,
+ tx_count: i32,
+ ) -> AccountAddressesTotal {
AccountAddressesTotal {
stake_address,
received_sum,
@@ -35,4 +42,3 @@ impl AccountAddressesTotal {
}
}
}
-
diff --git a/rust/src/models/account_utxo_content_inner.rs b/rust/src/models/account_utxo_content_inner.rs
index 4eac9637..d49d5954 100644
--- a/rust/src/models/account_utxo_content_inner.rs
+++ b/rust/src/models/account_utxo_content_inner.rs
@@ -1,7 +1,7 @@
/*
* Blockfrost.io ~ API Documentation
*
- * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
+ * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
*
* The version of the OpenAPI document: 0.1.76
* Contact: contact@blockfrost.io
@@ -11,6 +11,8 @@
use crate::models;
use serde::{Deserialize, Serialize};
+use super::tx_content_output_amount_inner::TxContentOutputAmountInner;
+
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AccountUtxoContentInner {
/// Bech32 encoded addresses
@@ -26,7 +28,7 @@ pub struct AccountUtxoContentInner {
#[serde(rename = "output_index")]
pub output_index: i32,
#[serde(rename = "amount")]
- pub amount: Vec,
+ pub amount: Vec,
/// Block hash of the UTXO
#[serde(rename = "block")]
pub block: String,
@@ -37,12 +39,25 @@ pub struct AccountUtxoContentInner {
#[serde(rename = "inline_datum", deserialize_with = "Option::deserialize")]
pub inline_datum: Option,
/// The hash of the reference script of the output
- #[serde(rename = "reference_script_hash", deserialize_with = "Option::deserialize")]
+ #[serde(
+ rename = "reference_script_hash",
+ deserialize_with = "Option::deserialize"
+ )]
pub reference_script_hash: Option,
}
impl AccountUtxoContentInner {
- pub fn new(address: String, tx_hash: String, tx_index: i32, output_index: i32, amount: Vec, block: String, data_hash: Option, inline_datum: Option, reference_script_hash: Option) -> AccountUtxoContentInner {
+ pub fn new(
+ address: String,
+ tx_hash: String,
+ tx_index: i32,
+ output_index: i32,
+ amount: Vec,
+ block: String,
+ data_hash: Option,
+ inline_datum: Option,
+ reference_script_hash: Option,
+ ) -> AccountUtxoContentInner {
AccountUtxoContentInner {
address,
tx_hash,
@@ -56,4 +71,3 @@ impl AccountUtxoContentInner {
}
}
}
-
diff --git a/rust/src/models/address_content.rs b/rust/src/models/address_content.rs
index 99218d04..03995402 100644
--- a/rust/src/models/address_content.rs
+++ b/rust/src/models/address_content.rs
@@ -1,7 +1,7 @@
/*
* Blockfrost.io ~ API Documentation
*
- * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
+ * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
*
* The version of the OpenAPI document: 0.1.76
* Contact: contact@blockfrost.io
@@ -11,13 +11,15 @@
use crate::models;
use serde::{Deserialize, Serialize};
+use super::tx_content_output_amount_inner::TxContentOutputAmountInner;
+
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AddressContent {
/// Bech32 encoded addresses
#[serde(rename = "address")]
pub address: String,
#[serde(rename = "amount")]
- pub amount: Vec,
+ pub amount: Vec,
/// Stake address that controls the key
#[serde(rename = "stake_address", deserialize_with = "Option::deserialize")]
pub stake_address: Option,
@@ -30,7 +32,13 @@ pub struct AddressContent {
}
impl AddressContent {
- pub fn new(address: String, amount: Vec, stake_address: Option, r#type: Type, script: bool) -> AddressContent {
+ pub fn new(
+ address: String,
+ amount: Vec,
+ stake_address: Option,
+ r#type: Type,
+ script: bool,
+ ) -> AddressContent {
AddressContent {
address,
amount,
@@ -54,4 +62,3 @@ impl Default for Type {
Self::Byron
}
}
-
diff --git a/rust/src/models/address_content_extended.rs b/rust/src/models/address_content_extended.rs
index 41b9ac1b..2862ae55 100644
--- a/rust/src/models/address_content_extended.rs
+++ b/rust/src/models/address_content_extended.rs
@@ -1,7 +1,7 @@
/*
* Blockfrost.io ~ API Documentation
*
- * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
+ * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
*
* The version of the OpenAPI document: 0.1.76
* Contact: contact@blockfrost.io
@@ -11,13 +11,15 @@
use crate::models;
use serde::{Deserialize, Serialize};
+use super::address_content_extended_amount_inner::AddressContentExtendedAmountInner;
+
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AddressContentExtended {
/// Bech32 encoded addresses
#[serde(rename = "address")]
pub address: String,
#[serde(rename = "amount")]
- pub amount: Vec,
+ pub amount: Vec,
/// Stake address that controls the key
#[serde(rename = "stake_address", deserialize_with = "Option::deserialize")]
pub stake_address: Option,
@@ -30,7 +32,13 @@ pub struct AddressContentExtended {
}
impl AddressContentExtended {
- pub fn new(address: String, amount: Vec, stake_address: Option, r#type: Type, script: bool) -> AddressContentExtended {
+ pub fn new(
+ address: String,
+ amount: Vec,
+ stake_address: Option,
+ r#type: Type,
+ script: bool,
+ ) -> AddressContentExtended {
AddressContentExtended {
address,
amount,
@@ -54,4 +62,3 @@ impl Default for Type {
Self::Byron
}
}
-
diff --git a/rust/src/models/address_content_total.rs b/rust/src/models/address_content_total.rs
index e3192d6b..9cb9e926 100644
--- a/rust/src/models/address_content_total.rs
+++ b/rust/src/models/address_content_total.rs
@@ -1,7 +1,7 @@
/*
* Blockfrost.io ~ API Documentation
*
- * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
+ * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
*
* The version of the OpenAPI document: 0.1.76
* Contact: contact@blockfrost.io
@@ -11,22 +11,29 @@
use crate::models;
use serde::{Deserialize, Serialize};
+use super::tx_content_output_amount_inner::TxContentOutputAmountInner;
+
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AddressContentTotal {
/// Bech32 encoded address
#[serde(rename = "address")]
pub address: String,
#[serde(rename = "received_sum")]
- pub received_sum: Vec,
+ pub received_sum: Vec,
#[serde(rename = "sent_sum")]
- pub sent_sum: Vec,
+ pub sent_sum: Vec,
/// Count of all transactions on the address
#[serde(rename = "tx_count")]
pub tx_count: i32,
}
impl AddressContentTotal {
- pub fn new(address: String, received_sum: Vec, sent_sum: Vec, tx_count: i32) -> AddressContentTotal {
+ pub fn new(
+ address: String,
+ received_sum: Vec,
+ sent_sum: Vec,
+ tx_count: i32,
+ ) -> AddressContentTotal {
AddressContentTotal {
address,
received_sum,
@@ -35,4 +42,3 @@ impl AddressContentTotal {
}
}
}
-
diff --git a/rust/src/models/address_utxo_content_inner.rs b/rust/src/models/address_utxo_content_inner.rs
index f157ee4f..eae510e8 100644
--- a/rust/src/models/address_utxo_content_inner.rs
+++ b/rust/src/models/address_utxo_content_inner.rs
@@ -1,7 +1,7 @@
/*
* Blockfrost.io ~ API Documentation
*
- * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
+ * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
*
* The version of the OpenAPI document: 0.1.76
* Contact: contact@blockfrost.io
@@ -11,6 +11,8 @@
use crate::models;
use serde::{Deserialize, Serialize};
+use super::tx_content_output_amount_inner::TxContentOutputAmountInner;
+
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AddressUtxoContentInner {
/// Bech32 encoded addresses - useful when querying by payment_cred
@@ -26,7 +28,7 @@ pub struct AddressUtxoContentInner {
#[serde(rename = "output_index")]
pub output_index: i32,
#[serde(rename = "amount")]
- pub amount: Vec,
+ pub amount: Vec,
/// Block hash of the UTXO
#[serde(rename = "block")]
pub block: String,
@@ -37,12 +39,25 @@ pub struct AddressUtxoContentInner {
#[serde(rename = "inline_datum", deserialize_with = "Option::deserialize")]
pub inline_datum: Option,
/// The hash of the reference script of the output
- #[serde(rename = "reference_script_hash", deserialize_with = "Option::deserialize")]
+ #[serde(
+ rename = "reference_script_hash",
+ deserialize_with = "Option::deserialize"
+ )]
pub reference_script_hash: Option,
}
impl AddressUtxoContentInner {
- pub fn new(address: String, tx_hash: String, tx_index: i32, output_index: i32, amount: Vec, block: String, data_hash: Option, inline_datum: Option, reference_script_hash: Option) -> AddressUtxoContentInner {
+ pub fn new(
+ address: String,
+ tx_hash: String,
+ tx_index: i32,
+ output_index: i32,
+ amount: Vec,
+ block: String,
+ data_hash: Option,
+ inline_datum: Option,
+ reference_script_hash: Option,
+ ) -> AddressUtxoContentInner {
AddressUtxoContentInner {
address,
tx_hash,
@@ -56,4 +71,3 @@ impl AddressUtxoContentInner {
}
}
}
-
diff --git a/rust/src/models/aggregator_features_message.rs b/rust/src/models/aggregator_features_message.rs
index 1e377c8e..0d43d0c3 100644
--- a/rust/src/models/aggregator_features_message.rs
+++ b/rust/src/models/aggregator_features_message.rs
@@ -1,7 +1,7 @@
/*
* Blockfrost.io ~ API Documentation
*
- * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
+ * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
*
* The version of the OpenAPI document: 0.1.76
* Contact: contact@blockfrost.io
@@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize};
use serde_with::serde_as;
+use super::aggregator_features_message_capabilities::AggregatorFeaturesMessageCapabilities;
+
/// AggregatorFeaturesMessage : Represents general information about Aggregator public information and signing capabilities
#[serde_as]
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
@@ -26,12 +28,16 @@ pub struct AggregatorFeaturesMessage {
#[serde(rename = "documentation_url")]
pub documentation_url: Vec,
#[serde(rename = "capabilities")]
- pub capabilities: Box,
+ pub capabilities: Box,
}
impl AggregatorFeaturesMessage {
/// Represents general information about Aggregator public information and signing capabilities
- pub fn new(open_api_version: Vec, documentation_url: Vec, capabilities: models::AggregatorFeaturesMessageCapabilities) -> AggregatorFeaturesMessage {
+ pub fn new(
+ open_api_version: Vec,
+ documentation_url: Vec,
+ capabilities: AggregatorFeaturesMessageCapabilities,
+ ) -> AggregatorFeaturesMessage {
AggregatorFeaturesMessage {
open_api_version,
documentation_url,
@@ -39,4 +45,3 @@ impl AggregatorFeaturesMessage {
}
}
}
-
diff --git a/rust/src/models/aggregator_features_message_capabilities.rs b/rust/src/models/aggregator_features_message_capabilities.rs
index 95d25462..acbee0b7 100644
--- a/rust/src/models/aggregator_features_message_capabilities.rs
+++ b/rust/src/models/aggregator_features_message_capabilities.rs
@@ -1,7 +1,7 @@
/*
* Blockfrost.io ~ API Documentation
*
- * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
+ * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
*
* The version of the OpenAPI document: 0.1.76
* Contact: contact@blockfrost.io
@@ -11,19 +11,27 @@
use crate::models;
use serde::{Deserialize, Serialize};
+use super::aggregator_features_message_capabilities_cardano_transactions_prover::AggregatorFeaturesMessageCapabilitiesCardanoTransactionsProver;
+
/// AggregatorFeaturesMessageCapabilities : Capabilities of the aggregator
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AggregatorFeaturesMessageCapabilities {
/// Signed entity types that are signed by the aggregator
#[serde(rename = "signed_entity_types")]
pub signed_entity_types: Vec,
- #[serde(rename = "cardano_transactions_prover", skip_serializing_if = "Option::is_none")]
- pub cardano_transactions_prover: Option>,
+ #[serde(
+ rename = "cardano_transactions_prover",
+ skip_serializing_if = "Option::is_none"
+ )]
+ pub cardano_transactions_prover:
+ Option>,
}
impl AggregatorFeaturesMessageCapabilities {
/// Capabilities of the aggregator
- pub fn new(signed_entity_types: Vec) -> AggregatorFeaturesMessageCapabilities {
+ pub fn new(
+ signed_entity_types: Vec,
+ ) -> AggregatorFeaturesMessageCapabilities {
AggregatorFeaturesMessageCapabilities {
signed_entity_types,
cardano_transactions_prover: None,
@@ -48,4 +56,3 @@ impl Default for SignedEntityTypes {
Self::MithrilStakeDistribution
}
}
-
diff --git a/rust/src/models/asset.rs b/rust/src/models/asset.rs
index e6280a1b..2471bb6d 100644
--- a/rust/src/models/asset.rs
+++ b/rust/src/models/asset.rs
@@ -1,7 +1,7 @@
/*
* Blockfrost.io ~ API Documentation
*
- * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
+ * Blockfrost is an API as a service that allows users to interact with the Cardano blockchain and parts of its ecosystem. ## Tokens After signing up on https://blockfrost.io, a `project_id` token is automatically generated for each project. HTTP header of your request MUST include this `project_id` in order to authenticate against Blockfrost servers. ## Available networks At the moment, you can use the following networks. Please, note that each network has its own `project_id`.
Network
Endpoint
Cardano mainnet
https://cardano-mainnet.blockfrost.io/api/v0
Cardano preprod
https://cardano-preprod.blockfrost.io/api/v0
Cardano preview
https://cardano-preview.blockfrost.io/api/v0
InterPlanetary File System
https://ipfs.blockfrost.io/api/v0
Milkomeda mainnet
https://milkomeda-mainnet.blockfrost.io/api/v0
Milkomeda testnet
https://milkomeda-testnet.blockfrost.io/api/v0
## Milkomeda
For more information about how to use Milkomeda as well as the list of available endpoints, see the Milkomeda section.
## Concepts * All endpoints return either a JSON object or an array. * Data is returned in *ascending* (oldest first, newest last) order, if not stated otherwise. * You might use the `?order=desc` query parameter to reverse this order. * By default, we return 100 results at a time. You have to use `?page=2` to list through the results. * All time and timestamp related fields (except `server_time`) are in seconds of UNIX time. * All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces. * Addresses, accounts and pool IDs are in Bech32 format. * All values are case sensitive. * All hex encoded values are lower case. * Examples are not based on real data. Any resemblance to actual events is purely coincidental. * We allow to upload files up to 100MB of size to IPFS. This might increase in the future. * Only pinned IPFS files are counted towards the IPFS quota. * Non-pinned IPFS files are subject to regular garbage collection and will be removed unless pinned. * We allow maximum of 100 queued pins per IPFS user. ## Errors ### HTTP Status codes The following are HTTP status code your application might receive when reaching Blockfrost endpoints and it should handle all of these cases. * HTTP `400` return code is used when the request is not valid. * HTTP `402` return code is used when the projects exceed their daily request limit. * HTTP `403` return code is used when the request is not authenticated. * HTTP `404` return code is used when the resource doesn't exist. * HTTP `418` return code is used when the user has been auto-banned for flooding too much after previously receiving error code `402` or `429`. * HTTP `425` return code is used in Cardano networks, when the user has submitted a transaction when the mempool is already full, not accepting new txs straight away. * HTTP `425` return code is used in IPFS network, when the user has submitted a pin when the pin queue is already full, not accepting new pins straight away. * HTTP `429` return code is used when the user has sent too many requests in a given amount of time and therefore has been rate-limited. * HTTP `500` return code is used when our endpoints are having a problem. ### Error codes An internal error code number is used for better indication of the error in question. It is passed using the following payload. ```json { \"status_code\": 403, \"error\": \"Forbidden\", \"message\": \"Invalid project token.\" } ``` ## Limits There are two types of limits we are enforcing: The first depends on your plan and is the number of request we allow per day. We defined the day from midnight to midnight of UTC time. The second is rate limiting. We limit an end user, distinguished by IP address, to 10 requests per second. On top of that, we allow each user to send burst of 500 requests, which cools off at rate of 10 requests per second. In essence, a user is allowed to make another whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts to make a call 3 seconds after whole burst, 30 requests will be processed. We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and we will make sure to take it into account as much as we can. ## SDKs We support a number of SDKs that will help you in developing your application on top of Blockfrost.
*
* The version of the OpenAPI document: 0.1.76
* Contact: contact@blockfrost.io
@@ -11,6 +11,8 @@
use crate::models;
use serde::{Deserialize, Serialize};
+use super::asset_metadata::AssetMetadata;
+
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Asset {
/// Hex-encoded asset full name
@@ -34,21 +36,41 @@ pub struct Asset {
/// Count of mint and burn transactions
#[serde(rename = "mint_or_burn_count")]
pub mint_or_burn_count: i32,
- /// On-chain metadata which SHOULD adhere to the valid standards, based on which we perform the look up and display the asset (best effort)
+ /// On-chain metadata which SHOULD adhere to the valid standards, based on which we perform the look up and display the asset (best effort)
#[serde(rename = "onchain_metadata", deserialize_with = "Option::deserialize")]
pub onchain_metadata: Option>,
- /// If on-chain metadata passes validation, we display the standard under which it is valid
- #[serde(rename = "onchain_metadata_standard", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
+ /// If on-chain metadata passes validation, we display the standard under which it is valid
+ #[serde(
+ rename = "onchain_metadata_standard",
+ default,
+ with = "::serde_with::rust::double_option",
+ skip_serializing_if = "Option::is_none"
+ )]
pub onchain_metadata_standard: Option