blinklabs-io / cardano-node-api

Multi-protocol API for interfacing with a local Cardano node
Apache License 2.0
9 stars 0 forks source link

Verifying and validating results against the spec #34

Closed musik-c closed 1 month ago

wolf31o2 commented 4 months ago

Issues generated:

verbotenj commented 4 months ago

Test Query: readParams()

Environment

Client Logs

Response: &{Msg:values:{cardano:{}} ledger_tip:{slot:66443229 hash:"\xaa´\xb6\x88\xab\x86fQl\x99\x0c1-\x83\xaa\xa4\x01\xf9~\xd9\xca\xcc5׳\xa6ƀ\xb3\x96\x8b"} header
[Content-Type:[application/grpc]

Expected Output

Expected an empty response with ledger tip.
(Specs weren't defined at the time of implementation)

verbotenj commented 4 months ago

Test Query: readUtxos

Environment

Client Logs

connecting to utxorpc host: <http://localhost:9090>
Ledger Tip:
  Slot: 66444229
  Hash: 4e5102a03983c905d02b103fbdf118b67f60b17fd452f44598ba508abf771f70

Expect Output

N/A

Notes

https://preprod.cexplorer.io/tx/71a7498f086d378ec5e558581286629b678be1dd65d5d4e2a5d634ba6fdf8299
Hash: 71a7498f086d378ec5e558581286629b678be1dd65d5d4e2a5d634ba6fdf8299
Date 12d22h43m ago
Epoch 155
Block 2,472,770
Slot 65,325,702 (epoch slot 7,302)
Total Output 20.80k ₳ 9,137.6 0.13691
Fee 0.21 ₳ 0.1
Outputs 3
TTL locked 12d19h44m ago (65,336,477)
Message
Minswap: Market Order

Client Logs

(Side note: There was more native bytes in the response)
  Native Bytes: 0a2222222222200b2200a222222222005222222222006200522222222200822222222200913003480088888888801c8888888010dc0a40006e1d2000370e90011b8748010dc3a400c6e1d2008370e90051b8748030dc4a400090504e00a410112f4aae7955ce9191800800911980198010010009
  Cardano UTxO:
    Address: pN;u�h����;T6E�����2��R�q�I
    Coin: 66000000

Expect Output

N/A

Notes

https://preprod.cexplorer.io/tx/efd8a48f69e5270cb73b438067e1b566d39758329a45e5d6d36755f2c7326184
Hash: efd8a48f69e5270cb73b438067e1b566d39758329a45e5d6d36755f2c7326184
Date    10d4h4m ago
Epoch   155
Block   2,483,293
Slot    65,569,166 (epoch slot 250,766)
Total Output    137.69 ₳ 60.5 0.00091
Fee 0.8 ₳ 0.4
Outputs 3
TTL locked 10d4h2m ago (65,569,254)
verbotenj commented 4 months ago

Test Query: searchUtxos()

Environment

Client Logs

unknown
invalid character not part of charset: 98
[]

Server Logs

Got a SearchUtxos request with predicate match:{cardano:{address:{exact_address:"\x10\x14g\xbc:5gw\xb9 \xd0\xc3\xf0#\x19\x877\xe0\xe6\xf0\xeb\xe9\xccʾ\x18\xa4\x94\x13\x16\xa4\t#\x03\xbeH\xb6G|*\x05\x93\xa8\xcdH<\xa0E(E\x85\xebHS\xe8G&"} asset:{}}}

Expect Output

N/A

Notes

https://preprod.cardanoscan.io/address/101467bc3a356777b920d0c3f023198737e0e6f0ebe9cccabe18a4941316a4092303be48b6477c2a0593a8cd483ca045284585eb4853e84726
verbotenj commented 4 months ago

Test Query: submitTx()

Environment

Client Logs

Connecting to utxorpc host: <http://localhost:9090>
Response: &{Msg:ref:"9U\xf9/\xb1\xce \x87\xfbz[@\xadg\x03\xec\xf5\xd5֊\xcc\xe1\xf7f\x8f\xc7O\x9d\xa33#\xd1" header:map[Content-Type:[application/grpc] Date:[Sun, 28 Jul 2024 15:32:34 GMT] Grpc-Accept-Encoding:[gzip] Grpc-Encoding:[gzip]] trailer:map[Grpc-Status:[0]]}

Expect Output

Transaction reference; Got TXref: 3955f92fb1ce2087fb7a5b40ad6703ecf5d5dbccf7f7668fc74f9da33323d1


Unsigned Transaction Test Method: submitTx(ctx, client, "84a50081825820d3e1af74921ce5b4562ab13acab532af64e1cae02b4033153ab4490299ba478e01018282583900923d4b64e1d730a4baf3e6dc433a9686983940f458363f37aad7a1a9568b72f85522e4a17d44a45cd021b9741b55d7cbc635c911625b015e1a00b71b0082583900923d4b64e1d730a4baf3e6dc433a9686983940f458363f37aad7a1a9568b72f85522e4a17d44a45cd021b9741b55d7cbc635c911625b015e1b00000001280b6b44021a00029285031a03f6d2c00800a0f5f6")

Client Logs

Connecting to utxorpc host: <http://localhost:9090>
unknown
[ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError ([UtxowFailure (GenericError ([0 [1 [923d4b64e1d730a4baf3e6dc433a9686983940f458363f37aad7a1a9]]]))]))]
[]
panic: unknown: [ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError ([UtxowFailure (GenericError ([0 [1 [923d4b64e1d730a4baf3e6dc433a9686983940f458363f37aad7a1a9]]]))]))]

Expect Output

N/A

verbotenj commented 4 months ago

Test Query: watchMempool()

Environment

Client Logs

Waiting, no response

Connecting to utxorpc host: http://localhost:9090

Server Logs

Got a WatchMempool request with predicate <nil> and fieldMask <nil>

Expect Output

All transactions no filtering. Got none.