Closed KentaroWaki closed 1 year ago
I received a numeric value in response for a field defined with type Lovelace
query
query keyNetworkInfo { genesis { alonzo { lovelacePerUTxOWord executionPrices { prMem { denominator numerator } prSteps { denominator numerator } } maxTxExUnits { exUnitsMem exUnitsSteps } maxBlockExUnits { exUnitsMem exUnitsSteps } maxValueSize collateralPercentage maxCollateralInputs } byron { blockVersionData { scriptVersion slotDuration maxBlockSize maxHeaderSize maxProposalSize maxTxSize } startTime protocolConsts { k protocolMagic } } shelley { activeSlotsCoeff epochLength genDelegs initialFunds maxKESEvolutions maxLovelaceSupply networkId networkMagic protocolParams { a0 decentralisationParam eMax extraEntropy keyDeposit maxBlockBodySize maxBlockHeaderSize maxTxSize minFeeA minFeeB minPoolCost minUTxOValue nOpt poolDeposit protocolVersion rho tau } securityParam slotLength slotsPerKESPeriod staking { pools stake } systemStart updateQuorum } } }
response
{ "data": { "genesis": { "alonzo": { "lovelacePerUTxOWord": 34482, "executionPrices": { "prMem": { "denominator": 10000, "numerator": 577 }, "prSteps": { "denominator": 10000000, "numerator": 721 } }, "maxTxExUnits": { "exUnitsMem": 10000000, "exUnitsSteps": 10000000000 }, "maxBlockExUnits": { "exUnitsMem": 50000000, "exUnitsSteps": 40000000000 }, "maxValueSize": 5000, "collateralPercentage": 150, "maxCollateralInputs": 3 }, "byron": { "blockVersionData": { "scriptVersion": 0, "slotDuration": 20000, "maxBlockSize": 2000000, "maxHeaderSize": 2000000, "maxProposalSize": 700, "maxTxSize": 4096 }, "startTime": 1506203091, "protocolConsts": { "k": 2160, "protocolMagic": 764824073 } }, "shelley": { "activeSlotsCoeff": 0.05, "epochLength": 432000, "genDelegs": { "ad5463153dc3d24b9ff133e46136028bdc1edbb897f5a7cf1b37950c": { "delegate": "d9e5c76ad5ee778960804094a389f0b546b5c2b140a62f8ec43ea54d", "vrf": "64fa87e8b29a5b7bfbd6795677e3e878c505bc4a3649485d366b50abadec92d7" }, "b9547b8a57656539a8d9bc42c008e38d9c8bd9c8adbb1e73ad529497": { "delegate": "855d6fc1e54274e331e34478eeac8d060b0b90c1f9e8a2b01167c048", "vrf": "66d5167a1f426bd1adcc8bbf4b88c280d38c148d135cb41e3f5a39f948ad7fcc" }, "60baee25cbc90047e83fd01e1e57dc0b06d3d0cb150d0ab40bbfead1": { "delegate": "7f72a1826ae3b279782ab2bc582d0d2958de65bd86b2c4f82d8ba956", "vrf": "c0546d9aa5740afd569d3c2d9c412595cd60822bb6d9a4e8ce6c43d12bd0f674" }, "f7b341c14cd58fca4195a9b278cce1ef402dc0e06deb77e543cd1757": { "delegate": "69ae12f9e45c0c9122356c8e624b1fbbed6c22a2e3b4358cf0cb5011", "vrf": "6394a632af51a32768a6f12dac3485d9c0712d0b54e3f389f355385762a478f2" }, "162f94554ac8c225383a2248c245659eda870eaa82d0ef25fc7dcd82": { "delegate": "4485708022839a7b9b8b639a939c85ec0ed6999b5b6dc651b03c43f6", "vrf": "aba81e764b71006c515986bf7b37a72fbb5554f78e6775f08e384dbd572a4b32" }, "2075a095b3c844a29c24317a94a643ab8e22d54a3a3a72a420260af6": { "delegate": "6535db26347283990a252313a7903a45e3526ec25ddba381c071b25b", "vrf": "fcaca997b8105bd860876348fc2c6e68b13607f9bbd23515cd2193b555d267af" }, "268cfc0b89e910ead22e0ade91493d8212f53f3e2164b2e4bef0819b": { "delegate": "1d4f2e1fda43070d71bb22a5522f86943c7c18aeb4fa47a362c27e23", "vrf": "63ef48bc5355f3e7973100c371d6a095251c80ceb40559f4750aa7014a6fb6db" } }, "initialFunds": {}, "maxKESEvolutions": 62, "maxLovelaceSupply": "45000000000000000", "networkId": "Mainnet", "networkMagic": 764824073, "protocolParams": { "a0": 0.3, "decentralisationParam": 1, "eMax": 18, "extraEntropy": { "tag": "NeutralNonce" }, "keyDeposit": 2000000, "maxBlockBodySize": 65536, "maxBlockHeaderSize": 1100, "maxTxSize": 16384, "minFeeA": 44, "minFeeB": 155381, "minPoolCost": 340000000, "minUTxOValue": 1000000, "nOpt": 150, "poolDeposit": 500000000, "protocolVersion": { "minor": 0, "major": 2 }, "rho": 0.003, "tau": 0.2 }, "securityParam": 2160, "slotLength": 1, "slotsPerKESPeriod": 129600, "staking": null, "systemStart": "2017-09-23T21:44:51Z", "updateQuorum": 5 } } } }
Is this right ? Should I assume that any type will be returned?
https://input-output-hk.github.io/cardano-graphql/
Ask a question
I received a numeric value in response for a field defined with type Lovelace
query
response
Is this right ? Should I assume that any type will be returned?
https://input-output-hk.github.io/cardano-graphql/