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/cardanocli-pluts
Advanced tools
Readme
cardanocli-pluts
is a library that wraps cardano-cli using Typescript allowing you to interact with the cli using the Types exposed by plu-ts
cardano-node >= 1.29.0
node.js >= 12.19.0
plu-ts >= 0.2.0
import { CardanoCliPluts } from "@harmoniclabs/cardanocli-pluts"
import { Value } from "@harmoniclabs/plu-ts"
const cli = new CardanoCliPluts({
network: "testnet 42"
});
async function main(){
// read a saved address from file
const bobAddr = await cli.utils.readAddress( "./addresses/bob.addr" );
// or make a new addres using the cli
const { privateKey, publicKey } = await cli.address.keyGen();
const myAddr = await cli.address.build({
payment: { publicKey }
});
// query the UTxOs at myAddr
const myUtxos = await cli.query.utxo({
address: myAddr
});
// send some ada to bob
const tx = await cli.transaction.build({
inputs: [{ utxo: myUtxos[0] }],
outpus: [
{
address: bobAddr,
value: Value.lovelaces(2_000_000)
}
],
changeAddress: myAddr
});
const txSigned = await cli.transaction.sign({
tx,
privateKey
});
// let's check everything is ok before submission
console.log(
JSON.stringify(
txSigned.toJson(),
undefined,
2
)
);
// send the transaction
cli.transaction.submit({ tx: txSigned })
}
main()
FAQs
typescript wrapper on top of the cardano-cli tool
The npm package @harmoniclabs/cardanocli-pluts receives a total of 4 weekly downloads. As such, @harmoniclabs/cardanocli-pluts popularity was classified as not popular.
We found that @harmoniclabs/cardanocli-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.