/** * Satstream API * Satstream API * * OpenAPI spec version: 1.0 * Contact: team@satstream.io * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { CombineRawTransactionResponse } from '../models'; import { ConvertToPSBTResponse } from '../models'; import { CreateRawTransactionResponse } from '../models'; import { DecodeTransactionResponse } from '../models'; import { GetRawTransactionDecodeResponse } from '../models'; import { GetRawTransactionHexResponse } from '../models'; import { GetRawTransactionPrevoutResponse } from '../models'; import { GetTxOutProofResponse } from '../models'; import { GetTxOutResponse } from '../models'; import { GetTxSpendingPrevoutResponse } from '../models'; import { SendRawTransactionResponse } from '../models'; import { TransactionCombineRawTransactionRequest } from '../models'; import { TransactionConvertToPSBTRequest } from '../models'; import { TransactionCreateRawTxRequest } from '../models'; import { TransactionGetTxOutProofRequest } from '../models'; import { TransactionGetTxOutRequest } from '../models'; import { TransactionGetTxSpendingPrevoutRequest } from '../models'; import { TransactionSendRawTransactionRequest } from '../models'; import { TransactionVerifyTxOutProofRequest } from '../models'; import { VerifyTxOutProofResponse } from '../models'; /** * TransactionsApi - axios parameter creator * @export */ export declare const TransactionsApiAxiosParamCreator: (configuration?: Configuration) => { /** * Combines multiple partially signed transactions into one transaction * @summary Combine Raw Transactions * @param {TransactionCombineRawTransactionRequest} body Array of hex-encoded raw transactions * @param {*} [options] Override http request option. * @throws {RequiredError} */ combineRawTransaction: (body: TransactionCombineRawTransactionRequest, options?: AxiosRequestConfig) => Promise; /** * Converts a network serialized transaction to a PSBT. This should be used only with createrawtransaction and fundrawtransaction. createpsbt and walletcreatefundedpsbt should be used for new applications. * @summary Convert Raw Transaction to PSBT * @param {TransactionConvertToPSBTRequest} body Raw transaction conversion parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ convertToPsbt: (body: TransactionConvertToPSBTRequest, options?: AxiosRequestConfig) => Promise; /** * Creates a raw transaction spending the given inputs and creating new outputs. Note that the transaction's inputs are not signed, and it is not stored in the wallet or transmitted to the network. * @summary Create Raw Transaction * @param {TransactionCreateRawTxRequest} body Transaction parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRawTransaction: (body: TransactionCreateRawTxRequest, options?: AxiosRequestConfig) => Promise; /** * Decodes a transaction and returns its inscriptions and runestone data * @summary Decode transaction inscriptions * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ decodeTxInscriptions: (txid: string, options?: AxiosRequestConfig) => Promise; /** * Get raw transaction with basic decoded information * @summary Get raw transaction (verbosity 1) * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRawTransaction: (txid: string, options?: AxiosRequestConfig) => Promise; /** * Get raw transaction as a raw hex string * @summary Get raw transaction (verbosity 0) * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRawTransactionHex: (txid: string, options?: AxiosRequestConfig) => Promise; /** * Get raw transaction with prevout information * @summary Get raw transaction with prevouts (verbosity 2) * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRawTransactionPrevout: (txid: string, options?: AxiosRequestConfig) => Promise; /** * Returns details about an unspent transaction output * @summary Get transaction output * @param {TransactionGetTxOutRequest} body Transaction output request parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTxOut: (body: TransactionGetTxOutRequest, options?: AxiosRequestConfig) => Promise; /** * Returns a hex-encoded proof that one or more specified transactions were included in a block * @summary Get transaction output proof * @param {TransactionGetTxOutProofRequest} body Transaction proof request parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTxOutProof: (body: TransactionGetTxOutProofRequest, options?: AxiosRequestConfig) => Promise; /** * Scans the mempool to find transactions spending any of the given outputs * @summary Get transaction spending prevout * @param {TransactionGetTxSpendingPrevoutRequest} body Transaction spending prevout request * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTxSpendingPrevout: (body: TransactionGetTxSpendingPrevoutRequest, options?: AxiosRequestConfig) => Promise; /** * Submits a raw transaction to local node and network * @summary Send raw transaction * @param {TransactionSendRawTransactionRequest} body Raw transaction to send * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendRawTransaction: (body: TransactionSendRawTransactionRequest, options?: AxiosRequestConfig) => Promise; /** * Verifies that a proof points to a transaction in a block * @summary Verify transaction output proof * @param {TransactionVerifyTxOutProofRequest} body Proof to verify * @param {*} [options] Override http request option. * @throws {RequiredError} */ verifyTxOutProof: (body: TransactionVerifyTxOutProofRequest, options?: AxiosRequestConfig) => Promise; }; /** * TransactionsApi - functional programming interface * @export */ export declare const TransactionsApiFp: (configuration?: Configuration) => { /** * Combines multiple partially signed transactions into one transaction * @summary Combine Raw Transactions * @param {TransactionCombineRawTransactionRequest} body Array of hex-encoded raw transactions * @param {*} [options] Override http request option. * @throws {RequiredError} */ combineRawTransaction(body: TransactionCombineRawTransactionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Converts a network serialized transaction to a PSBT. This should be used only with createrawtransaction and fundrawtransaction. createpsbt and walletcreatefundedpsbt should be used for new applications. * @summary Convert Raw Transaction to PSBT * @param {TransactionConvertToPSBTRequest} body Raw transaction conversion parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ convertToPsbt(body: TransactionConvertToPSBTRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Creates a raw transaction spending the given inputs and creating new outputs. Note that the transaction's inputs are not signed, and it is not stored in the wallet or transmitted to the network. * @summary Create Raw Transaction * @param {TransactionCreateRawTxRequest} body Transaction parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRawTransaction(body: TransactionCreateRawTxRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Decodes a transaction and returns its inscriptions and runestone data * @summary Decode transaction inscriptions * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ decodeTxInscriptions(txid: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Get raw transaction with basic decoded information * @summary Get raw transaction (verbosity 1) * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRawTransaction(txid: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Get raw transaction as a raw hex string * @summary Get raw transaction (verbosity 0) * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRawTransactionHex(txid: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Get raw transaction with prevout information * @summary Get raw transaction with prevouts (verbosity 2) * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRawTransactionPrevout(txid: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Returns details about an unspent transaction output * @summary Get transaction output * @param {TransactionGetTxOutRequest} body Transaction output request parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTxOut(body: TransactionGetTxOutRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Returns a hex-encoded proof that one or more specified transactions were included in a block * @summary Get transaction output proof * @param {TransactionGetTxOutProofRequest} body Transaction proof request parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTxOutProof(body: TransactionGetTxOutProofRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Scans the mempool to find transactions spending any of the given outputs * @summary Get transaction spending prevout * @param {TransactionGetTxSpendingPrevoutRequest} body Transaction spending prevout request * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTxSpendingPrevout(body: TransactionGetTxSpendingPrevoutRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Submits a raw transaction to local node and network * @summary Send raw transaction * @param {TransactionSendRawTransactionRequest} body Raw transaction to send * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendRawTransaction(body: TransactionSendRawTransactionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * Verifies that a proof points to a transaction in a block * @summary Verify transaction output proof * @param {TransactionVerifyTxOutProofRequest} body Proof to verify * @param {*} [options] Override http request option. * @throws {RequiredError} */ verifyTxOutProof(body: TransactionVerifyTxOutProofRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; }; /** * TransactionsApi - factory interface * @export */ export declare const TransactionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Combines multiple partially signed transactions into one transaction * @summary Combine Raw Transactions * @param {TransactionCombineRawTransactionRequest} body Array of hex-encoded raw transactions * @param {*} [options] Override http request option. * @throws {RequiredError} */ combineRawTransaction(body: TransactionCombineRawTransactionRequest, options?: AxiosRequestConfig): Promise>; /** * Converts a network serialized transaction to a PSBT. This should be used only with createrawtransaction and fundrawtransaction. createpsbt and walletcreatefundedpsbt should be used for new applications. * @summary Convert Raw Transaction to PSBT * @param {TransactionConvertToPSBTRequest} body Raw transaction conversion parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ convertToPsbt(body: TransactionConvertToPSBTRequest, options?: AxiosRequestConfig): Promise>; /** * Creates a raw transaction spending the given inputs and creating new outputs. Note that the transaction's inputs are not signed, and it is not stored in the wallet or transmitted to the network. * @summary Create Raw Transaction * @param {TransactionCreateRawTxRequest} body Transaction parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRawTransaction(body: TransactionCreateRawTxRequest, options?: AxiosRequestConfig): Promise>; /** * Decodes a transaction and returns its inscriptions and runestone data * @summary Decode transaction inscriptions * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ decodeTxInscriptions(txid: string, options?: AxiosRequestConfig): Promise>; /** * Get raw transaction with basic decoded information * @summary Get raw transaction (verbosity 1) * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRawTransaction(txid: string, options?: AxiosRequestConfig): Promise>; /** * Get raw transaction as a raw hex string * @summary Get raw transaction (verbosity 0) * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRawTransactionHex(txid: string, options?: AxiosRequestConfig): Promise>; /** * Get raw transaction with prevout information * @summary Get raw transaction with prevouts (verbosity 2) * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRawTransactionPrevout(txid: string, options?: AxiosRequestConfig): Promise>; /** * Returns details about an unspent transaction output * @summary Get transaction output * @param {TransactionGetTxOutRequest} body Transaction output request parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTxOut(body: TransactionGetTxOutRequest, options?: AxiosRequestConfig): Promise>; /** * Returns a hex-encoded proof that one or more specified transactions were included in a block * @summary Get transaction output proof * @param {TransactionGetTxOutProofRequest} body Transaction proof request parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTxOutProof(body: TransactionGetTxOutProofRequest, options?: AxiosRequestConfig): Promise>; /** * Scans the mempool to find transactions spending any of the given outputs * @summary Get transaction spending prevout * @param {TransactionGetTxSpendingPrevoutRequest} body Transaction spending prevout request * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTxSpendingPrevout(body: TransactionGetTxSpendingPrevoutRequest, options?: AxiosRequestConfig): Promise>; /** * Submits a raw transaction to local node and network * @summary Send raw transaction * @param {TransactionSendRawTransactionRequest} body Raw transaction to send * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendRawTransaction(body: TransactionSendRawTransactionRequest, options?: AxiosRequestConfig): Promise>; /** * Verifies that a proof points to a transaction in a block * @summary Verify transaction output proof * @param {TransactionVerifyTxOutProofRequest} body Proof to verify * @param {*} [options] Override http request option. * @throws {RequiredError} */ verifyTxOutProof(body: TransactionVerifyTxOutProofRequest, options?: AxiosRequestConfig): Promise>; }; /** * TransactionsApi - object-oriented interface * @export * @class TransactionsApi * @extends {BaseAPI} */ export declare class TransactionsApi extends BaseAPI { /** * Combines multiple partially signed transactions into one transaction * @summary Combine Raw Transactions * @param {TransactionCombineRawTransactionRequest} body Array of hex-encoded raw transactions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionsApi */ combineRawTransaction(body: TransactionCombineRawTransactionRequest, options?: AxiosRequestConfig): Promise>; /** * Converts a network serialized transaction to a PSBT. This should be used only with createrawtransaction and fundrawtransaction. createpsbt and walletcreatefundedpsbt should be used for new applications. * @summary Convert Raw Transaction to PSBT * @param {TransactionConvertToPSBTRequest} body Raw transaction conversion parameters * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionsApi */ convertToPsbt(body: TransactionConvertToPSBTRequest, options?: AxiosRequestConfig): Promise>; /** * Creates a raw transaction spending the given inputs and creating new outputs. Note that the transaction's inputs are not signed, and it is not stored in the wallet or transmitted to the network. * @summary Create Raw Transaction * @param {TransactionCreateRawTxRequest} body Transaction parameters * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionsApi */ createRawTransaction(body: TransactionCreateRawTxRequest, options?: AxiosRequestConfig): Promise>; /** * Decodes a transaction and returns its inscriptions and runestone data * @summary Decode transaction inscriptions * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionsApi */ decodeTxInscriptions(txid: string, options?: AxiosRequestConfig): Promise>; /** * Get raw transaction with basic decoded information * @summary Get raw transaction (verbosity 1) * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionsApi */ getRawTransaction(txid: string, options?: AxiosRequestConfig): Promise>; /** * Get raw transaction as a raw hex string * @summary Get raw transaction (verbosity 0) * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionsApi */ getRawTransactionHex(txid: string, options?: AxiosRequestConfig): Promise>; /** * Get raw transaction with prevout information * @summary Get raw transaction with prevouts (verbosity 2) * @param {string} txid Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionsApi */ getRawTransactionPrevout(txid: string, options?: AxiosRequestConfig): Promise>; /** * Returns details about an unspent transaction output * @summary Get transaction output * @param {TransactionGetTxOutRequest} body Transaction output request parameters * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionsApi */ getTxOut(body: TransactionGetTxOutRequest, options?: AxiosRequestConfig): Promise>; /** * Returns a hex-encoded proof that one or more specified transactions were included in a block * @summary Get transaction output proof * @param {TransactionGetTxOutProofRequest} body Transaction proof request parameters * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionsApi */ getTxOutProof(body: TransactionGetTxOutProofRequest, options?: AxiosRequestConfig): Promise>; /** * Scans the mempool to find transactions spending any of the given outputs * @summary Get transaction spending prevout * @param {TransactionGetTxSpendingPrevoutRequest} body Transaction spending prevout request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionsApi */ getTxSpendingPrevout(body: TransactionGetTxSpendingPrevoutRequest, options?: AxiosRequestConfig): Promise>; /** * Submits a raw transaction to local node and network * @summary Send raw transaction * @param {TransactionSendRawTransactionRequest} body Raw transaction to send * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionsApi */ sendRawTransaction(body: TransactionSendRawTransactionRequest, options?: AxiosRequestConfig): Promise>; /** * Verifies that a proof points to a transaction in a block * @summary Verify transaction output proof * @param {TransactionVerifyTxOutProofRequest} body Proof to verify * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionsApi */ verifyTxOutProof(body: TransactionVerifyTxOutProofRequest, options?: AxiosRequestConfig): Promise>; }