Maestro responses that the provider schemas reject, found by checking Maestro's published spec (maestro-org/maestro-api-specifications at ccc8c1f, blockchain indexer API v1.8.0).
-
Nullable or optional fields the SDK requires (packages/evolution/src/sdk/provider/internal/Maestro.ts):
- Protocol parameters:
delegate_representative_deposit, governance_action_deposit, min_fee_reference_scripts, and plutus_cost_models.plutus_v3 (the spec requires only plutus_v1 and plutus_v2).
- UTxOs:
datum, reference_script and datum.bytes.
- Paging and accounts:
next_cursor on paginated responses and delegated_pool on accounts.
Any of these arriving as null or missing fails the call. Fix: Schema.optionalWith(X, { nullable: true }). For the three protocol parameters that the public ProtocolParameters type requires, choose between failing with a clear error and a default.
-
Protocol parameters path. The SDK calls /protocol-parameters (MaestroEffect.ts:72), but the spec moved it to /general/protocol-parameters (spec commit ef726b3). Maestro's own TypeScript SDK still uses the old path, so it may still work. Needs a check with an API key before switching.
Maestro responses that the provider schemas reject, found by checking Maestro's published spec (
maestro-org/maestro-api-specificationsat ccc8c1f, blockchain indexer API v1.8.0).Nullable or optional fields the SDK requires (
packages/evolution/src/sdk/provider/internal/Maestro.ts):delegate_representative_deposit,governance_action_deposit,min_fee_reference_scripts, andplutus_cost_models.plutus_v3(the spec requires onlyplutus_v1andplutus_v2).datum,reference_scriptanddatum.bytes.next_cursoron paginated responses anddelegated_poolon accounts.Any of these arriving as
nullor missing fails the call. Fix:Schema.optionalWith(X, { nullable: true }). For the three protocol parameters that the publicProtocolParameterstype requires, choose between failing with a clear error and a default.Protocol parameters path. The SDK calls
/protocol-parameters(MaestroEffect.ts:72), but the spec moved it to/general/protocol-parameters(spec commit ef726b3). Maestro's own TypeScript SDK still uses the old path, so it may still work. Needs a check with an API key before switching.