-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51f5d7d
commit 6b0536e
Showing
15 changed files
with
373 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
configured_endpoints: 19 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-902cd766caf621526e262bf78c4164900f08418da206c2133d25143dc66f29c2.yml | ||
configured_endpoints: 23 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-63288e66fdf1e5107e6d267fd12a78568d07024b6b2808f9c0c9474d00b1a2ca.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
export { Bitcoin, type BitcoinTransactionScanRequest, type BitcoinTransactionScanResponse } from './bitcoin'; | ||
export { Transaction } from './transaction'; | ||
export { | ||
TransactionRaw, | ||
type TransactionRawReportResponse, | ||
type TransactionRawReportParams, | ||
type TransactionRawScanParams, | ||
} from './transaction-raw'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
import { APIResource } from '../../resource'; | ||
import * as Core from '../../core'; | ||
import * as BitcoinAPI from './bitcoin'; | ||
|
||
export class TransactionRaw extends APIResource { | ||
/** | ||
* Report Transaction | ||
*/ | ||
report( | ||
body: TransactionRawReportParams, | ||
options?: Core.RequestOptions, | ||
): Core.APIPromise<TransactionRawReportResponse> { | ||
return this._client.post('/v0/bitcoin/transaction/report', { body, ...options }); | ||
} | ||
|
||
/** | ||
* Scan Transaction | ||
*/ | ||
scan( | ||
body: TransactionRawScanParams, | ||
options?: Core.RequestOptions, | ||
): Core.APIPromise<BitcoinAPI.BitcoinTransactionScanResponse> { | ||
return this._client.post('/v0/bitcoin/transaction-raw/scan', { body, ...options }); | ||
} | ||
} | ||
|
||
export type TransactionRawReportResponse = number; | ||
|
||
export interface TransactionRawReportParams { | ||
details: string; | ||
|
||
event: 'should_be_malicious' | 'should_be_benign' | 'wrong_simulation_result'; | ||
|
||
report: | ||
| TransactionRawReportParams.BitcoinAppealRequestID | ||
| TransactionRawReportParams.BitcoinAppealTransactionDataReport; | ||
} | ||
|
||
export namespace TransactionRawReportParams { | ||
export interface BitcoinAppealRequestID { | ||
id: string; | ||
|
||
type?: 'request_id'; | ||
} | ||
|
||
export interface BitcoinAppealTransactionDataReport { | ||
params: BitcoinAPI.BitcoinTransactionScanRequest; | ||
|
||
type?: 'params'; | ||
} | ||
} | ||
|
||
export interface TransactionRawScanParams { | ||
account_address: string; | ||
|
||
chain: 'bitcoin'; | ||
|
||
/** | ||
* Metadata | ||
*/ | ||
metadata: | ||
| TransactionRawScanParams.BitcoinWalletRequestMetadata | ||
| TransactionRawScanParams.BitcoinInAppRequestMetadata; | ||
|
||
transaction: string; | ||
|
||
/** | ||
* 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 | ||
*/ | ||
options?: Array<'validation' | 'simulation'>; | ||
} | ||
|
||
export namespace TransactionRawScanParams { | ||
export interface BitcoinWalletRequestMetadata { | ||
/** | ||
* Metadata for wallet requests | ||
*/ | ||
type: 'wallet'; | ||
|
||
/** | ||
* URL of the dApp originating the transaction | ||
*/ | ||
url: string; | ||
} | ||
|
||
export interface BitcoinInAppRequestMetadata { | ||
/** | ||
* Metadata for in-app requests | ||
*/ | ||
type?: 'in_app'; | ||
} | ||
} | ||
|
||
export declare namespace TransactionRaw { | ||
export { | ||
type TransactionRawReportResponse as TransactionRawReportResponse, | ||
type TransactionRawReportParams as TransactionRawReportParams, | ||
type TransactionRawScanParams as TransactionRawScanParams, | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.