UNPKG

@trusource/server

Version:

TruSource oracle local test server

29 lines (18 loc) 684 B
# @trusource/server Locally test smart contract calls to a Trusource oracle. ## Install ```shell $ npm install @trusource/server ``` ## Usage Installing the package creates `trusource-server` command line utility, which can be used as follows. ```shell $ trusource-server --spec <path-to-oas.json> ``` ### options ```shell -d, --debug output extra debugging -p, --port [number] port number to listen on default 8545 ``` ### OAS [OpenAPI](https://www.openapis.org/) specification used by the @trusource/server to locally listen for contract events, fetch data and make callbacks. The oas for a given api can be found [here](https://docs.trusource.io).