GET All epoch params
GET One epoch params by number
GET All epoch params OData
GET One epoch params by number OData
GET Latest epoch params
Returns the parameters for the latest epoch.
GET /api/core/epochs/params/latest
👨💻 Code samples
- Node.js
- Python
- Rust
const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' });
const parameters_latest = await CBI.core.epochs.params.latest_();
console.log(parameters_latest);
CBI = CardanoBI(apiKey='YOUR-KEY', apiSecret='YOUR-SECRET' });
parameters_latest = await CBI.core.epochs.params.latest_();
print(parameters_latest);
let CBI = CardanoBI::new(Some("YOUR-KEY"), Some("YOUR-SECRET")).await.expect("Failed to initialize CardanoBI");
let parameters_latest = CBI.core.epochs.params.latest_(HashMap::new()).await.expect("Failed to call endpoint");
println!("parameters_latest: {:?}", parameters_latest);
💌 Response Codes
- 200
- 400
- 401
- 402
- 403
- 404
- 429
OK: Successful request.
{
"id": 295,
"epoch_no": 496,
"min_fee_a": 44,
"min_fee_b": 155381,
"max_block_size": 90112,
"max_tx_size": 16384,
"max_bh_size": 1100,
"key_deposit": 2000000,
"pool_deposit": 500000000,
"max_epoch": 18,
"optimal_pool_count": 500,
"influence": 0.3,
"monetary_expand_rate": 0.003,
"treasury_growth_rate": 0.2,
"decentralisation": 0,
"protocol_major": 8,
"protocol_minor": 0,
"min_utxo_value": 4310,
"min_pool_cost": 170000000,
"nonce": "ldm4y9zeQ3CNLPbRuC4+dFWmx6HMaAlpBdTQakipkVk=",
"cost_model_id": 111,
"price_mem": 0.0577,
"price_step": 0.0000721,
"max_tx_ex_mem": 14000000,
"max_tx_ex_steps": 10000000000,
"max_block_ex_mem": 62000000,
"max_block_ex_steps": 20000000000,
"max_val_size": 5000,
"collateral_percent": 150,
"max_collateral_inputs": 3,
"block_id": 10583584,
"extra_entropy": null,
"coins_per_utxo_size": 4310,
"nonce_hex": "95d9b8cbdcde43708d2cf6d1b82e3e7455a6c7a1cc68096905d4d06a48a99159"
}
Bad Request: The request was unacceptable, often due to missing a required parameter.
Response schema is undefined.
Unauthorized: No valid API key provided.
Response schema is undefined.
Quota Exceeded: This API key has reached its usage limit on request.
Response schema is undefined.
Access Denied: The request is missing a valid API key or token.
Response schema is undefined.
Not Found: The requested resource cannot be found.
Response schema is undefined.
Too Many Requests: This API key has reached its rate limit.
Response schema is undefined.
💌 Response Schemas
- 200
- 400
- 401
- 402
- 403
- 404
- 429
Status Code 200
Name | Type | Description |
---|---|---|
id | integer(int64) | The epoch param unique identifier. |
epoch_no | integer(int32) | The first epoch for which these parameters are valid. |
min_fee_a | integer(int32) | The 'a' parameter to calculate the minimum transaction fee. |
min_fee_b | integer(int32) | The 'b' parameter to calculate the minimum transaction fee. |
max_block_size | integer(int32) | The maximum block size (in bytes). |
max_tx_size | integer(int32) | The maximum transaction size (in bytes). |
max_bh_size | integer(int32) | The maximum block header size (in bytes). |
key_deposit | number(double) | The amount (in Lovelace) require for a deposit to register a StakeAddress. |
pool_deposit | number(double) | The amount (in Lovelace) require for a deposit to register a stake pool. |
max_epoch | integer(int32) | The maximum number of epochs in the future that a pool retirement is allowed to be scheduled for. |
optimal_pool_count | integer(int32) | The optimal number of stake pools. |
influence | number(double) | The influence of the pledge on a stake pool's probability on minting a block. |
monetary_expand_rate | number(double) | The monetary expansion rate. |
treasury_growth_rate | number(double) | The treasury growth rate. |
decentralisation | number(double) | The decentralisation parameter (1 fully centralised, 0 fully decentralised). |
protocol_major | integer(int32) | The protocol major number. |
protocol_minor | integer(int32) | The protocol minor number. |
min_utxo_value | number(double) | The minimum value of a UTxO entry. |
min_pool_cost | number(double) | The minimum pool cost. |
nonce | string(byte) | The nonce value for this epoch. |
cost_model_id | integer(int64) | The CostModel table index for the params. |
price_mem | number(double) | The per word cost of script memory usage. |
price_step | number(double) | The cost of script execution step usage. |
max_tx_ex_mem | number(double) | The maximum number of execution memory allowed to be used in a single transaction. |
max_tx_ex_steps | number(double) | The maximum number of execution steps allowed to be used in a single transaction. |
max_block_ex_mem | number(double) | The maximum number of execution memory allowed to be used in a single block. |
max_block_ex_steps | number(double) | The maximum number of execution steps allowed to be used in a single block. |
max_val_size | number(double) | The maximum Val size. |
collateral_percent | integer(int32) | The percentage of the txfee which must be provided as collateral when including non-native scripts. |
max_collateral_inputs | integer(int32) | The maximum number of collateral inputs allowed in a transaction. |
block_id | integer(int64) | The Block table index for the first block where these parameters are valid. |
extra_entropy | string(byte) | The 32 byte string of extra random-ness to be added into the protocol's entropy pool. |
coins_per_utxo_size | number(double) | For Alonzo this is the cost per UTxO word. For Babbage and later per UTxO byte. |
nonce_hex | string | The nonce value for this epoch in hexadecimal form. |
Status Code 400
Name | Type | Description |
---|
Response schema is undefined.
Status Code 401
Name | Type | Description |
---|
Response schema is undefined.
Status Code 402
Name | Type | Description |
---|
Response schema is undefined.
Status Code 403
Name | Type | Description |
---|
Response schema is undefined.
Status Code 404
Name | Type | Description |
---|
Response schema is undefined.
Status Code 429
Name | Type | Description |
---|
Response schema is undefined.
GET All epoch params
Returns the parameters for all epoch.
GET /api/core/epochs/params
👨💻 Code samples
- Node.js
- Python
- Rust
const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' });
const params = await CBI.core.epochs.params_();
console.log(params);
CBI = CardanoBI(apiKey='YOUR-KEY', apiSecret='YOUR-SECRET' });
params = await CBI.core.epochs.params_();
print(params);
let CBI = CardanoBI::new(Some("YOUR-KEY"), Some("YOUR-SECRET")).await.expect("Failed to initialize CardanoBI");
let parameters_params = CBI.core.epochs.params_(HashMap::new()).await.expect("Failed to call endpoint");
println!("parameters_params: {:?}", parameters_params);
💌 Response Codes
- 200
- 400
- 401
- 402
- 403
- 404
- 429
OK: Successful request.
[
{
"id": 1,
"epoch_no": 208,
"min_fee_a": 44,
"min_fee_b": 155381,
"max_block_size": 65536,
"max_tx_size": 16384,
"max_bh_size": 1100,
"key_deposit": 2000000,
"pool_deposit": 500000000,
"max_epoch": 18,
"optimal_pool_count": 150,
"influence": 0.3,
"monetary_expand_rate": 0.003,
"treasury_growth_rate": 0.2,
"decentralisation": 1,
"protocol_major": 2,
"protocol_minor": 0,
"min_utxo_value": 1000000,
"min_pool_cost": 340000000,
"nonce": "Gjvji8u3kRlpKDcWrXqlUCUCJrdqYfxRzJqaNdknbYE=",
"cost_model_id": null,
"price_mem": null,
"price_step": null,
"max_tx_ex_mem": null,
"max_tx_ex_steps": null,
"max_block_ex_mem": null,
"max_block_ex_steps": null,
"max_val_size": null,
"collateral_percent": null,
"max_collateral_inputs": null,
"block_id": 4490688,
"extra_entropy": null,
"coins_per_utxo_size": null,
"nonce_hex": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81"
},
"...",
{
"id": 20,
"epoch_no": 227,
"min_fee_a": 44,
"min_fee_b": 155381,
"max_block_size": 65536,
"max_tx_size": 16384,
"max_bh_size": 1100,
"key_deposit": 2000000,
"pool_deposit": 500000000,
"max_epoch": 18,
"optimal_pool_count": 150,
"influence": 0.3,
"monetary_expand_rate": 0.003,
"treasury_growth_rate": 0.2,
"decentralisation": 0.5,
"protocol_major": 2,
"protocol_minor": 0,
"min_utxo_value": 1000000,
"min_pool_cost": 340000000,
"nonce": "DlNN1Bu4C//0oW0DjrUigOm+rHVFzDLJv8JTptkgENE=",
"cost_model_id": null,
"price_mem": null,
"price_step": null,
"max_tx_ex_mem": null,
"max_tx_ex_steps": null,
"max_block_ex_mem": null,
"max_block_ex_steps": null,
"max_val_size": null,
"collateral_percent": null,
"max_collateral_inputs": null,
"block_id": 4896380,
"extra_entropy": null,
"coins_per_utxo_size": null,
"nonce_hex": "0e534dd41bb80bfff4a16d038eb52280e9beac7545cc32c9bfc253a6d92010d1"
}
]
Bad Request: The request was unacceptable, often due to missing a required parameter.
Response schema is undefined.
Unauthorized: No valid API key provided.
Response schema is undefined.
Quota Exceeded: This API key has reached its usage limit on request.
Response schema is undefined.
Access Denied: The request is missing a valid API key or token.
Response schema is undefined.
Not Found: The requested resource cannot be found.
Response schema is undefined.
Too Many Requests: This API key has reached its rate limit.
Response schema is undefined.
💌 Response Schemas
- 200
- 400
- 401
- 402
- 403
- 404
- 429
Status Code 200
Name | Type | Description |
---|---|---|
id | integer(int64) | The epoch param unique identifier. |
epoch_no | integer(int32) | The first epoch for which these parameters are valid. |
min_fee_a | integer(int32) | The 'a' parameter to calculate the minimum transaction fee. |
min_fee_b | integer(int32) | The 'b' parameter to calculate the minimum transaction fee. |
max_block_size | integer(int32) | The maximum block size (in bytes). |
max_tx_size | integer(int32) | The maximum transaction size (in bytes). |
max_bh_size | integer(int32) | The maximum block header size (in bytes). |
key_deposit | number(double) | The amount (in Lovelace) require for a deposit to register a StakeAddress. |
pool_deposit | number(double) | The amount (in Lovelace) require for a deposit to register a stake pool. |
max_epoch | integer(int32) | The maximum number of epochs in the future that a pool retirement is allowed to be scheduled for. |
optimal_pool_count | integer(int32) | The optimal number of stake pools. |
influence | number(double) | The influence of the pledge on a stake pool's probability on minting a block. |
monetary_expand_rate | number(double) | The monetary expansion rate. |
treasury_growth_rate | number(double) | The treasury growth rate. |
decentralisation | number(double) | The decentralisation parameter (1 fully centralised, 0 fully decentralised). |
protocol_major | integer(int32) | The protocol major number. |
protocol_minor | integer(int32) | The protocol minor number. |
min_utxo_value | number(double) | The minimum value of a UTxO entry. |
min_pool_cost | number(double) | The minimum pool cost. |
nonce | string(byte) | The nonce value for this epoch. |
cost_model_id | integer(int64) | The CostModel table index for the params. |
price_mem | number(double) | The per word cost of script memory usage. |
price_step | number(double) | The cost of script execution step usage. |
max_tx_ex_mem | number(double) | The maximum number of execution memory allowed to be used in a single transaction. |
max_tx_ex_steps | number(double) | The maximum number of execution steps allowed to be used in a single transaction. |
max_block_ex_mem | number(double) | The maximum number of execution memory allowed to be used in a single block. |
max_block_ex_steps | number(double) | The maximum number of execution steps allowed to be used in a single block. |
max_val_size | number(double) | The maximum Val size. |
collateral_percent | integer(int32) | The percentage of the txfee which must be provided as collateral when including non-native scripts. |
max_collateral_inputs | integer(int32) | The maximum number of collateral inputs allowed in a transaction. |
block_id | integer(int64) | The Block table index for the first block where these parameters are valid. |
extra_entropy | string(byte) | The 32 byte string of extra random-ness to be added into the protocol's entropy pool. |
coins_per_utxo_size | number(double) | For Alonzo this is the cost per UTxO word. For Babbage and later per UTxO byte. |
nonce_hex | string | The nonce value for this epoch in hexadecimal form. |
Status Code 400
Name | Type | Description |
---|
Response schema is undefined.
Status Code 401
Name | Type | Description |
---|
Response schema is undefined.
Status Code 402
Name | Type | Description |
---|
Response schema is undefined.
Status Code 403
Name | Type | Description |
---|
Response schema is undefined.
Status Code 404
Name | Type | Description |
---|
Response schema is undefined.
Status Code 429
Name | Type | Description |
---|
Response schema is undefined.
GET One epoch params by number
Returns the parameters of one specific epoch given its number.
GET /api/core/epochs/{epoch_no}/params
🎰 Parameters
Name | Description | In | Type | Required |
---|---|---|---|---|
epoch_no | Epoch number | path | integer | true |
👨💻 Code samples
- Node.js
- Python
- Rust
const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' });
const params = await CBI.core.epochs.params_({ epoch_no: 394 });
console.log(params);
CBI = CardanoBI(apiKey='YOUR-KEY', apiSecret='YOUR-SECRET' });
params = await CBI.core.epochs.params_(epoch_no=394);
print(params);
let CBI = CardanoBI::new(Some("YOUR-KEY"), Some("YOUR-SECRET")).await.expect("Failed to initialize CardanoBI");
let parameters_params = CBI.core.epochs.params_(Some(394), HashMap::new()).await.expect("Failed to call endpoint");
println!("parameters_params: {:?}", parameters_params);
💌 Response Codes
- 200
- 400
- 401
- 402
- 403
- 404
- 429
OK: Successful request.
[
{
"id": 1,
"epoch_no": 208,
"min_fee_a": 44,
"min_fee_b": 155381,
"max_block_size": 65536,
"max_tx_size": 16384,
"max_bh_size": 1100,
"key_deposit": 2000000,
"pool_deposit": 500000000,
"max_epoch": 18,
"optimal_pool_count": 150,
"influence": 0.3,
"monetary_expand_rate": 0.003,
"treasury_growth_rate": 0.2,
"decentralisation": 1,
"protocol_major": 2,
"protocol_minor": 0,
"min_utxo_value": 1000000,
"min_pool_cost": 340000000,
"nonce": "Gjvji8u3kRlpKDcWrXqlUCUCJrdqYfxRzJqaNdknbYE=",
"cost_model_id": null,
"price_mem": null,
"price_step": null,
"max_tx_ex_mem": null,
"max_tx_ex_steps": null,
"max_block_ex_mem": null,
"max_block_ex_steps": null,
"max_val_size": null,
"collateral_percent": null,
"max_collateral_inputs": null,
"block_id": 4490688,
"extra_entropy": null,
"coins_per_utxo_size": null,
"nonce_hex": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81"
},
"...",
{
"id": 20,
"epoch_no": 227,
"min_fee_a": 44,
"min_fee_b": 155381,
"max_block_size": 65536,
"max_tx_size": 16384,
"max_bh_size": 1100,
"key_deposit": 2000000,
"pool_deposit": 500000000,
"max_epoch": 18,
"optimal_pool_count": 150,
"influence": 0.3,
"monetary_expand_rate": 0.003,
"treasury_growth_rate": 0.2,
"decentralisation": 0.5,
"protocol_major": 2,
"protocol_minor": 0,
"min_utxo_value": 1000000,
"min_pool_cost": 340000000,
"nonce": "DlNN1Bu4C//0oW0DjrUigOm+rHVFzDLJv8JTptkgENE=",
"cost_model_id": null,
"price_mem": null,
"price_step": null,
"max_tx_ex_mem": null,
"max_tx_ex_steps": null,
"max_block_ex_mem": null,
"max_block_ex_steps": null,
"max_val_size": null,
"collateral_percent": null,
"max_collateral_inputs": null,
"block_id": 4896380,
"extra_entropy": null,
"coins_per_utxo_size": null,
"nonce_hex": "0e534dd41bb80bfff4a16d038eb52280e9beac7545cc32c9bfc253a6d92010d1"
}
]
Bad Request: The request was unacceptable, often due to missing a required parameter.
Response schema is undefined.
Unauthorized: No valid API key provided.
Response schema is undefined.
Quota Exceeded: This API key has reached its usage limit on request.
Response schema is undefined.
Access Denied: The request is missing a valid API key or token.
Response schema is undefined.
Not Found: The requested resource cannot be found.
Response schema is undefined.
Too Many Requests: This API key has reached its rate limit.
Response schema is undefined.
💌 Response Schemas
- 200
- 400
- 401
- 402
- 403
- 404
- 429
Status Code 200
Name | Type | Description |
---|---|---|
id | integer(int64) | The epoch param unique identifier. |
epoch_no | integer(int32) | The first epoch for which these parameters are valid. |
min_fee_a | integer(int32) | The 'a' parameter to calculate the minimum transaction fee. |
min_fee_b | integer(int32) | The 'b' parameter to calculate the minimum transaction fee. |
max_block_size | integer(int32) | The maximum block size (in bytes). |
max_tx_size | integer(int32) | The maximum transaction size (in bytes). |
max_bh_size | integer(int32) | The maximum block header size (in bytes). |
key_deposit | number(double) | The amount (in Lovelace) require for a deposit to register a StakeAddress. |
pool_deposit | number(double) | The amount (in Lovelace) require for a deposit to register a stake pool. |
max_epoch | integer(int32) | The maximum number of epochs in the future that a pool retirement is allowed to be scheduled for. |
optimal_pool_count | integer(int32) | The optimal number of stake pools. |
influence | number(double) | The influence of the pledge on a stake pool's probability on minting a block. |
monetary_expand_rate | number(double) | The monetary expansion rate. |
treasury_growth_rate | number(double) | The treasury growth rate. |
decentralisation | number(double) | The decentralisation parameter (1 fully centralised, 0 fully decentralised). |
protocol_major | integer(int32) | The protocol major number. |
protocol_minor | integer(int32) | The protocol minor number. |
min_utxo_value | number(double) | The minimum value of a UTxO entry. |
min_pool_cost | number(double) | The minimum pool cost. |
nonce | string(byte) | The nonce value for this epoch. |
cost_model_id | integer(int64) | The CostModel table index for the params. |
price_mem | number(double) | The per word cost of script memory usage. |
price_step | number(double) | The cost of script execution step usage. |
max_tx_ex_mem | number(double) | The maximum number of execution memory allowed to be used in a single transaction. |
max_tx_ex_steps | number(double) | The maximum number of execution steps allowed to be used in a single transaction. |
max_block_ex_mem | number(double) | The maximum number of execution memory allowed to be used in a single block. |
max_block_ex_steps | number(double) | The maximum number of execution steps allowed to be used in a single block. |
max_val_size | number(double) | The maximum Val size. |
collateral_percent | integer(int32) | The percentage of the txfee which must be provided as collateral when including non-native scripts. |
max_collateral_inputs | integer(int32) | The maximum number of collateral inputs allowed in a transaction. |
block_id | integer(int64) | The Block table index for the first block where these parameters are valid. |
extra_entropy | string(byte) | The 32 byte string of extra random-ness to be added into the protocol's entropy pool. |
coins_per_utxo_size | number(double) | For Alonzo this is the cost per UTxO word. For Babbage and later per UTxO byte. |
nonce_hex | string | The nonce value for this epoch in hexadecimal form. |
Status Code 400
Name | Type | Description |
---|
Response schema is undefined.
Status Code 401
Name | Type | Description |
---|
Response schema is undefined.
Status Code 402
Name | Type | Description |
---|
Response schema is undefined.
Status Code 403
Name | Type | Description |
---|
Response schema is undefined.
Status Code 404
Name | Type | Description |
---|
Response schema is undefined.
Status Code 429
Name | Type | Description |
---|
Response schema is undefined.
GET All epoch params OData
Returns the parameters for all epoch.
GET /api/core/odata/epochsparams
👨💻 Code samples
- Node.js
- Python
- Rust
const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' });
const epochsparams = await CBI.core.epochsparams_({ "odata": true });
console.log(epochsparams);
CBI = CardanoBI(apiKey='YOUR-KEY', apiSecret='YOUR-SECRET' });
epochsparams = await CBI.core.epochsparams_(odata=true);
print(epochsparams);
let CBI = CardanoBI::new(Some("YOUR-KEY"), Some("YOUR-SECRET")).await.expect("Failed to initialize CardanoBI");
let epochsparams = CBI.core.epochsparams_(HashMap::from([("odata", "true")])).await.expect("Failed to call endpoint");
println!("epochsparams: {:?}", epochsparams);
💌 Response Codes
- 200
- 400
- 401
- 402
- 403
- 404
- 429
OK: Successful request.
{
"@odata.context": "https://cardanobi.io/api/core/odata/$metadata#EpochsParams",
"value": [
{
"id": 1,
"epoch_no": 208,
"min_fee_a": 44,
"min_fee_b": 155381,
"max_block_size": 65536,
"max_tx_size": 16384,
"max_bh_size": 1100,
"key_deposit": 2000000,
"pool_deposit": 500000000,
"max_epoch": 18,
"optimal_pool_count": 150,
"influence": 0.3,
"monetary_expand_rate": 0.003,
"treasury_growth_rate": 0.2,
"decentralisation": 1,
"protocol_major": 2,
"protocol_minor": 0,
"min_utxo_value": 1000000,
"min_pool_cost": 340000000,
"nonce": "Gjvji8u3kRlpKDcWrXqlUCUCJrdqYfxRzJqaNdknbYE=",
"cost_model_id": null,
"price_mem": null,
"price_step": null,
"max_tx_ex_mem": null,
"max_tx_ex_steps": null,
"max_block_ex_mem": null,
"max_block_ex_steps": null,
"max_val_size": null,
"collateral_percent": null,
"max_collateral_inputs": null,
"block_id": 4490688,
"extra_entropy": null,
"coins_per_utxo_size": null,
"nonce_hex": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81"
},
"...",
{
"id": 20,
"epoch_no": 227,
"min_fee_a": 44,
"min_fee_b": 155381,
"max_block_size": 65536,
"max_tx_size": 16384,
"max_bh_size": 1100,
"key_deposit": 2000000,
"pool_deposit": 500000000,
"max_epoch": 18,
"optimal_pool_count": 150,
"influence": 0.3,
"monetary_expand_rate": 0.003,
"treasury_growth_rate": 0.2,
"decentralisation": 0.5,
"protocol_major": 2,
"protocol_minor": 0,
"min_utxo_value": 1000000,
"min_pool_cost": 340000000,
"nonce": "DlNN1Bu4C//0oW0DjrUigOm+rHVFzDLJv8JTptkgENE=",
"cost_model_id": null,
"price_mem": null,
"price_step": null,
"max_tx_ex_mem": null,
"max_tx_ex_steps": null,
"max_block_ex_mem": null,
"max_block_ex_steps": null,
"max_val_size": null,
"collateral_percent": null,
"max_collateral_inputs": null,
"block_id": 4896380,
"extra_entropy": null,
"coins_per_utxo_size": null,
"nonce_hex": "0e534dd41bb80bfff4a16d038eb52280e9beac7545cc32c9bfc253a6d92010d1"
}
],
"@odata.nextLink": "https://cardanobi.io/api/core/odata/epochsparams?$skip=20"
}
Bad Request: The request was unacceptable, often due to missing a required parameter.
Response schema is undefined.
Unauthorized: No valid API key provided.
Response schema is undefined.
Quota Exceeded: This API key has reached its usage limit on request.
Response schema is undefined.
Access Denied: The request is missing a valid API key or token.
Response schema is undefined.
Not Found: The requested resource cannot be found.
Response schema is undefined.
Too Many Requests: This API key has reached its rate limit.
Response schema is undefined.
💌 Response Schemas
- 200
- 400
- 401
- 402
- 403
- 404
- 429
Status Code 200
Name | Type | Description |
---|---|---|
id | integer(int64) | The epoch param unique identifier. |
epoch_no | integer(int32) | The first epoch for which these parameters are valid. |
min_fee_a | integer(int32) | The 'a' parameter to calculate the minimum transaction fee. |
min_fee_b | integer(int32) | The 'b' parameter to calculate the minimum transaction fee. |
max_block_size | integer(int32) | The maximum block size (in bytes). |
max_tx_size | integer(int32) | The maximum transaction size (in bytes). |
max_bh_size | integer(int32) | The maximum block header size (in bytes). |
key_deposit | number(double) | The amount (in Lovelace) require for a deposit to register a StakeAddress. |
pool_deposit | number(double) | The amount (in Lovelace) require for a deposit to register a stake pool. |
max_epoch | integer(int32) | The maximum number of epochs in the future that a pool retirement is allowed to be scheduled for. |
optimal_pool_count | integer(int32) | The optimal number of stake pools. |
influence | number(double) | The influence of the pledge on a stake pool's probability on minting a block. |
monetary_expand_rate | number(double) | The monetary expansion rate. |
treasury_growth_rate | number(double) | The treasury growth rate. |
decentralisation | number(double) | The decentralisation parameter (1 fully centralised, 0 fully decentralised). |
protocol_major | integer(int32) | The protocol major number. |
protocol_minor | integer(int32) | The protocol minor number. |
min_utxo_value | number(double) | The minimum value of a UTxO entry. |
min_pool_cost | number(double) | The minimum pool cost. |
nonce | string(byte) | The nonce value for this epoch. |
cost_model_id | integer(int64) | The CostModel table index for the params. |
price_mem | number(double) | The per word cost of script memory usage. |
price_step | number(double) | The cost of script execution step usage. |
max_tx_ex_mem | number(double) | The maximum number of execution memory allowed to be used in a single transaction. |
max_tx_ex_steps | number(double) | The maximum number of execution steps allowed to be used in a single transaction. |
max_block_ex_mem | number(double) | The maximum number of execution memory allowed to be used in a single block. |
max_block_ex_steps | number(double) | The maximum number of execution steps allowed to be used in a single block. |
max_val_size | number(double) | The maximum Val size. |
collateral_percent | integer(int32) | The percentage of the txfee which must be provided as collateral when including non-native scripts. |
max_collateral_inputs | integer(int32) | The maximum number of collateral inputs allowed in a transaction. |
block_id | integer(int64) | The Block table index for the first block where these parameters are valid. |
extra_entropy | string(byte) | The 32 byte string of extra random-ness to be added into the protocol's entropy pool. |
coins_per_utxo_size | number(double) | For Alonzo this is the cost per UTxO word. For Babbage and later per UTxO byte. |
nonce_hex | string | The nonce value for this epoch in hexadecimal form. |
Status Code 400
Name | Type | Description |
---|
Response schema is undefined.
Status Code 401
Name | Type | Description |
---|
Response schema is undefined.
Status Code 402
Name | Type | Description |
---|
Response schema is undefined.
Status Code 403
Name | Type | Description |
---|
Response schema is undefined.
Status Code 404
Name | Type | Description |
---|
Response schema is undefined.
Status Code 429
Name | Type | Description |
---|
Response schema is undefined.
GET One epoch params by number OData
Returns the parameters of one specific epoch given its number.
GET /api/core/odata/epochsparams/{epoch_no}
🎰 Parameters
Name | Description | In | Type | Required |
---|---|---|---|---|
epoch_no | Epoch number | path | integer | true |
👨💻 Code samples
- Node.js
- Python
- Rust
const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' });
const epochsparams = await CBI.core.epochsparams_({ "odata": true, epoch_no: 394 });
console.log(epochsparams);
CBI = CardanoBI(apiKey='YOUR-KEY', apiSecret='YOUR-SECRET' });
epochsparams = await CBI.core.epochsparams_(odata=true,epoch_no=394);
print(epochsparams);
let CBI = CardanoBI::new(Some("YOUR-KEY"), Some("YOUR-SECRET")).await.expect("Failed to initialize CardanoBI");
let epochsparams = CBI.core.epochsparams_(Some(394), HashMap::from([("odata", "true")])).await.expect("Failed to call endpoint");
println!("epochsparams: {:?}", epochsparams);
💌 Response Codes
- 200
- 400
- 401
- 402
- 403
- 404
- 429
OK: Successful request.
{
"@odata.context": "https://cardanobi.io/api/core/odata/$metadata#EpochsParams",
"value": [
{
"id": 1,
"epoch_no": 208,
"min_fee_a": 44,
"min_fee_b": 155381,
"max_block_size": 65536,
"max_tx_size": 16384,
"max_bh_size": 1100,
"key_deposit": 2000000,
"pool_deposit": 500000000,
"max_epoch": 18,
"optimal_pool_count": 150,
"influence": 0.3,
"monetary_expand_rate": 0.003,
"treasury_growth_rate": 0.2,
"decentralisation": 1,
"protocol_major": 2,
"protocol_minor": 0,
"min_utxo_value": 1000000,
"min_pool_cost": 340000000,
"nonce": "Gjvji8u3kRlpKDcWrXqlUCUCJrdqYfxRzJqaNdknbYE=",
"cost_model_id": null,
"price_mem": null,
"price_step": null,
"max_tx_ex_mem": null,
"max_tx_ex_steps": null,
"max_block_ex_mem": null,
"max_block_ex_steps": null,
"max_val_size": null,
"collateral_percent": null,
"max_collateral_inputs": null,
"block_id": 4490688,
"extra_entropy": null,
"coins_per_utxo_size": null,
"nonce_hex": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81"
},
"...",
{
"id": 20,
"epoch_no": 227,
"min_fee_a": 44,
"min_fee_b": 155381,
"max_block_size": 65536,
"max_tx_size": 16384,
"max_bh_size": 1100,
"key_deposit": 2000000,
"pool_deposit": 500000000,
"max_epoch": 18,
"optimal_pool_count": 150,
"influence": 0.3,
"monetary_expand_rate": 0.003,
"treasury_growth_rate": 0.2,
"decentralisation": 0.5,
"protocol_major": 2,
"protocol_minor": 0,
"min_utxo_value": 1000000,
"min_pool_cost": 340000000,
"nonce": "DlNN1Bu4C//0oW0DjrUigOm+rHVFzDLJv8JTptkgENE=",
"cost_model_id": null,
"price_mem": null,
"price_step": null,
"max_tx_ex_mem": null,
"max_tx_ex_steps": null,
"max_block_ex_mem": null,
"max_block_ex_steps": null,
"max_val_size": null,
"collateral_percent": null,
"max_collateral_inputs": null,
"block_id": 4896380,
"extra_entropy": null,
"coins_per_utxo_size": null,
"nonce_hex": "0e534dd41bb80bfff4a16d038eb52280e9beac7545cc32c9bfc253a6d92010d1"
}
],
"@odata.nextLink": "https://cardanobi.io/api/core/odata/epochsparams?$skip=20"
}
Bad Request: The request was unacceptable, often due to missing a required parameter.
Response schema is undefined.
Unauthorized: No valid API key provided.
Response schema is undefined.
Quota Exceeded: This API key has reached its usage limit on request.
Response schema is undefined.
Access Denied: The request is missing a valid API key or token.
Response schema is undefined.
Not Found: The requested resource cannot be found.
Response schema is undefined.
Too Many Requests: This API key has reached its rate limit.
Response schema is undefined.
💌 Response Schemas
- 200
- 400
- 401
- 402
- 403
- 404
- 429
Status Code 200
Name | Type | Description |
---|---|---|
id | integer(int64) | The epoch param unique identifier. |
epoch_no | integer(int32) | The first epoch for which these parameters are valid. |
min_fee_a | integer(int32) | The 'a' parameter to calculate the minimum transaction fee. |
min_fee_b | integer(int32) | The 'b' parameter to calculate the minimum transaction fee. |
max_block_size | integer(int32) | The maximum block size (in bytes). |
max_tx_size | integer(int32) | The maximum transaction size (in bytes). |
max_bh_size | integer(int32) | The maximum block header size (in bytes). |
key_deposit | number(double) | The amount (in Lovelace) require for a deposit to register a StakeAddress. |
pool_deposit | number(double) | The amount (in Lovelace) require for a deposit to register a stake pool. |
max_epoch | integer(int32) | The maximum number of epochs in the future that a pool retirement is allowed to be scheduled for. |
optimal_pool_count | integer(int32) | The optimal number of stake pools. |
influence | number(double) | The influence of the pledge on a stake pool's probability on minting a block. |
monetary_expand_rate | number(double) | The monetary expansion rate. |
treasury_growth_rate | number(double) | The treasury growth rate. |
decentralisation | number(double) | The decentralisation parameter (1 fully centralised, 0 fully decentralised). |
protocol_major | integer(int32) | The protocol major number. |
protocol_minor | integer(int32) | The protocol minor number. |
min_utxo_value | number(double) | The minimum value of a UTxO entry. |
min_pool_cost | number(double) | The minimum pool cost. |
nonce | string(byte) | The nonce value for this epoch. |
cost_model_id | integer(int64) | The CostModel table index for the params. |
price_mem | number(double) | The per word cost of script memory usage. |
price_step | number(double) | The cost of script execution step usage. |
max_tx_ex_mem | number(double) | The maximum number of execution memory allowed to be used in a single transaction. |
max_tx_ex_steps | number(double) | The maximum number of execution steps allowed to be used in a single transaction. |
max_block_ex_mem | number(double) | The maximum number of execution memory allowed to be used in a single block. |
max_block_ex_steps | number(double) | The maximum number of execution steps allowed to be used in a single block. |
max_val_size | number(double) | The maximum Val size. |
collateral_percent | integer(int32) | The percentage of the txfee which must be provided as collateral when including non-native scripts. |
max_collateral_inputs | integer(int32) | The maximum number of collateral inputs allowed in a transaction. |
block_id | integer(int64) | The Block table index for the first block where these parameters are valid. |
extra_entropy | string(byte) | The 32 byte string of extra random-ness to be added into the protocol's entropy pool. |
coins_per_utxo_size | number(double) | For Alonzo this is the cost per UTxO word. For Babbage and later per UTxO byte. |
nonce_hex | string | The nonce value for this epoch in hexadecimal form. |
Status Code 400
Name | Type | Description |
---|
Response schema is undefined.
Status Code 401
Name | Type | Description |
---|
Response schema is undefined.
Status Code 402
Name | Type | Description |
---|
Response schema is undefined.
Status Code 403
Name | Type | Description |
---|
Response schema is undefined.
Status Code 404
Name | Type | Description |
---|
Response schema is undefined.
Status Code 429
Name | Type | Description |
---|
Response schema is undefined.