Skip to main content

Submit a transaction for execution units evaluation (additional UTXO set)

POST /utils/txs/evaluate/utxos

Authorization

name: project_idtype: apiKeyin: headerdescription: There are multiple token types available based on network you choose
when creating a Blockfrost a project, for a list of token types
see available networks.

Submit a JSON payload with transaction CBOR and additional UTXO set to evaluate how much execution units it requires.

Hosted Endpoint only available for hosted variant.

Request

Header Parameters

    Content-Type string required

    Possible values: [application/json]

Body

required

JSON payload

    cbor string required

    Transaction CBOR (encoded using base64 or base16).

    additionalUtxoSet array[]

    Possible values: >= 2, <= 2

    Additional UTXO as an array of tuples [TxIn, TxOut]. See https://ogmios.dev/mini-protocols/local-tx-submission/#additional-utxo-set.

Responses

Returns result of EvaluateTx function from Ogmios see EvaluateTxand API reference (EvaluateTxResponse) for related errors.


Schema
    property name* any
POST /utils/txs/evaluate/utxos

Authorization

name: project_idtype: apiKeyin: headerdescription: There are multiple token types available based on network you choose
when creating a Blockfrost a project, for a list of token types
see available networks.

Request

Base URL
https://cardano-mainnet.blockfrost.io/api/v0
project_id
Content-Type — header required
Body required
{
"cbor": "string",
"additionalUtxoSet": [
[
{
"txId": "string",
"index": 0
},
{
"address": "string",
"value": {
"coins": 0,
"assets": {}
},
"datum_hash": "string",
"datum": {},
"script": {}
}
]
]
}
curl / cURL
curl -L -X POST 'https://cardano-mainnet.blockfrost.io/api/v0/utils/txs/evaluate/utxos' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'project_id: <API_KEY_VALUE>' \
--data-raw '{
"cbor": "string",
"additionalUtxoSet": [
[
{
"txId": "string",
"index": 0
},
{
"address": "string",
"value": {
"coins": 0,
"assets": {}
},
"datum_hash": "string",
"datum": {},
"script": {}
}
]
]
}'