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

@blockaid/client

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockaid/client - npm Package Compare versions

Comparing version 0.27.4 to 0.28.0

9

CHANGELOG.md
# Changelog
## 0.28.0 (2024-10-11)
Full Changelog: [v0.27.4...v0.28.0](https://github.com/blockaid-official/blockaid-client-node/compare/v0.27.4...v0.28.0)
### Features
* **api:** api update ([#294](https://github.com/blockaid-official/blockaid-client-node/issues/294)) ([6485e5d](https://github.com/blockaid-official/blockaid-client-node/commit/6485e5d4db5e01a8f9774ae306bb86f706ef2530))
* **api:** OpenAPI spec update via Stainless API ([#292](https://github.com/blockaid-official/blockaid-client-node/issues/292)) ([afde75c](https://github.com/blockaid-official/blockaid-client-node/commit/afde75c9eedc9f1feb5c77b0f7faee8aa7a37724))
## 0.27.4 (2024-10-09)

@@ -4,0 +13,0 @@

2

package.json
{
"name": "@blockaid/client",
"version": "0.27.4",
"version": "0.28.0",
"description": "The official TypeScript library for the Blockaid API",

@@ -5,0 +5,0 @@ "author": "Blockaid <feedback@blockaid.io>",

@@ -14,57 +14,270 @@ import { APIResource } from "../../resource.js";

*/
simulation?: TransactionScanResponse.BitcoinSimulationSchema | TransactionScanResponse.BitcoinSimulationErrorSchema | null;
simulation?: TransactionScanResponse.BitcoinBitcoinSimulationSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaUnionAnnotatedAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleNativeAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleOrdinalAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleRunesAssetDiffEmptyModelEmptyModelAddressDetailsBaseSchemaAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaAnnotatedEmptyModelSimulationSchemaConfiguration | TransactionScanResponse.BitcoinSimulationErrorSchema | null;
/**
* Validation result; Only present if validation option is included in the request
*/
validation?: TransactionScanResponse.BitcoinValidationResultSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchema | TransactionScanResponse.BitcoinValidationErrorSchema | null;
}
export declare namespace TransactionScanResponse {
interface BitcoinSimulationSchema {
interface BitcoinBitcoinSimulationSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaUnionAnnotatedAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleNativeAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleOrdinalAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleRunesAssetDiffEmptyModelEmptyModelAddressDetailsBaseSchemaAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaAnnotatedEmptyModelSimulationSchemaConfiguration {
status: 'Success';
account_summary?: null;
/**
* A dictionary describing the assets differences as a result of this transaction
* for every involved address
* Details of addresses involved in the transaction
*/
assets_diffs: Record<string, Array<BitcoinSimulationSchema.AssetsDiff>>;
status?: 'Success';
address_details?: Array<BitcoinBitcoinSimulationSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaUnionAnnotatedAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleNativeAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleOrdinalAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleRunesAssetDiffEmptyModelEmptyModelAddressDetailsBaseSchemaAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaAnnotatedEmptyModelSimulationSchemaConfiguration.AddressDetail>;
/**
* Mapping between the address of an account to the assets diff during the
* transaction
*/
assets_diffs?: Record<string, Array<BitcoinBitcoinSimulationSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaUnionAnnotatedAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleNativeAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleOrdinalAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleRunesAssetDiffEmptyModelEmptyModelAddressDetailsBaseSchemaAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaAnnotatedEmptyModelSimulationSchemaConfiguration.BitcoinAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema | BitcoinBitcoinSimulationSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaUnionAnnotatedAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleNativeAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleOrdinalAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleRunesAssetDiffEmptyModelEmptyModelAddressDetailsBaseSchemaAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaAnnotatedEmptyModelSimulationSchemaConfiguration.BitcoinAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchema | BitcoinBitcoinSimulationSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaUnionAnnotatedAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleNativeAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleOrdinalAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleRunesAssetDiffEmptyModelEmptyModelAddressDetailsBaseSchemaAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaAnnotatedEmptyModelSimulationSchemaConfiguration.BitcoinAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchema>>;
}
namespace BitcoinSimulationSchema {
interface AssetsDiff {
namespace BitcoinBitcoinSimulationSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaUnionAnnotatedAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleNativeAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleOrdinalAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleRunesAssetDiffEmptyModelEmptyModelAddressDetailsBaseSchemaAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaAnnotatedEmptyModelSimulationSchemaConfiguration {
interface AddressDetail {
/**
* Description of the asset for the current diff
* Encoded public key of the account
*/
asset: AssetsDiff.Asset;
account_address: string;
/**
* The assets received by the address
* Description of the account
*/
in?: Array<AssetsDiff.In>;
description?: string | null;
}
interface BitcoinAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema {
asset: BitcoinAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema.Asset;
/**
* The assets sent by the address
* Details of the incoming transfer
*/
out?: Array<AssetsDiff.Out>;
in?: BitcoinAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema.In | null;
/**
* Details of the outgoing transfer
*/
out?: BitcoinAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema.Out | null;
}
namespace AssetsDiff {
namespace BitcoinAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema {
interface Asset {
/**
* URL of the asset's logo
*/
logo_url: string | null;
/**
* Decimals of the asset
*/
decimals?: 8;
/**
* Name of the asset
*/
name?: 'Bitcoin';
/**
* Symbol of the asset
*/
symbol?: 'BTC';
/**
* Type of the asset (`NATIVE`)
*/
type?: 'NATIVE';
}
/**
* Description of the asset for the current diff
* Details of the incoming transfer
*/
interface In {
/**
* Raw value of the transfer
*/
raw_value: string;
/**
* USD price of the asset
*/
usd_price: string;
/**
* Value of the transfer
*/
value: string;
/**
* Summarized description of the transfer
*/
summary?: string | null;
}
/**
* Details of the outgoing transfer
*/
interface Out {
/**
* Raw value of the transfer
*/
raw_value: string;
/**
* USD price of the asset
*/
usd_price: string;
/**
* Value of the transfer
*/
value: string;
/**
* Summarized description of the transfer
*/
summary?: string | null;
}
}
interface BitcoinAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchema {
asset: BitcoinAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchema.Asset;
/**
* Details of the incoming transfer
*/
in?: BitcoinAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchema.In | null;
/**
* Details of the outgoing transfer
*/
out?: BitcoinAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchema.Out | null;
}
namespace BitcoinAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchema {
interface Asset {
chain_name: string;
/**
* token's name
*/
name: string;
/**
* URL of the asset's logo
*/
logo_url?: string | null;
/**
* Type of the asset (`ORDINAL`)
*/
type?: 'ORDINAL';
}
/**
* Details of the incoming transfer
*/
interface In {
/**
* Id of the ordinal
*/
id: string;
/**
* Raw value of the transfer
*/
raw_value: string;
/**
* USD price of the asset
*/
usd_price: string;
/**
* Value of the transfer
*/
value: string;
/**
* Summarized description of the transfer
*/
summary?: string | null;
}
/**
* Details of the outgoing transfer
*/
interface Out {
/**
* Id of the ordinal
*/
id: string;
/**
* Raw value of the transfer
*/
raw_value: string;
/**
* USD price of the asset
*/
usd_price: string;
/**
* Value of the transfer
*/
value: string;
/**
* Summarized description of the transfer
*/
summary?: string | null;
}
}
interface BitcoinAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchema {
asset: BitcoinAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchema.Asset;
/**
* Details of the incoming transfer
*/
in?: BitcoinAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchema.In | null;
/**
* Details of the outgoing transfer
*/
out?: BitcoinAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchema.Out | null;
}
namespace BitcoinAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchema {
interface Asset {
/**
* The Rune ID
*/
id: string;
/**
* Decimals of the asset
*/
decimals: number;
logo_url: string;
/**
* The Rune name
*/
name: string;
type: 'NATIVE' | 'RUNE' | 'ORDINAL';
id?: string;
spaced_name?: string;
symbol?: string;
/**
* The Rune spaced name
*/
spaced_name: string;
/**
* token's symbol
*/
symbol: string;
/**
* URL of the asset's logo
*/
logo_url?: string | null;
/**
* Type of the asset (`RUNE`)
*/
type?: 'RUNE';
}
/**
* Details of the incoming transfer
*/
interface In {
name?: string;
raw_value?: string;
summary?: string;
token_id?: string;
usd_price?: string;
value?: string;
/**
* Raw value of the transfer
*/
raw_value: string;
/**
* USD price of the asset
*/
usd_price: string;
/**
* Value of the transfer
*/
value: string;
/**
* Summarized description of the transfer
*/
summary?: string | null;
}
/**
* Details of the outgoing transfer
*/
interface Out {
name?: string;
raw_value?: string;
summary?: string;
token_id?: string;
usd_price?: string;
value?: string;
/**
* Raw value of the transfer
*/
raw_value: string;
/**
* USD price of the asset
*/
usd_price: string;
/**
* Value of the transfer
*/
value: string;
/**
* Summarized description of the transfer
*/
summary?: string | null;
}

@@ -80,29 +293,72 @@ }

}
interface BitcoinValidationResultSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchema {
/**
* A textual classification that can be presented to the user explaining the
* reason.
*/
classification: string;
/**
* A textual description about the validation result
*/
description: string;
/**
* A list of features about this transaction explaining the validation
*/
features: Array<BitcoinValidationResultSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchema.Feature>;
/**
* A textual description about the reasons the transaction was flagged with
* result_type
*/
reason: string;
/**
* Verdict of the validation
*/
result_type: 'Benign' | 'Warning' | 'Malicious';
status: 'Success';
}
namespace BitcoinValidationResultSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchema {
interface Feature {
/**
* Address the feature refers to
*/
address: string;
/**
* Textual description
*/
description: string;
feature_id: string;
/**
* Feature Classification
*/
type: 'Benign' | 'Warning' | 'Malicious' | 'Info';
}
}
interface BitcoinValidationErrorSchema {
/**
* Error message
*/
error: string;
status: 'Error';
}
}
export interface TransactionScanParams {
account_address: string;
chain: 'bitcoin';
/**
* List of options to include in the response
*
* - `simulation`: Include simulation output in the response
* Metadata
*/
options: Array<'simulation'>;
/**
* The transaction encoded as a hex string
*/
metadata: TransactionScanParams.BitcoinblockaidApplicationRunnerAppSchemasTransactionScanningAPIWalletRequestMetadata | TransactionScanParams.BitcoinInAppRequestMetadata;
transaction: string;
chain?: 'bitcoin';
/**
* Metadata
* List of options to include in the response
*
* - `Options.validation`: Include Options.validation output in the response
*
* - `Options.simulation`: Include Options.simulation output in the response
*/
metadata?: TransactionScanParams.BitcoinInAppRequestMetadata | TransactionScanParams.BitcoinWalletRequestMetadata;
options?: Array<'validation' | 'simulation'>;
}
export declare namespace TransactionScanParams {
interface BitcoinInAppRequestMetadata {
interface BitcoinblockaidApplicationRunnerAppSchemasTransactionScanningAPIWalletRequestMetadata {
/**
* Metadata for in-app requests
*/
type: 'in_app';
}
interface BitcoinWalletRequestMetadata {
/**
* Metadata for wallet requests

@@ -112,6 +368,12 @@ */

/**
* URL of the dApp that originated the transaction
* URL of the dApp originating the transaction
*/
url: string;
}
interface BitcoinInAppRequestMetadata {
/**
* Metadata for in-app requests
*/
type: 'in_app';
}
}

@@ -118,0 +380,0 @@ export declare namespace Transaction {

@@ -562,3 +562,3 @@ import { APIResource } from "../../resource.js";

/**
* Advanced message of the error
* Human readable error
*/

@@ -570,2 +570,10 @@ message: string;

transaction_index: number;
/**
* Machine readable error code
*/
code?: string | null;
/**
* Error number
*/
number?: number | null;
type?: string;

@@ -572,0 +580,0 @@ }

@@ -21,85 +21,340 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

simulation?:
| TransactionScanResponse.BitcoinSimulationSchema
| TransactionScanResponse.BitcoinBitcoinSimulationSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaUnionAnnotatedAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleNativeAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleOrdinalAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleRunesAssetDiffEmptyModelEmptyModelAddressDetailsBaseSchemaAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaAnnotatedEmptyModelSimulationSchemaConfiguration
| TransactionScanResponse.BitcoinSimulationErrorSchema
| null;
/**
* Validation result; Only present if validation option is included in the request
*/
validation?:
| TransactionScanResponse.BitcoinValidationResultSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchema
| TransactionScanResponse.BitcoinValidationErrorSchema
| null;
}
export namespace TransactionScanResponse {
export interface BitcoinSimulationSchema {
export interface BitcoinBitcoinSimulationSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaUnionAnnotatedAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleNativeAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleOrdinalAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleRunesAssetDiffEmptyModelEmptyModelAddressDetailsBaseSchemaAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaAnnotatedEmptyModelSimulationSchemaConfiguration {
status: 'Success';
account_summary?: null;
/**
* A dictionary describing the assets differences as a result of this transaction
* for every involved address
* Details of addresses involved in the transaction
*/
assets_diffs: Record<string, Array<BitcoinSimulationSchema.AssetsDiff>>;
address_details?: Array<BitcoinBitcoinSimulationSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaUnionAnnotatedAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleNativeAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleOrdinalAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleRunesAssetDiffEmptyModelEmptyModelAddressDetailsBaseSchemaAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaAnnotatedEmptyModelSimulationSchemaConfiguration.AddressDetail>;
status?: 'Success';
/**
* Mapping between the address of an account to the assets diff during the
* transaction
*/
assets_diffs?: Record<
string,
Array<
| BitcoinBitcoinSimulationSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaUnionAnnotatedAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleNativeAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleOrdinalAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleRunesAssetDiffEmptyModelEmptyModelAddressDetailsBaseSchemaAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaAnnotatedEmptyModelSimulationSchemaConfiguration.BitcoinAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema
| BitcoinBitcoinSimulationSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaUnionAnnotatedAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleNativeAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleOrdinalAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleRunesAssetDiffEmptyModelEmptyModelAddressDetailsBaseSchemaAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaAnnotatedEmptyModelSimulationSchemaConfiguration.BitcoinAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchema
| BitcoinBitcoinSimulationSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaUnionAnnotatedAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleNativeAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleOrdinalAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleRunesAssetDiffEmptyModelEmptyModelAddressDetailsBaseSchemaAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaAnnotatedEmptyModelSimulationSchemaConfiguration.BitcoinAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchema
>
>;
}
export namespace BitcoinSimulationSchema {
export interface AssetsDiff {
export namespace BitcoinBitcoinSimulationSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaUnionAnnotatedAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleNativeAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleOrdinalAssetDiffAnnotatedAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchemaFieldInfoAnnotationNoneTypeRequiredTrueTitleRunesAssetDiffEmptyModelEmptyModelAddressDetailsBaseSchemaAnnotatedStrSkipValidationPlainSerializerGetPydanticSchemaAnnotatedEmptyModelSimulationSchemaConfiguration {
export interface AddressDetail {
/**
* Description of the asset for the current diff
* Encoded public key of the account
*/
asset: AssetsDiff.Asset;
account_address: string;
/**
* The assets received by the address
* Description of the account
*/
in?: Array<AssetsDiff.In>;
description?: string | null;
}
export interface BitcoinAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema {
asset: BitcoinAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema.Asset;
/**
* The assets sent by the address
* Details of the incoming transfer
*/
out?: Array<AssetsDiff.Out>;
}
in?: BitcoinAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema.In | null;
export namespace AssetsDiff {
/**
* Description of the asset for the current diff
* Details of the outgoing transfer
*/
out?: BitcoinAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema.Out | null;
}
export namespace BitcoinAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema {
export interface Asset {
chain_name: string;
/**
* URL of the asset's logo
*/
logo_url: string | null;
decimals: number;
/**
* Decimals of the asset
*/
decimals?: 8;
logo_url: string;
/**
* Name of the asset
*/
name?: 'Bitcoin';
name: string;
/**
* Symbol of the asset
*/
symbol?: 'BTC';
type: 'NATIVE' | 'RUNE' | 'ORDINAL';
/**
* Type of the asset (`NATIVE`)
*/
type?: 'NATIVE';
}
id?: string;
/**
* Details of the incoming transfer
*/
export interface In {
/**
* Raw value of the transfer
*/
raw_value: string;
spaced_name?: string;
/**
* USD price of the asset
*/
usd_price: string;
symbol?: string;
/**
* Value of the transfer
*/
value: string;
/**
* Summarized description of the transfer
*/
summary?: string | null;
}
export interface In {
name?: string;
/**
* Details of the outgoing transfer
*/
export interface Out {
/**
* Raw value of the transfer
*/
raw_value: string;
raw_value?: string;
/**
* USD price of the asset
*/
usd_price: string;
summary?: string;
/**
* Value of the transfer
*/
value: string;
token_id?: string;
/**
* Summarized description of the transfer
*/
summary?: string | null;
}
}
usd_price?: string;
export interface BitcoinAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchema {
asset: BitcoinAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchema.Asset;
value?: string;
/**
* Details of the incoming transfer
*/
in?: BitcoinAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchema.In | null;
/**
* Details of the outgoing transfer
*/
out?: BitcoinAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchema.Out | null;
}
export namespace BitcoinAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchema {
export interface Asset {
/**
* token's name
*/
name: string;
/**
* URL of the asset's logo
*/
logo_url?: string | null;
/**
* Type of the asset (`ORDINAL`)
*/
type?: 'ORDINAL';
}
/**
* Details of the incoming transfer
*/
export interface In {
/**
* Id of the ordinal
*/
id: string;
/**
* Raw value of the transfer
*/
raw_value: string;
/**
* USD price of the asset
*/
usd_price: string;
/**
* Value of the transfer
*/
value: string;
/**
* Summarized description of the transfer
*/
summary?: string | null;
}
/**
* Details of the outgoing transfer
*/
export interface Out {
name?: string;
/**
* Id of the ordinal
*/
id: string;
raw_value?: string;
/**
* Raw value of the transfer
*/
raw_value: string;
summary?: string;
/**
* USD price of the asset
*/
usd_price: string;
token_id?: string;
/**
* Value of the transfer
*/
value: string;
usd_price?: string;
/**
* Summarized description of the transfer
*/
summary?: string | null;
}
}
value?: string;
export interface BitcoinAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchema {
asset: BitcoinAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchema.Asset;
/**
* Details of the incoming transfer
*/
in?: BitcoinAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchema.In | null;
/**
* Details of the outgoing transfer
*/
out?: BitcoinAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchema.Out | null;
}
export namespace BitcoinAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchema {
export interface Asset {
/**
* The Rune ID
*/
id: string;
/**
* Decimals of the asset
*/
decimals: number;
/**
* The Rune name
*/
name: string;
/**
* The Rune spaced name
*/
spaced_name: string;
/**
* token's symbol
*/
symbol: string;
/**
* URL of the asset's logo
*/
logo_url?: string | null;
/**
* Type of the asset (`RUNE`)
*/
type?: 'RUNE';
}
/**
* Details of the incoming transfer
*/
export interface In {
/**
* Raw value of the transfer
*/
raw_value: string;
/**
* USD price of the asset
*/
usd_price: string;
/**
* Value of the transfer
*/
value: string;
/**
* Summarized description of the transfer
*/
summary?: string | null;
}
/**
* Details of the outgoing transfer
*/
export interface Out {
/**
* Raw value of the transfer
*/
raw_value: string;
/**
* USD price of the asset
*/
usd_price: string;
/**
* Value of the transfer
*/
value: string;
/**
* Summarized description of the transfer
*/
summary?: string | null;
}
}

@@ -116,37 +371,92 @@ }

}
export interface BitcoinValidationResultSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchema {
/**
* A textual classification that can be presented to the user explaining the
* reason.
*/
classification: string;
/**
* A textual description about the validation result
*/
description: string;
/**
* A list of features about this transaction explaining the validation
*/
features: Array<BitcoinValidationResultSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchema.Feature>;
/**
* A textual description about the reasons the transaction was flagged with
* result_type
*/
reason: string;
/**
* Verdict of the validation
*/
result_type: 'Benign' | 'Warning' | 'Malicious';
status: 'Success';
}
export namespace BitcoinValidationResultSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchema {
export interface Feature {
/**
* Address the feature refers to
*/
address: string;
/**
* Textual description
*/
description: string;
feature_id: string;
/**
* Feature Classification
*/
type: 'Benign' | 'Warning' | 'Malicious' | 'Info';
}
}
export interface BitcoinValidationErrorSchema {
/**
* Error message
*/
error: string;
status: 'Error';
}
}
export interface TransactionScanParams {
account_address: string;
chain: 'bitcoin';
/**
* List of options to include in the response
*
* - `simulation`: Include simulation output in the response
* Metadata
*/
options: Array<'simulation'>;
metadata:
| TransactionScanParams.BitcoinblockaidApplicationRunnerAppSchemasTransactionScanningAPIWalletRequestMetadata
| TransactionScanParams.BitcoinInAppRequestMetadata;
/**
* The transaction encoded as a hex string
*/
transaction: string;
chain?: 'bitcoin';
/**
* Metadata
* List of options to include in the response
*
* - `Options.validation`: Include Options.validation output in the response
*
* - `Options.simulation`: Include Options.simulation output in the response
*/
metadata?:
| TransactionScanParams.BitcoinInAppRequestMetadata
| TransactionScanParams.BitcoinWalletRequestMetadata;
options?: Array<'validation' | 'simulation'>;
}
export namespace TransactionScanParams {
export interface BitcoinInAppRequestMetadata {
export interface BitcoinblockaidApplicationRunnerAppSchemasTransactionScanningAPIWalletRequestMetadata {
/**
* Metadata for in-app requests
*/
type: 'in_app';
}
export interface BitcoinWalletRequestMetadata {
/**
* Metadata for wallet requests

@@ -157,6 +467,13 @@ */

/**
* URL of the dApp that originated the transaction
* URL of the dApp originating the transaction
*/
url: string;
}
export interface BitcoinInAppRequestMetadata {
/**
* Metadata for in-app requests
*/
type: 'in_app';
}
}

@@ -163,0 +480,0 @@

@@ -744,3 +744,3 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

/**
* Advanced message of the error
* Human readable error
*/

@@ -754,2 +754,12 @@ message: string;

/**
* Machine readable error code
*/
code?: string | null;
/**
* Error number
*/
number?: number | null;
type?: string;

@@ -756,0 +766,0 @@ }

@@ -1,1 +0,1 @@

export const VERSION = '0.27.4'; // x-release-please-version
export const VERSION = '0.28.0'; // x-release-please-version

@@ -1,2 +0,2 @@

export declare const VERSION = "0.27.4";
export declare const VERSION = "0.28.0";
//# sourceMappingURL=version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
exports.VERSION = '0.27.4'; // x-release-please-version
exports.VERSION = '0.28.0'; // x-release-please-version
//# sourceMappingURL=version.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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