UNPKG

@maestro-org/typescript-sdk

Version:

TypeScript SDK for the Maestro Dapp Platform

666 lines (615 loc) 33.6 kB
import { AxiosRequestConfig } from 'axios'; import { RequestArgs } from '../../base'; import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction, HEADER_AMOUNTS_AS_STRING, } from '../../common'; import { Configuration } from '../../configuration'; import { AddressInfo, TimestampedTxCount, PaginatedAddressTransaction, PaginatedPaymentCredentialTransaction, PaginatedUtxoRef, PaginatedUtxoWithSlot, AddressBalance, } from '../type'; import { TxsByAddressQueryParams, TxsByPaymentCredQueryParams, TxsByPaymentCredsQueryParams, UtxoRefsAtAddressQueryParams, UtxosByAddressQueryParams, UtxosByAddressesQueryParams, UtxosByPaymentCredQueryParams, } from './type'; /** * AddressesApi - axios parameter creator * @export */ export const AddressesApiAxiosParamCreator = (configuration: Configuration) => ({ /** * Returns the different information encoded within a Cardano address, including details of the payment and delegation parts of the address * @summary Decode address * @param {string} address Address in bech32/hex/base58 format * @param {*} [options] Override http request option. * @throws {RequiredError} */ decodeAddress: (address: string, options: AxiosRequestConfig = {}): RequestArgs => { // verify required parameter 'address' is not null or undefined assertParamExists('decodeAddress', 'address', address); const localVarPath = `/addresses/{address}/decode`.replace( `{${'address'}}`, encodeURIComponent(String(address)), ); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); const { baseOptions } = configuration; const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; const localVarHeaderParameter = {} as Record<string, string>; const localVarQueryParameter = {} as Record<string, string>; // authentication api-key required setApiKeyToObject(localVarHeaderParameter, 'api-key', configuration); setSearchParams(localVarUrlObj, localVarQueryParameter); const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Return total amount of assets, including ADA, in UTxOs controlled by a specific payment credential * @summary Address Balance * @param {string} credential Payment credential in bech32 format * @param {*} [options] Override http request option. * @throws {RequiredError} */ addressBalance: (credential: string, options: AxiosRequestConfig = {}): RequestArgs => { // verify required parameter 'credential' is not null or undefined assertParamExists('addressBalance', 'address', credential); const localVarPath = `/addresses/cred/{credential}/balance`.replace( `{${'credential'}}`, encodeURIComponent(String(credential)), ); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); const { baseOptions } = configuration; const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; const localVarHeaderParameter = {} as Record<string, string>; const localVarQueryParameter = {} as Record<string, string>; // authentication api-key required setApiKeyToObject(localVarHeaderParameter, 'api-key', configuration); setSearchParams(localVarUrlObj, localVarQueryParameter); const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the number of transactions in which the address spent or received some funds. Specifically, the number of transactions where: the address controlled at least one of the transaction inputs and/or receives one of the outputs AND the transaction is phase-2 valid, OR, the address controlled at least one of the collateral inputs and/or receives the collateral return output AND the transaction is phase-2 invalid. [Read more](https://docs.cardano.org/plutus/collateral-mechanism/). * @summary Address transaction count * @param {string} address Address in bech32 format * @param {*} [options] Override http request option. * @throws {RequiredError} */ txCountByAddress: (address: string, options: AxiosRequestConfig = {}): RequestArgs => { // verify required parameter 'address' is not null or undefined assertParamExists('txCountByAddress', 'address', address); const localVarPath = `/addresses/{address}/transactions/count`.replace( `{${'address'}}`, encodeURIComponent(String(address)), ); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); const { baseOptions } = configuration; const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; const localVarHeaderParameter = {} as Record<string, string>; const localVarQueryParameter = {} as Record<string, string>; // authentication api-key required setApiKeyToObject(localVarHeaderParameter, 'api-key', configuration); setSearchParams(localVarUrlObj, localVarQueryParameter); const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns transactions in which the specified address spent or received funds. Specifically, the transactions where: the address controlled at least one of the transaction inputs and/or receives one of the outputs AND the transaction is phase-2 valid, OR, the address controlled at least one of the collateral inputs and/or receives the collateral return output AND the transaction is phase-2 invalid. [Read more](https://docs.cardano.org/plutus/collateral-mechanism/). * @summary Address transactions * @param {string} address Address in bech32 format * @param {TxsByAddressQueryParams} [localVarQueryParameter] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ txsByAddress: ( address: string, localVarQueryParameter?: TxsByAddressQueryParams, options: AxiosRequestConfig = {}, ): RequestArgs => { // verify required parameter 'address' is not null or undefined assertParamExists('txsByAddress', 'address', address); const localVarPath = `/addresses/{address}/transactions`.replace( `{${'address'}}`, encodeURIComponent(String(address)), ); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); const { baseOptions } = configuration; const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; const localVarHeaderParameter = {} as Record<string, string>; // authentication api-key required setApiKeyToObject(localVarHeaderParameter, 'api-key', configuration); setSearchParams(localVarUrlObj, localVarQueryParameter); const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns transactions in which the specified payment credential spent or received funds. Specifically, the transactions where: the payment credential was used in an address which controlled at least one of the transaction inputs and/or receives one of the outputs AND the transaction is phase-2 valid, OR, the address controlled at least one of the collateral inputs and/or receives the collateral return output AND the transaction is phase-2 invalid. [Read more](https://docs.cardano.org/plutus/collateral-mechanism/). * @summary Payment credential transactions * @param {string} credential Payment credential in bech32 format * @param {TxsByPaymentCredQueryParams} [localVarQueryParameter] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ txsByPaymentCred: ( credential: string, localVarQueryParameter: TxsByPaymentCredQueryParams = {}, options: AxiosRequestConfig = {}, ): RequestArgs => { // verify required parameter 'credential' is not null or undefined assertParamExists('txsByPaymentCred', 'credential', credential); const localVarPath = `/addresses/cred/{credential}/transactions`.replace( `{${'credential'}}`, encodeURIComponent(String(credential)), ); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); const { baseOptions } = configuration; const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; const localVarHeaderParameter = {} as Record<string, string>; // authentication api-key required setApiKeyToObject(localVarHeaderParameter, 'api-key', configuration); setSearchParams(localVarUrlObj, localVarQueryParameter); const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns transactions in which the specified payment credentials spent or received funds. Specifically, the transactions where: the payment credentials were used in an address which controlled at least one of the transaction inputs and/or receives one of the outputs AND the transaction is phase-2 valid, OR, the address controlled at least one of the collateral inputs and/or receives the collateral return output AND the transaction is phase-2 invalid. [Read more](https://docs.cardano.org/plutus/collateral-mechanism/). * @summary Payment credentials transactions * @param {Array<string>} requestBody Payment credentials in bech32 format * @param {TxsByPaymentCredQueryParams} [localVarQueryParameter] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ txsByPaymentCreds: ( requestBody: Array<string>, localVarQueryParameter: TxsByPaymentCredsQueryParams = {}, options: AxiosRequestConfig = {}, ): RequestArgs => { // verify required parameter 'requestBody' is not null or undefined assertParamExists('txsByPaymentCreds', 'requestBody', requestBody); const localVarPath = `/addresses/cred/transactions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); const { baseOptions } = configuration; const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; const localVarHeaderParameter = {} as Record<string, string>; // authentication api-key required setApiKeyToObject(localVarHeaderParameter, 'api-key', configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, ...HEADER_AMOUNTS_AS_STRING, }; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns references (pair of transaction hash and output index in transaction) for UTxOs controlled by the specified address * @summary UTxO references at an address * @param {string} address Address in bech32 format * @param {UtxoRefsAtAddressQueryParams} [localVarQueryParameter] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ utxoRefsAtAddress: ( address: string, localVarQueryParameter: UtxoRefsAtAddressQueryParams = {}, options: AxiosRequestConfig = {}, ): RequestArgs => { // verify required parameter 'address' is not null or undefined assertParamExists('utxoRefsAtAddress', 'address', address); const localVarPath = `/addresses/{address}/utxo_refs`.replace( `{${'address'}}`, encodeURIComponent(String(address)), ); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); const { baseOptions } = configuration; const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; const localVarHeaderParameter = {} as Record<string, string>; // authentication api-key required setApiKeyToObject(localVarHeaderParameter, 'api-key', configuration); setSearchParams(localVarUrlObj, localVarQueryParameter); const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Return detailed information on UTxOs controlled by an address * @summary UTxOs at an address * @param {string} address Address in bech32 format * @param {UtxosByAddressQueryParams} [localVarQueryParameter] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ utxosByAddress: ( address: string, localVarQueryParameter: UtxosByAddressQueryParams = {}, options: AxiosRequestConfig = {}, ): RequestArgs => { // verify required parameter 'address' is not null or undefined assertParamExists('utxosByAddress', 'address', address); const localVarPath = `/addresses/{address}/utxos`.replace( `{${'address'}}`, encodeURIComponent(String(address)), ); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); const { baseOptions } = configuration; const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; const localVarHeaderParameter = {} as Record<string, string>; // authentication api-key required setApiKeyToObject(localVarHeaderParameter, 'api-key', configuration); setSearchParams(localVarUrlObj, localVarQueryParameter); const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, ...HEADER_AMOUNTS_AS_STRING, }; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Return detailed information on UTxOs which are controlled by some address in the specified list of addresses * @summary UTxOs at multiple addresses * @param {Array<string>} requestBody * @param {UtxosByAddressesQueryParams} [localVarQueryParameter] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ utxosByAddresses: ( requestBody: Array<string>, localVarQueryParameter: UtxosByAddressesQueryParams = {}, options: AxiosRequestConfig = {}, ): RequestArgs => { // verify required parameter 'requestBody' is not null or undefined assertParamExists('utxosByAddresses', 'requestBody', requestBody); const localVarPath = `/addresses/utxos`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); const { baseOptions } = configuration; const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; const localVarHeaderParameter = {} as Record<string, string>; // authentication api-key required setApiKeyToObject(localVarHeaderParameter, 'api-key', configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, ...HEADER_AMOUNTS_AS_STRING, }; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Return detailed information on UTxOs controlled by addresses which use the specified payment credential * @summary UTxOs by payment credential * @param {string} credential Payment credential in bech32 format * @param {UtxosByPaymentCredQueryParams} [localVarQueryParameter] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ utxosByPaymentCred: ( credential: string, localVarQueryParameter: UtxosByPaymentCredQueryParams = {}, options: AxiosRequestConfig = {}, ): RequestArgs => { // verify required parameter 'credential' is not null or undefined assertParamExists('utxosByPaymentCred', 'credential', credential); const localVarPath = `/addresses/cred/{credential}/utxos`.replace( `{${'credential'}}`, encodeURIComponent(String(credential)), ); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); const { baseOptions } = configuration; const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; const localVarHeaderParameter = {} as Record<string, string>; // authentication api-key required setApiKeyToObject(localVarHeaderParameter, 'api-key', configuration); setSearchParams(localVarUrlObj, localVarQueryParameter); const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, ...HEADER_AMOUNTS_AS_STRING, }; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Return detailed information on UTxOs which are controlled by some payment credentials in the specified list of payment credentials * @summary UTxOs at multiple payment credentials * @param {Array<string>} requestBody * @param {UtxosByAddressesQueryParams} [localVarQueryParameter] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ utxosByPaymentCreds: ( requestBody: Array<string>, localVarQueryParameter: UtxosByAddressesQueryParams = {}, options: AxiosRequestConfig = {}, ): RequestArgs => { // verify required parameter 'requestBody' is not null or undefined assertParamExists('utxosByPaymentCreds', 'requestBody', requestBody); const localVarPath = `/addresses/cred/utxos`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); const { baseOptions } = configuration; const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; const localVarHeaderParameter = {} as Record<string, string>; // authentication api-key required setApiKeyToObject(localVarHeaderParameter, 'api-key', configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, ...HEADER_AMOUNTS_AS_STRING, }; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, }); /** * AddressesApi - functional programming interface * @export */ export const AddressesApiFp = (configuration: Configuration) => { const localVarAxiosParamCreator = AddressesApiAxiosParamCreator(configuration); return { /** * Returns the different information encoded within a Cardano address, including details of the payment and delegation parts of the address * @summary Decode address * @param {string} address Address in bech32/hex/base58 format * @param {*} [options] Override http request option. * @throws {RequiredError} */ decodeAddress(address: string, options?: AxiosRequestConfig): () => Promise<AddressInfo> { const localVarAxiosArgs = localVarAxiosParamCreator.decodeAddress(address, options); return createRequestFunction(localVarAxiosArgs, configuration); }, /** * Return total amount of assets, including ADA, in UTxOs controlled by a specific payment credential * @summary Address Balance * @param {string} credential Payment credential in bech32 format * @param {*} [options] Override http request option. * @throws {RequiredError} */ addressBalance(credential: string, options?: AxiosRequestConfig): () => Promise<AddressBalance> { const localVarAxiosArgs = localVarAxiosParamCreator.addressBalance(credential, options); return createRequestFunction(localVarAxiosArgs, configuration); }, /** * Returns the number of transactions in which the address spent or received some funds. Specifically, the number of transactions where: the address controlled at least one of the transaction inputs and/or receives one of the outputs AND the transaction is phase-2 valid, OR, the address controlled at least one of the collateral inputs and/or receives the collateral return output AND the transaction is phase-2 invalid. [Read more](https://docs.cardano.org/plutus/collateral-mechanism/). * @summary Address transaction count * @param {string} address Address in bech32 format * @param {*} [options] Override http request option. * @throws {RequiredError} */ txCountByAddress(address: string, options?: AxiosRequestConfig): () => Promise<TimestampedTxCount> { const localVarAxiosArgs = localVarAxiosParamCreator.txCountByAddress(address, options); return createRequestFunction(localVarAxiosArgs, configuration); }, /** * Returns transactions in which the specified address spent or received funds. Specifically, the transactions where: the address controlled at least one of the transaction inputs and/or receives one of the outputs AND the transaction is phase-2 valid, OR, the address controlled at least one of the collateral inputs and/or receives the collateral return output AND the transaction is phase-2 invalid. [Read more](https://docs.cardano.org/plutus/collateral-mechanism/). * @summary Address transactions * @param {string} address Address in bech32 format * @param {TxsByAddressQueryParams} [queryParams] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ txsByAddress( address: string, queryParams?: TxsByAddressQueryParams, options?: AxiosRequestConfig, ): () => Promise<PaginatedAddressTransaction> { const localVarAxiosArgs = localVarAxiosParamCreator.txsByAddress(address, queryParams, options); return createRequestFunction(localVarAxiosArgs, configuration); }, /** * Returns transactions in which the specified payment credential spent or received funds. Specifically, the transactions where: the payment credential was used in an address which controlled at least one of the transaction inputs and/or receives one of the outputs AND the transaction is phase-2 valid, OR, the address controlled at least one of the collateral inputs and/or receives the collateral return output AND the transaction is phase-2 invalid. [Read more](https://docs.cardano.org/plutus/collateral-mechanism/). * @summary Payment credential transactions * @param {string} credential Payment credential in bech32 format * @param {TxsByPaymentCredQueryParams} [queryParams] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ txsByPaymentCred( credential: string, queryParams?: TxsByPaymentCredQueryParams, options?: AxiosRequestConfig, ): () => Promise<PaginatedPaymentCredentialTransaction> { const localVarAxiosArgs = localVarAxiosParamCreator.txsByPaymentCred(credential, queryParams, options); return createRequestFunction(localVarAxiosArgs, configuration); }, /** * Returns transactions in which the specified payment credentials spent or received funds. Specifically, the transactions where: the payment credentials were used in an address which controlled at least one of the transaction inputs and/or receives one of the outputs AND the transaction is phase-2 valid, OR, the address controlled at least one of the collateral inputs and/or receives the collateral return output AND the transaction is phase-2 invalid. [Read more](https://docs.cardano.org/plutus/collateral-mechanism/). * @summary Payment credentials transactions * @param {Array<string>} requestBody Payment credentials in bech32 format * @param {TxsByPaymentCredQueryParams} [localVarQueryParameter] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ txsByPaymentCreds( requestBody: Array<string>, queryParams?: TxsByPaymentCredsQueryParams, options?: AxiosRequestConfig, ): () => Promise<PaginatedPaymentCredentialTransaction> { const localVarAxiosArgs = localVarAxiosParamCreator.txsByPaymentCreds(requestBody, queryParams, options); return createRequestFunction(localVarAxiosArgs, configuration); }, /** * Returns references (pair of transaction hash and output index in transaction) for UTxOs controlled by the specified address * @summary UTxO references at an address * @param {string} address Address in bech32 format * @param {UtxoRefsAtAddressQueryParams} [queryParams] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ utxoRefsAtAddress( address: string, queryParams?: UtxoRefsAtAddressQueryParams, options?: AxiosRequestConfig, ): () => Promise<PaginatedUtxoRef> { const localVarAxiosArgs = localVarAxiosParamCreator.utxoRefsAtAddress(address, queryParams, options); return createRequestFunction(localVarAxiosArgs, configuration); }, /** * Return detailed information on UTxOs controlled by an address * @summary UTxOs at an address * @param {string} address Address in bech32 format * @param {UtxosByAddressQueryParams} [queryParams] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ utxosByAddress( address: string, queryParams?: UtxosByAddressQueryParams, options?: AxiosRequestConfig, ): () => Promise<PaginatedUtxoWithSlot> { const localVarAxiosArgs = localVarAxiosParamCreator.utxosByAddress(address, queryParams, options); return createRequestFunction(localVarAxiosArgs, configuration); }, /** * Return detailed information on UTxOs which are controlled by some address in the specified list of addresses * @summary UTxOs at multiple addresses * @param {Array<string>} requestBody * @param {UtxosByAddressesQueryParams} [queryParams] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ utxosByAddresses( requestBody: Array<string>, queryParams?: UtxosByAddressesQueryParams, options?: AxiosRequestConfig, ): () => Promise<PaginatedUtxoWithSlot> { const localVarAxiosArgs = localVarAxiosParamCreator.utxosByAddresses(requestBody, queryParams, options); return createRequestFunction(localVarAxiosArgs, configuration); }, /** * Return detailed information on UTxOs controlled by addresses which use the specified payment credential * @summary UTxOs by payment credential * @param {string} credential Payment credential in bech32 format * @param {UtxosByPaymentCredQueryParams} [queryParams] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ utxosByPaymentCred( credential: string, queryParams?: UtxosByPaymentCredQueryParams, options?: AxiosRequestConfig, ): () => Promise<PaginatedUtxoWithSlot> { const localVarAxiosArgs = localVarAxiosParamCreator.utxosByPaymentCred(credential, queryParams, options); return createRequestFunction(localVarAxiosArgs, configuration); }, /** * Return detailed information on UTxOs which are controlled by some payment credentials in the specified list of payment credentials * @summary UTxOs at multiple payment credentials * @param {Array<string>} requestBody * @param {UtxosByAddressesQueryParams} [queryParams] Query parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ utxosByPaymentCreds( requestBody: Array<string>, queryParams?: UtxosByAddressesQueryParams, options?: AxiosRequestConfig, ): () => Promise<PaginatedUtxoWithSlot> { const localVarAxiosArgs = localVarAxiosParamCreator.utxosByPaymentCreds(requestBody, queryParams, options); return createRequestFunction(localVarAxiosArgs, configuration); }, }; };