Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@harmoniclabs/blockfrost-pluts
Advanced tools
Readme
wrapper over the @blockfrost/blockfrost-js
SDK based on the @harmoniclabs/cardano-ledger-ts
types.
npm install @harmoniclabs/blockfrost-pluts
Build you blockfrost provider and wrap it in a BlockfrostPluts
instance
import { BlockFrostAPI } from "@blockfrost/blockfrost-js";
import { BlockfrostPluts } from "@harmoniclabs/blockfrost-pluts";
const api = new BlockFrostAPI({
projectId: "YOUR API KEY HERE", // see: https://blockfrost.io
});
const provider = new BlockfrostPluts( api );
or directly pass the arguments to the wrapper class
import { BlockfrostPluts } from "@harmoniclabs/blockfrost-pluts";
const provider = new BlockfrostPluts({
projectId: "YOUR API KEY HERE", // see: https://blockfrost.io
});
@harmoniclabs/plu-ts
the provider can be used with the transaction builder to get a TxBuilderRunner
instance:
import { TxBuilder, defaultProtocolParameters } from "@harmoniclabs/plu-ts";
import { BlockfrostPluts } from "@harmoniclabs/blockfrost-pluts";
const txBuilder = new TxBuilder( defaultProtocolParameters );
const provider = new BlockfrostPluts({
projectId: "YOUR API KEY HERE", // see: https://blockfrost.io
});
const txRunner = txBuilder.runWithProvider( provider );
which you can use to easly build transacitons
const tx = await txRunner
.addInput(
contractUtxo,
"40" // redeemer ( CBOR for empty bytestring )
)
.attachValidator( contractSource ) // `Script` instance
.payTo( myAddress, 5_000_000 ) // send 5 ADA
.build()
FAQs
@blockfrost/blockfrost-js extension based on plu-ts types
The npm package @harmoniclabs/blockfrost-pluts receives a total of 1 weekly downloads. As such, @harmoniclabs/blockfrost-pluts popularity was classified as not popular.
We found that @harmoniclabs/blockfrost-pluts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.