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

@aws-sdk/client-managedblockchain-query

Package Overview
Dependencies
Maintainers
5
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-managedblockchain-query - npm Package Compare versions

Comparing version 3.504.0 to 3.505.0

18

dist-cjs/index.js

@@ -44,3 +44,2 @@ "use strict";

QueryTransactionEventType: () => QueryTransactionEventType,
QueryTransactionStatus: () => QueryTransactionStatus,
ResourceNotFoundException: () => ResourceNotFoundException,

@@ -335,3 +334,4 @@ ResourceType: () => ResourceType,

var ConfirmationStatus = {
FINAL: "FINAL"
FINAL: "FINAL",
NONFINAL: "NONFINAL"
};

@@ -342,12 +342,2 @@ var ExecutionStatus = {

};
var QueryTransactionStatus = {
/**
* The transaction completed on the blockchain, but failed
*/
FAILED: "FAILED",
/**
* The transaction has been confirmed and is final in the blockchain
*/
FINAL: "FINAL"
};
var QueryTransactionEventType = {

@@ -543,2 +533,3 @@ /**

address: [],
confirmationStatusFilter: (_) => (0, import_smithy_client._json)(_),
fromBlockchainInstant: (_) => se_BlockchainInstant(_, context),

@@ -1116,3 +1107,2 @@ maxResults: [],

signatureV: import_smithy_client.expectInt32,
status: import_smithy_client.expectString,
to: import_smithy_client.expectString,

@@ -1128,2 +1118,3 @@ transactionFee: import_smithy_client.expectString,

return (0, import_smithy_client.take)(output, {
confirmationStatus: import_smithy_client.expectString,
network: import_smithy_client.expectString,

@@ -1390,3 +1381,2 @@ transactionHash: import_smithy_client.expectString,

ExecutionStatus,
QueryTransactionStatus,
QueryTransactionEventType,

@@ -1393,0 +1383,0 @@ ListTransactionsSortBy,

@@ -116,2 +116,3 @@ import { ManagedBlockchainQueryServiceException as __BaseException } from "./ManagedBlockchainQueryServiceException";

FINAL: "FINAL",
NONFINAL: "NONFINAL",
};

@@ -122,6 +123,2 @@ export const ExecutionStatus = {

};
export const QueryTransactionStatus = {
FAILED: "FAILED",
FINAL: "FINAL",
};
export const QueryTransactionEventType = {

@@ -128,0 +125,0 @@ BITCOIN_VIN: "BITCOIN_VIN",

@@ -116,2 +116,3 @@ import { requestBuilder as rb } from "@smithy/core";

address: [],
confirmationStatusFilter: (_) => _json(_),
fromBlockchainInstant: (_) => se_BlockchainInstant(_, context),

@@ -696,3 +697,2 @@ maxResults: [],

signatureV: __expectInt32,
status: __expectString,
to: __expectString,

@@ -708,2 +708,3 @@ transactionFee: __expectString,

return take(output, {
confirmationStatus: __expectString,
network: __expectString,

@@ -710,0 +711,0 @@ transactionHash: __expectString,

@@ -32,3 +32,3 @@ import { Command as $Command } from "@smithy/smithy-client";

* <note>
* <p>Only the native tokens BTC,ETH, and the ERC-20,
* <p>Only the native tokens BTC and ETH, and the ERC-20,
* ERC-721, and ERC 1155 token standards are supported.</p>

@@ -35,0 +35,0 @@ * </note>

@@ -31,3 +31,3 @@ import { Command as $Command } from "@smithy/smithy-client";

* <note>
* <p>Only the native tokens BTC,ETH, and the ERC-20,
* <p>Only the native tokens BTC and ETH, and the ERC-20,
* ERC-721, and ERC 1155 token standards are supported.</p>

@@ -34,0 +34,0 @@ * </note>

@@ -29,3 +29,9 @@ import { Command as $Command } from "@smithy/smithy-client";

* @public
* <p>Get the details of a transaction.</p>
* <p>Gets the details of a transaction.</p>
* <note>
* <p>This action will return transaction details for all transactions
* that are <i>confirmed</i> on the blockchain, even if they have not reached
* <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">finality</a>.
* </p>
* </note>
* @example

@@ -52,3 +58,2 @@ * Use a bare-bones client and the command you need to make an API call.

* // numberOfTransactions: Number("long"), // required
* // status: "STRING_VALUE",
* // to: "STRING_VALUE", // required

@@ -55,0 +60,0 @@ * // from: "STRING_VALUE",

@@ -31,2 +31,8 @@ import { Command as $Command } from "@smithy/smithy-client";

* about the transaction event.</p>
* <note>
* <p>This action will return transaction details for all transactions
* that are <i>confirmed</i> on the blockchain, even if they have not reached
* <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">finality</a>.
* </p>
* </note>
* @example

@@ -33,0 +39,0 @@ * Use a bare-bones client and the command you need to make an API call.

@@ -51,2 +51,7 @@ import { Command as $Command } from "@smithy/smithy-client";

* maxResults: Number("int"),
* confirmationStatusFilter: { // ConfirmationStatusFilter
* include: [ // ConfirmationStatusIncludeList // required
* "STRING_VALUE",
* ],
* },
* };

@@ -61,2 +66,3 @@ * const command = new ListTransactionsCommand(input);

* // transactionTimestamp: new Date("TIMESTAMP"), // required
* // confirmationStatus: "STRING_VALUE",
* // },

@@ -63,0 +69,0 @@ * // ],

@@ -122,3 +122,3 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";

* <note>
* <p>Only the native tokens BTC,ETH, and the ERC-20,
* <p>Only the native tokens BTC and ETH, and the ERC-20,
* ERC-721, and ERC 1155 token standards are supported.</p>

@@ -142,4 +142,4 @@ * </note>

* <note>
* <p>You must specify this container with <code>btc</code> for the native BTC token, and
* <code>eth</code> for the native ETH token. For all other token types you must
* <p>For native tokens, use the 3 character abbreviation that best matches your token.
* For example, btc for Bitcoin, eth for Ether, etc. For all other token types you must
* specify the <code>tokenId</code> in the 64 character hexadecimal <code>tokenid</code> format.</p>

@@ -159,3 +159,3 @@ * </note>

* <note>
* <p>Only the native tokens BTC,ETH, and the ERC-20,
* <p>Only the native tokens BTC and ETH, and the ERC-20,
* ERC-721, and ERC 1155 token standards are supported.</p>

@@ -213,3 +213,3 @@ * </note>

* <note>
* <p>Only the native tokens BTC,ETH, and the ERC-20,
* <p>Only the native tokens BTC and ETH, and the ERC-20,
* ERC-721, and ERC 1155 token standards are supported.</p>

@@ -259,3 +259,3 @@ * </note>

* <note>
* <p>Only the native tokens BTC,ETH, and the ERC-20,
* <p>Only the native tokens BTC and ETH, and the ERC-20,
* ERC-721, and ERC 1155 token standards are supported.</p>

@@ -470,2 +470,3 @@ * </note>

readonly FINAL: "FINAL";
readonly NONFINAL: "NONFINAL";
};

@@ -478,2 +479,18 @@ /**

* @public
* <p>The container for the <code>ConfirmationStatusFilter</code> that filters for the <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">
* <i>finality</i>
* </a> of the results.</p>
*/
export interface ConfirmationStatusFilter {
/**
* @public
* <p>The container to determine whether to list results that have only reached <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">
* <i>finality</i>
* </a>. Transactions
* that have reached finality are always part of the response.</p>
*/
include: ConfirmationStatus[] | undefined;
}
/**
* @public
* <p>The contract or wallet address by which to filter the request.</p>

@@ -604,3 +621,3 @@ */

* <note>
* <p>Only the native tokens BTC,ETH, and the ERC-20,
* <p>Only the native tokens BTC and ETH, and the ERC-20,
* ERC-721, and ERC 1155 token standards are supported.</p>

@@ -643,20 +660,2 @@ * </note>

* @public
* @enum
*/
export declare const QueryTransactionStatus: {
/**
* The transaction completed on the blockchain, but failed
*/
readonly FAILED: "FAILED";
/**
* The transaction has been confirmed and is final in the blockchain
*/
readonly FINAL: "FINAL";
};
/**
* @public
*/
export type QueryTransactionStatus = (typeof QueryTransactionStatus)[keyof typeof QueryTransactionStatus];
/**
* @public
* <p>There are two possible types of transactions used for this data type:</p>

@@ -716,24 +715,2 @@ * <ul>

* @public
* @deprecated
*
* <p>The status of the transaction.</p>
* <important>
* <p>This property is deprecated. You must use the <code>confirmationStatus</code>
* and the <code>executionStatus</code> properties to determine if the <code>status</code>
* of the transaction is <code>FINAL</code> or <code>FAILED</code>.</p>
* <ul>
* <li>
* <p>Transactions with a <code>status</code> of <code>FINAL</code> will now have the <code>confirmationStatus</code> set
* to <code>FINAL</code> and the <code>executionStatus</code> set to <code>SUCCEEDED</code>.</p>
* </li>
* <li>
* <p>Transactions with a <code>status</code> of <code>FAILED</code> will now have the <code>confirmationStatus</code> set
* to <code>FINAL</code> and the <code>executionStatus</code> set to <code>FAILED</code>.</p>
* </li>
* </ul>
* </important>
*/
status?: QueryTransactionStatus;
/**
* @public
* <p>The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>

@@ -831,2 +808,11 @@ */

* <p>The maximum number of contracts to list.</p>
* <p>Default:<code>100</code>
* </p>
* <note>
* <p>Even if additional results can be retrieved, the request can return less
* results than <code>maxResults</code> or an empty array of results.</p>
* <p>To retrieve the next set of results, make another request with the
* returned <code>nextToken</code> value. The value of <code>nextToken</code> is
* <code>null</code> when there are no more results to return</p>
* </note>
*/

@@ -918,2 +904,11 @@ maxResults?: number;

* <p>The maximum number of token balances to return.</p>
* <p>Default:<code>100</code>
* </p>
* <note>
* <p>Even if additional results can be retrieved, the request can return less
* results than <code>maxResults</code> or an empty array of results.</p>
* <p>To retrieve the next set of results, make another request with the
* returned <code>nextToken</code> value. The value of <code>nextToken</code> is
* <code>null</code> when there are no more results to return</p>
* </note>
*/

@@ -995,2 +990,4 @@ maxResults?: number;

* <p>The maximum number of transaction events to list.</p>
* <p>Default:<code>100</code>
* </p>
* <note>

@@ -1210,4 +1207,4 @@ * <p>Even if additional results can be retrieved, the request can return less

* @public
* <p>Sorts items in an ascending order if the first page starts at <code>fromTime</code>.
* Sorts items in a descending order if the first page starts at <code>toTime</code>.</p>
* <p>The order by which the results will be sorted. If <code>ASCENNDING</code> is selected, the results
* will be ordered by <code>fromTime</code>. </p>
*/

@@ -1223,2 +1220,4 @@ sort?: ListTransactionsSort;

* <p>The maximum number of transactions to list.</p>
* <p>Default:<code>100</code>
* </p>
* <note>

@@ -1233,2 +1232,10 @@ * <p>Even if additional results can be retrieved, the request can return less

maxResults?: number;
/**
* @public
* <p>This filter is used to include transactions in the response that haven't reached <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">
* <i>finality</i>
* </a>. Transactions that have reached finiality are always
* part of the response.</p>
*/
confirmationStatusFilter?: ConfirmationStatusFilter;
}

@@ -1255,2 +1262,7 @@ /**

transactionTimestamp: Date | undefined;
/**
* @public
* <p>Specifies whether to list transactions that have not reached Finality.</p>
*/
confirmationStatus?: ConfirmationStatus;
}

@@ -1257,0 +1269,0 @@ /**

@@ -145,5 +145,9 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";

readonly FINAL: "FINAL";
readonly NONFINAL: "NONFINAL";
};
export type ConfirmationStatus =
(typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
export interface ConfirmationStatusFilter {
include: ConfirmationStatus[] | undefined;
}
export interface ContractFilter {

@@ -190,8 +194,2 @@ network: QueryNetwork | undefined;

}
export declare const QueryTransactionStatus: {
readonly FAILED: "FAILED";
readonly FINAL: "FINAL";
};
export type QueryTransactionStatus =
(typeof QueryTransactionStatus)[keyof typeof QueryTransactionStatus];
export interface Transaction {

@@ -205,3 +203,2 @@ network: QueryNetwork | undefined;

numberOfTransactions: number | undefined;
status?: QueryTransactionStatus;
to: string | undefined;

@@ -317,2 +314,3 @@ from?: string;

maxResults?: number;
confirmationStatusFilter?: ConfirmationStatusFilter;
}

@@ -323,2 +321,3 @@ export interface TransactionOutputItem {

transactionTimestamp: Date | undefined;
confirmationStatus?: ConfirmationStatus;
}

@@ -325,0 +324,0 @@ export interface ListTransactionsOutput {

{
"name": "@aws-sdk/client-managedblockchain-query",
"description": "AWS SDK for JavaScript Managedblockchain Query Client for Node.js, Browser and React Native",
"version": "3.504.0",
"version": "3.505.0",
"scripts": {

@@ -6,0 +6,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

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