Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@cardano-sdk/cardano-services
Advanced tools
Libraries and program entrypoints for services to facilitate remote data and submit access using Provider interfaces over HTTP, with optional queue-based transaction submission; The TxSubmitHttpService can be configured to submit directly via Ogmios, or via a RabbitMQ broker, with one or more workers handling submission and response job creation. Data is sourced from Cardano DB Sync, the local Cardano Node via Ogmios Local State Queries, genesis files, and remote sources.
/metrics
The services require instances of Cardano Node and Ogmios as a minimum, with Cardano DB Sync and RabbitMQ dependent on the run command. Please refer to docker-compose.json for the current supported version of each service dependency.
The HTTP server can be started with one or more provider modules by name, segmented by URL path.
Run the CLI with start-server --help
to see the full list of options.
A worker must be started when opting for queue-based transaction submission.
Run the CLI with start-worker --help
to see the full list of options.
The following examples require the install and build steps to be completed.
ws://localhost:1338
.localhost:5432
start-server
using CLI options:
./dist/cjs/cli.js \
start-server \
--api-url http://localhost:6000 \
--cardano-node-config-path ./config/network/preprod/cardano-node/config.json \
--postgres-connection-string postgresql://somePgUser:somePassword@localhost:5432/someDbName \
--ogmios-url ws://localhost:1338 \
asset chain-history stake-pool tx-submit network-info utxo rewards
start-server
using env variables:
SERVICE_NAMES=asset,chain-history,stake-pool,tx-submit,network-info,utxo,rewards \
API_URL=http://localhost:6000 \
CARDANO_NODE_CONFIG_PATH=./config/network/preprod/cardano-node/config.json \
POSTGRES_CONNECTION_STRING=postgresql://somePgUser:somePassword@localhost:5432/someDbName \
OGMIOS_URL=ws://localhost:1338 \
./dist/cjs/cli.js start-server
start-server
using CLI options:
./dist/cjs/cli.js \
start-server \
--api-url http://localhost:6000 \
--enable-metrics \
--cardano-node-config-path ./config/network/preprod/cardano-node/config.json \
--postgres-srv-service-name \
--postgres-db someDbName \
--postgres-user somePgUser \
--postgres-password somePassword \
--ogmios-srv-service-name some-domain-for-ogmios \
--rabbitmq-srv-service-name some-domain-for-rabbitmq \
--use-queue \
asset chain-history stake-pool tx-submit network-info utxo rewards
start-server
using env variables:
SERVICE_NAMES=asset,chain-history,stake-pool,tx-submit,network-info,utxo,rewards \
API_URL=http://localhost:6000 \
ENABLE_METRICS=true \
CARDANO_NODE_CONFIG_PATH=./config/network/preprod/cardano-node/config.json \
POSTGRES_SRV_SERVICE_NAME=some-domain-for-postgres-db
POSTGRES_DB=someDbName \
POSTGRES_USER=someUser \
POSTGRES_PASSWORD=somePassword \
OGMIOS_SRV_SERVICE_NAME=some-domain-for-ogmios \
RABBITMQ_SRV_SERVICE_NAME=some-domain-for-rabbitmq \
USE_QUEUE=true \
./dist/cjs/cli.js start-server
start-worker
using CLI options:
./dist/cjs/cli.js \
start-worker \
--ogmios-srv-service-name some-domain-for-ogmios \
--rabbitmq-srv-service-name some-domain-for-rabbitmq
start-worker
using env variables:
OGMIOS_SRV_SERVICE_NAME=some-domain-for-ogmios \
RABBITMQ_SRV_SERVICE_NAME=some-domain-for-rabbitmq \
./dist/cjs/cli.js start-worker
FAQs
Cardano GraphQL Services
The npm package @cardano-sdk/cardano-services receives a total of 317 weekly downloads. As such, @cardano-sdk/cardano-services popularity was classified as not popular.
We found that @cardano-sdk/cardano-services demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.