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

@blockfrost/blockfrost-js

Package Overview
Dependencies
Maintainers
2
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 3.0.0-beta.4 to 3.0.0-beta.5

20

lib/BlockFrostAPI.d.ts
import { Got } from 'got';
import { getAccount } from './account';
import { accounts, accountsDelegations, accountsDelegationsAll, accountsRegistrations, accountsRegistrationsAll, accountsRewards, accountsRewardsAll, accountsHistory, accountsHistoryAll, accountsWithdrawals, accountsWithdrawalsAll, accountsMirs, accountsMirsAll, accountsAddresses, accountsAddressesAll, accountsAddressesAssets, accountsAddressesAssetsAll } from './endpoints/api/accounts';
import { addresses, addressesTotal, addressesTransactions, addressesTransactionsAll, addressesUtxos, addressesUtxosAll } from './endpoints/api/addresses';
import { accounts, accountsDelegations, accountsDelegationsAll, accountsRegistrations, accountsRegistrationsAll, accountsRewards, accountsRewardsAll, accountsHistory, accountsHistoryAll, accountsWithdrawals, accountsWithdrawalsAll, accountsMirs, accountsMirsAll, accountsAddresses, accountsAddressesAll, accountsAddressesAssets, accountsAddressesTotal, accountsAddressesAssetsAll } from './endpoints/api/accounts';
import { addresses, addressesTotal, addressesExtended, addressesTransactions, addressesTransactionsAll, addressesUtxos, addressesUtxosAll } from './endpoints/api/addresses';
import { assets, assetsById, assetsHistory, assetsHistoryAll, assetsTransactions, assetsAddresses, assetsPolicyById, assetsPolicyByIdAll } from './endpoints/api/assets';

@@ -163,2 +163,10 @@ import { blocks, blocksLatest, blocksLatestTxs, blocksLatestTxsAll, blocksNext, blocksPrevious, blocksTxs, blocksTxsAll } from './endpoints/api/blocks';

/**
* accountsAddressesTotal - Obtain summed details aboutof all addresses associated with a given account.
*
* @param stakeAddress - Bech32 stake address
* @returns Assets associated with the account addresses
*
*/
accountsAddressesTotal: typeof accountsAddressesTotal;
/**
* assets - List of assets.

@@ -243,2 +251,10 @@ *

/**
* addressesExtended
*
* @param address
* @returns xxx
*
*/
addressesExtended: typeof addressesExtended;
/**
* addressesTransactions

@@ -245,0 +261,0 @@ *

@@ -169,2 +169,10 @@ "use strict";

/**
* accountsAddressesTotal - Obtain summed details aboutof all addresses associated with a given account.
*
* @param stakeAddress - Bech32 stake address
* @returns Assets associated with the account addresses
*
*/
this.accountsAddressesTotal = accounts_1.accountsAddressesTotal;
/**
* assets - List of assets.

@@ -249,2 +257,10 @@ *

/**
* addressesExtended
*
* @param address
* @returns xxx
*
*/
this.addressesExtended = addresses_1.addressesExtended;
/**
* addressesTransactions

@@ -251,0 +267,0 @@ *

@@ -21,1 +21,2 @@ import { BlockFrostAPI } from '../../../index';

export declare function accountsAddressesAssetsAll(this: BlockFrostAPI, stakeAddress: string, allMethodOptions?: AllMethodOptions): Promise<components['schemas']['account_addresses_assets']>;
export declare function accountsAddressesTotal(this: BlockFrostAPI, stakeAddress: string): Promise<components['schemas']['account_addresses_total']>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.accountsAddressesAssetsAll = exports.accountsAddressesAssets = exports.accountsAddressesAll = exports.accountsAddresses = exports.accountsRegistrationsAll = exports.accountsRegistrations = exports.accountsDelegationsAll = exports.accountsDelegations = exports.accountsMirsAll = exports.accountsMirs = exports.accountsWithdrawalsAll = exports.accountsWithdrawals = exports.accountsHistoryAll = exports.accountsHistory = exports.accountsRewardsAll = exports.accountsRewards = exports.accounts = void 0;
exports.accountsAddressesTotal = exports.accountsAddressesAssetsAll = exports.accountsAddressesAssets = exports.accountsAddressesAll = exports.accountsAddresses = exports.accountsRegistrationsAll = exports.accountsRegistrations = exports.accountsDelegationsAll = exports.accountsDelegations = exports.accountsMirsAll = exports.accountsMirs = exports.accountsWithdrawalsAll = exports.accountsWithdrawals = exports.accountsHistoryAll = exports.accountsHistory = exports.accountsRewardsAll = exports.accountsRewards = exports.accounts = void 0;
const utils_1 = require("../../../utils");

@@ -184,1 +184,11 @@ const errors_1 = require("../../../utils/errors");

exports.accountsAddressesAssetsAll = accountsAddressesAssetsAll;
async function accountsAddressesTotal(stakeAddress) {
return new Promise((resolve, reject) => {
this.instance(`${this.apiUrl}/accounts/${stakeAddress}/addresses/total`)
.then(resp => {
resolve(resp.body);
})
.catch(err => reject(errors_1.handleError(err)));
});
}
exports.accountsAddressesTotal = accountsAddressesTotal;

@@ -6,2 +6,3 @@ import { components } from '../../../types/OpenApi';

export declare function addressesTotal(this: BlockFrostAPI, address: string): Promise<components['schemas']['address_content_total']>;
export declare function addressesExtended(this: BlockFrostAPI, address: string): Promise<components['schemas']['address_content_extended']>;
export declare function addressesTransactions(this: BlockFrostAPI, address: string, pagination?: PaginationOptions, additionalOptions?: AdditionalEndpointOptions): Promise<components['schemas']['address_transactions_content']>;

@@ -8,0 +9,0 @@ export declare function addressesTransactionsAll(this: BlockFrostAPI, address: string, allMethodOptions?: AllMethodOptions, additionalOptions?: AdditionalEndpointOptions): Promise<components['schemas']['address_transactions_content']>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addressesUtxosAll = exports.addressesUtxos = exports.addressesTransactionsAll = exports.addressesTransactions = exports.addressesTotal = exports.addresses = void 0;
exports.addressesUtxosAll = exports.addressesUtxos = exports.addressesTransactionsAll = exports.addressesTransactions = exports.addressesExtended = exports.addressesTotal = exports.addresses = void 0;
const utils_1 = require("../../../utils");

@@ -26,2 +26,12 @@ const errors_1 = require("../../../utils/errors");

exports.addressesTotal = addressesTotal;
async function addressesExtended(address) {
return new Promise((resolve, reject) => {
this.instance(`${this.apiUrl}/addresses/${address}/extended`)
.then(resp => {
resolve(resp.body);
})
.catch(err => reject(errors_1.handleError(err)));
});
}
exports.addressesExtended = addressesExtended;
async function addressesTransactions(address, pagination, additionalOptions) {

@@ -28,0 +38,0 @@ const additionalParams = utils_1.getAdditionalParams(additionalOptions);

4

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

@@ -31,3 +31,3 @@ "keywords": [

"dependencies": {
"@blockfrost/openapi": "0.1.32",
"@blockfrost/openapi": "https://github.com/blockfrost/openapi.git#c568a7d3ac69ac7cf5ff2c093c69f5771f8b2c3d",
"@emurgo/cardano-serialization-lib-nodejs": "^8.1.0",

@@ -34,0 +34,0 @@ "@emurgo/cip14-js": "2.0.0",

Sorry, the diff of this file is too big to display

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