
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@xchainjs/xchain-cardano
Advanced tools
yarn add @xchainjs/xchain-cardano
or
npm install @xchainjs/xchain-cardano
Using the Cardano client you can initialize the main class of the module in consultation mode if you do not provide any parameters, this means you could retrieve information from the blockchain and prepare transactions to sign, but you will not be able to sign transactions, or generate addresses.
import { Client } from '@xchainjs/xchain-cardano'
const client = new Client()
// Make read operations with your client
Otherwise, if you want to sign transactions and get the addresses you own, you will need to initialize the main class of the protocol as follows
import { Client, defaultCardanoParams } from '@xchainjs/xchain-cardano'
const client = new Client({
phrase: 'your secret phrase',
...defaultCardanoParams
})
// Make read or write operations with your client
Thanks to the Cardano client you will be able to:
You can find examples using the Cardano package in the Cardano examples folder.
More information about how to use the Cardano client can be found on documentation
FAQs
Cardano client for XChainJS
The npm package @xchainjs/xchain-cardano receives a total of 41 weekly downloads. As such, @xchainjs/xchain-cardano popularity was classified as not popular.
We found that @xchainjs/xchain-cardano demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.