Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blockfrost/blockfrost-js

Package Overview
Dependencies
Maintainers
3
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockfrost/blockfrost-js - npm Package Compare versions

Comparing version 4.2.0-beta.3 to 4.2.0-beta.4

13

lib/utils/helpers.js

@@ -19,5 +19,7 @@ "use strict";

const mainStakeKey = accountKey.derive(2).derive(0);
const testnetNetworkInfo = cardano_serialization_lib_nodejs_1.NetworkInfo.testnet();
const mainnetNetworkInfo = cardano_serialization_lib_nodejs_1.NetworkInfo.mainnet();
const networkId = isTestnet
? cardano_serialization_lib_nodejs_1.NetworkInfo.testnet().network_id()
: cardano_serialization_lib_nodejs_1.NetworkInfo.mainnet().network_id();
? testnetNetworkInfo.network_id()
: mainnetNetworkInfo.network_id();
const utxoPubKeyHash = utxoPubKey.to_raw_key().hash();

@@ -44,2 +46,3 @@ const mainStakeKeyHash = mainStakeKey.to_raw_key().hash();

stakeKeyHash.free();
stakeCred.free();
return {

@@ -52,4 +55,4 @@ address: rewardAddrBech32,

const protocolMagic = isTestnet
? cardano_serialization_lib_nodejs_1.NetworkInfo.testnet().protocol_magic()
: cardano_serialization_lib_nodejs_1.NetworkInfo.mainnet().protocol_magic();
? testnetNetworkInfo.protocol_magic()
: mainnetNetworkInfo.protocol_magic();
const byronAddress = cardano_serialization_lib_nodejs_1.ByronAddress.icarus_from_key(utxoPubKey, protocolMagic);

@@ -66,2 +69,4 @@ const byronAddrBase58 = byronAddress.to_base58();

accountKey.free();
testnetNetworkInfo.free();
mainnetNetworkInfo.free();
return {

@@ -68,0 +73,0 @@ address: baseAddrBech32,

{
"name": "@blockfrost/blockfrost-js",
"version": "4.2.0-beta.3",
"version": "4.2.0-beta.4",
"description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc