Error

enum cardano_error_t

Cardano C library error codes.

Values:

enumerator CARDANO_SUCCESS

Successful operation.

enumerator CARDANO_ERROR_GENERIC

Generic error.

enumerator CARDANO_ERROR_INSUFFICIENT_BUFFER_SIZE

Insufficient buffer size.

enumerator CARDANO_ERROR_POINTER_IS_NULL

Operation over a null pointer.

enumerator CARDANO_ERROR_MEMORY_ALLOCATION_FAILED

Memory could not be allocated.

enumerator CARDANO_ERROR_OUT_OF_BOUNDS_MEMORY_READ

Out of bounds memory read.

enumerator CARDANO_ERROR_OUT_OF_BOUNDS_MEMORY_WRITE

Out of bounds memory write.

enumerator CARDANO_ERROR_INVALID_ARGUMENT

Invalid argument.

enumerator CARDANO_ERROR_INVALID_URL

Invalid URL.

enumerator CARDANO_ERROR_ELEMENT_NOT_FOUND

Element not found.

enumerator CARDANO_ERROR_ENCODING

Encoding failure.

enumerator CARDANO_ERROR_DECODING

Decoding failure.

enumerator CARDANO_ERROR_CHECKSUM_MISMATCH

Invalid checksum.

enumerator CARDANO_ERROR_INVALID_JSON

Invalid JSON.

enumerator CARDANO_ERROR_INTEGER_OVERFLOW

Size overflow.

enumerator CARDANO_ERROR_INTEGER_UNDERFLOW

Size underflow.

enumerator CARDANO_ERROR_CONVERSION_FAILED

Conversion error.

enumerator CARDANO_ERROR_INDEX_OUT_OF_BOUNDS

Index out of bounds.

enumerator CARDANO_ERROR_INVALID_CERTIFICATE_TYPE

Invalid certificate type.

enumerator CARDANO_ERROR_NOT_IMPLEMENTED

The operation is not implemented.

enumerator CARDANO_ERROR_INVALID_PASSPHRASE

The passphrase is invalid.

enumerator CARDANO_ERROR_ILLEGAL_STATE

The state of the object is illegal.

enumerator CARDANO_ERROR_DUPLICATED_KEY

The element is already present.

enumerator CARDANO_ERROR_JSON_TYPE_MISMATCH

The JSON type is unexpected.

enumerator CARDANO_ERROR_LOSS_OF_PRECISION

The serialization or deserialization process resulted in a loss of precision.

enumerator CARDANO_ERROR_INVALID_MAGIC

The magic number is invalid.

enumerator CARDANO_ERROR_INVALID_CHECKSUM

The checksum is invalid.

enumerator CARDANO_ERROR_INVALID_BLAKE2B_HASH_SIZE

The hash size is invalid.

enumerator CARDANO_ERROR_INVALID_ED25519_SIGNATURE_SIZE

The Ed25519 signature size is invalid.

enumerator CARDANO_ERROR_INVALID_ED25519_PUBLIC_KEY_SIZE

The Ed25519 public key size is invalid.

enumerator CARDANO_ERROR_INVALID_ED25519_PRIVATE_KEY_SIZE

The Ed25519 private key size is invalid.

enumerator CARDANO_ERROR_INVALID_BIP32_PUBLIC_KEY_SIZE

The BIP32 public key size is invalid.

enumerator CARDANO_ERROR_INVALID_BIP32_PRIVATE_KEY_SIZE

The BIP32 private key size is invalid.

enumerator CARDANO_ERROR_INVALID_BIP32_DERIVATION_INDEX

The BIP32 derivation index is invalid.

enumerator CARDANO_ERROR_UNEXPECTED_CBOR_TYPE

The CBOR type is unexpected.

enumerator CARDANO_ERROR_INVALID_CBOR_VALUE

The CBOR value is of the right type, but the value is invalid (I.E out of range).

enumerator CARDANO_ERROR_INVALID_CBOR_ARRAY_SIZE

The CBOR array size is invalid.

enumerator CARDANO_ERROR_INVALID_CBOR_MAP_SIZE

The CBOR map size is invalid.

enumerator CARDANO_ERROR_DUPLICATED_CBOR_MAP_KEY

The CBOR map key is duplicated.

enumerator CARDANO_ERROR_INVALID_CBOR_MAP_KEY

The CBOR map key is invalid.

enumerator CARDANO_ERROR_INVALID_ADDRESS_TYPE

The address type is invalid.

enumerator CARDANO_ERROR_INVALID_ADDRESS_FORMAT

The address format is invalid.

enumerator CARDANO_ERROR_INVALID_CREDENTIAL_TYPE

The credential type is invalid.

enumerator CARDANO_ERROR_INVALID_PLUTUS_DATA_CONVERSION

The Plutus data conversion is invalid.

enumerator CARDANO_ERROR_INVALID_DATUM_TYPE

The Plutus datum type is invalid.

enumerator CARDANO_ERROR_INVALID_SCRIPT_LANGUAGE

The script language is invalid.

enumerator CARDANO_ERROR_INVALID_NATIVE_SCRIPT_TYPE

The native script type is invalid.

enumerator CARDANO_ERROR_INVALID_PLUTUS_COST_MODEL

The Plutus cost model is invalid.

enumerator CARDANO_ERROR_INVALID_PROCEDURE_PROPOSAL_TYPE

The governance action type is invalid.

enumerator CARDANO_ERROR_INVALID_METADATUM_CONVERSION

The metadatum conversion is invalid.

enumerator CARDANO_ERROR_INVALID_METADATUM_TEXT_STRING_SIZE

The metadatum text string size.

enumerator CARDANO_ERROR_INVALID_METADATUM_BOUNDED_BYTES_SIZE

The metadatum bounded bytes size.

enumerator CARDANO_ERROR_INVALID_HTTP_REQUEST

The HTTP request is invalid.

enumerator CARDANO_ERROR_BALANCE_INSUFFICIENT

Total value of the entries within the initial UTxO set (the amount of money available) is less than the the total value of all entries in the requested output set (the amount of money required).

enumerator CARDANO_ERROR_UTXO_NOT_FRAGMENTED_ENOUGH

The number of entries in the initial UTxO set is smaller than the number of entries in the requested output set, for algorithms that impose the restriction that a single UTxO entry can only be used to pay for at most one output.

enumerator CARDANO_ERROR_UTXO_FULLY_DEPLETED

The algorithm depletes all entries from the initial UTxO set before it is able to pay for all outputs in the requested output set.

This can happen even if the total value of entries within the initial UTxO set is greater than the total value of all entries in the requested output set, due to various restrictions that coin selection algorithms impose on themselves when selecting UTxO entries.

enumerator CARDANO_ERROR_MAXIMUM_INPUT_COUNT_EXCEEDED

Another input must be selected by the algorithm in order to continue making progress, but doing so will increase the size of the resulting selection beyond an acceptable limit, specified by the maximum input count parameter.

enumerator CARDANO_ERROR_SCRIPT_EVALUATION_FAILURE

The transaction script evaluation failed.