-
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.
feat(api): update via SDK Studio (#65)
- Loading branch information
1 parent
6f7b115
commit 721434c
Showing
6 changed files
with
4 additions
and
95 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: 7 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-dbdb9cdcb11bf5cff7ce744d33b91fdfd6eda085a453d524224d4abe7c77379c.yml | ||
configured_endpoints: 6 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-a82d4aaa385143b0ef4a1d37334a837b1a6c6717cb85bc8c5acc28b7159aaf97.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
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,54 +1,5 @@ | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
import * as Core from '@blockaid/client/core'; | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as TransactionRawAPI from '@blockaid/client/resources/evm/transaction-raw'; | ||
import * as EvmAPI from '@blockaid/client/resources/evm/evm'; | ||
|
||
export class TransactionRaw extends APIResource { | ||
/** | ||
* Gets a raw transaction and returns a full simulation indicating what will happen | ||
* in the transaction together with a recommended action and some textual reasons | ||
* of why the transaction was flagged that way. | ||
*/ | ||
scan( | ||
body: TransactionRawScanParams, | ||
options?: Core.RequestOptions, | ||
): Core.APIPromise<EvmAPI.TransactionScanResponse> { | ||
return this._client.post('/v0/evm/transaction-raw/scan', { body, ...options }); | ||
} | ||
} | ||
|
||
export interface TransactionRawScanParams { | ||
/** | ||
* The address to relate the transaction to. Account address determines in which | ||
* perspective the transaction is simulated and validated. | ||
*/ | ||
account_address: string; | ||
|
||
/** | ||
* The chain name or chain ID | ||
*/ | ||
chain: EvmAPI.TransactionScanSupportedChain | (string & {}); | ||
|
||
/** | ||
* Hex string of the raw transaction data | ||
*/ | ||
data: string; | ||
|
||
/** | ||
* Object of additional information to validate against. | ||
*/ | ||
metadata: EvmAPI.Metadata; | ||
|
||
/** | ||
* list of one or both of options for the desired output. "simulation" - include | ||
* simulation output in your response. "validation" - include security validation | ||
* of the transaction in your response. Default is ["validation"] | ||
*/ | ||
options?: Array<'validation' | 'simulation' | 'gas_estimation' | 'events'>; | ||
} | ||
|
||
export namespace TransactionRaw { | ||
export import TransactionRawScanParams = TransactionRawAPI.TransactionRawScanParams; | ||
} | ||
export class TransactionRaw extends APIResource {} |
This file was deleted.
Oops, something went wrong.