Midnight funnel
Paima can observe Midnight contract states.
Configuration​
Public devnet example:
MidnightDevnet:
type: midnight
networkId: 1
indexer: https://indexer.devnet.midnight.network/api/v1/graphql
# indexerWS: wss://indexer.devnet.midnight.network/api/v1/graphql/ws
confirmationDepth: 2
Standalone network example:
MidnightLocal:
type: midnight
networkId: 0
indexer: http://localhost:32807/api/v1/graphql
# indexerWS: ws://localhost:32807/api/v1/graphql/ws
confirmationDepth: 0
indexershould be the full URL to the indexer GraphQL endpoint.indexerWscan be used to manually override the indexer WebSocket URL if the default is insufficient.networkIdmust match the network ID encoded into proofs on the chain associated with the indexer.0for a standalone test node.1for the public devnet.
confirmationDepthcontrols how many Midnight blocks behind the tip will be processed.- Setting this to 0 will increase latency because the funnel will always have to wait for the newest Midnight block even if its timestamp would be higher than that of the main block being processed.