You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should emit an error if any flags are missing, but address and port default to 127.0.0.1 and 3000 respectively.
Should launch an HTTP JSON-RPC service (no SSL for now) that binds to the supplied host and port. JSON-RPC should be built with jsonrpsee.
Event loop should be tokio. There should be no blocking code. This service will have to handle many concurrent requests.
Should open rocksdb in read-only mode for each RPC call. rocksdb gives the context a snapshot of when it was opened when the read-only handle is created. Import metashrew-runtime to invoke runtime with a no-op for __flush. WASM program should be invoked at the specified function with supplied input.
Result of JSON-RPC call should be consistent with what metashrew-view does. i.e. it should just return a { id, result, jsonrpc: '2.0' } JSON object where result is a hex encoded string.
The text was updated successfully, but these errors were encountered:
Should expose the same JSON-RPC interface as metashrew-view as defined here:
https://github.com/sandshrewmetaprotocols/metashrew-view/blob/master/src.ts/metashrew-view.ts#L190
Should support environment variables
METASHREW_VIEW_INDEXER
METASHREW_VIEW_DB
METASHREW_VIEW_PORT
METASHREW_VIEW_HOST
which should point to a wasm file or a rockdb directory, respectively.
Should be able to pass in the following flags:
--indexer/-i
--db-dir/-d
--listen-addr/-a
--listen-port/-p
Which override anything set in the environment.
Should emit an error if any flags are missing, but address and port default to 127.0.0.1 and 3000 respectively.
Should launch an HTTP JSON-RPC service (no SSL for now) that binds to the supplied host and port. JSON-RPC should be built with jsonrpsee.
Event loop should be tokio. There should be no blocking code. This service will have to handle many concurrent requests.
Should open rocksdb in read-only mode for each RPC call. rocksdb gives the context a snapshot of when it was opened when the read-only handle is created. Import metashrew-runtime to invoke runtime with a no-op for __flush. WASM program should be invoked at the specified function with supplied input.
Refer to https://github.com/sandshrewmetaprotocols/metashrew/blob/master/src/electrum.rs#L227 to see how view functions are invoked now.
Result of JSON-RPC call should be consistent with what metashrew-view does. i.e. it should just return a { id, result, jsonrpc: '2.0' } JSON object where result is a hex encoded string.
The text was updated successfully, but these errors were encountered: