/** * Cardano Wallet Backend API *
* * OpenAPI spec version: 2021.3.4 * * * 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 { AxiosPromise, AxiosInstance } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { ApiMaintenanceActionPostData } from '../models'; import { ApiWalletPassphrase } from '../models'; import { ApiStakePool } from '../models'; import { ApiMaintenanceAction } from '../models'; import { ApiFee } from '../models'; import { ApiTransaction } from '../models'; /** * StakePoolsApi - axios parameter creator * @export */ export declare const StakePoolsApiAxiosParamCreator: (configuration?: Configuration) => { /** *status: stable
Estimate fee for joining or leaving a stake pool. Note that it is an estimation because a delegation induces a transaction for which coins have to be selected randomly within the wallet. Because of this randomness, fees can only be estimated. * @summary Estimate Fee * @param {string} walletId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDelegationFee: (walletId: string, options?: any) => Promisestatus: stable
Delegate all (current and future) addresses from the given wallet to the given stake pool. Note: Bech32-encoded stake pool identifiers can vary in length. * @summary Join * @param {ApiWalletPassphrase} body * @param {string} stakePoolId * @param {string} walletId * @param {*} [options] Override http request option. * @throws {RequiredError} */ joinStakePool: (body: ApiWalletPassphrase, stakePoolId: string, walletId: string, options?: any) => Promisestatus: stable
List all known stake pools ordered by descending `non_myopic_member_rewards`. The `non_myopic_member_rewards` — and thus the ordering — depends on the `?stake` query parameter. Some pools _may_ also have metadata attached to them. * @summary List * @param {number} stake The stake the user intends to delegate in Lovelace. Required. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listStakePools: (stake: number, options?: any) => Promisestatus: stable
Stop delegating completely. The wallet's stake will become inactive. > ⚠️ Disclaimer ⚠️ > > This endpoint historically use to take a stake pool id as a path parameter. > However, retiring from delegation is ubiquitous and not tight to a particular > stake pool. For backward-compatibility reasons, sending stake pool ids as path > parameter will still be accepted by the server but new integrations are > encouraged to provide a placeholder asterisk `*` instead. * @summary Quit * @param {ApiWalletPassphrase} body * @param {string} walletId * @param {*} [options] Override http request option. * @throws {RequiredError} */ quitStakePool: (body: ApiWalletPassphrase, walletId: string, options?: any) => Promisestatus: stable
Estimate fee for joining or leaving a stake pool. Note that it is an estimation because a delegation induces a transaction for which coins have to be selected randomly within the wallet. Because of this randomness, fees can only be estimated. * @summary Estimate Fee * @param {string} walletId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDelegationFee(walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromisestatus: stable
Delegate all (current and future) addresses from the given wallet to the given stake pool. Note: Bech32-encoded stake pool identifiers can vary in length. * @summary Join * @param {ApiWalletPassphrase} body * @param {string} stakePoolId * @param {string} walletId * @param {*} [options] Override http request option. * @throws {RequiredError} */ joinStakePool(body: ApiWalletPassphrase, stakePoolId: string, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromisestatus: stable
List all known stake pools ordered by descending `non_myopic_member_rewards`. The `non_myopic_member_rewards` — and thus the ordering — depends on the `?stake` query parameter. Some pools _may_ also have metadata attached to them. * @summary List * @param {number} stake The stake the user intends to delegate in Lovelace. Required. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listStakePools(stake: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromisestatus: stable
Stop delegating completely. The wallet's stake will become inactive. > ⚠️ Disclaimer ⚠️ > > This endpoint historically use to take a stake pool id as a path parameter. > However, retiring from delegation is ubiquitous and not tight to a particular > stake pool. For backward-compatibility reasons, sending stake pool ids as path > parameter will still be accepted by the server but new integrations are > encouraged to provide a placeholder asterisk `*` instead. * @summary Quit * @param {ApiWalletPassphrase} body * @param {string} walletId * @param {*} [options] Override http request option. * @throws {RequiredError} */ quitStakePool(body: ApiWalletPassphrase, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromisestatus: stable
Estimate fee for joining or leaving a stake pool. Note that it is an estimation because a delegation induces a transaction for which coins have to be selected randomly within the wallet. Because of this randomness, fees can only be estimated. * @summary Estimate Fee * @param {string} walletId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDelegationFee(walletId: string, options?: any): AxiosPromisestatus: stable
Delegate all (current and future) addresses from the given wallet to the given stake pool. Note: Bech32-encoded stake pool identifiers can vary in length. * @summary Join * @param {ApiWalletPassphrase} body * @param {string} stakePoolId * @param {string} walletId * @param {*} [options] Override http request option. * @throws {RequiredError} */ joinStakePool(body: ApiWalletPassphrase, stakePoolId: string, walletId: string, options?: any): AxiosPromisestatus: stable
List all known stake pools ordered by descending `non_myopic_member_rewards`. The `non_myopic_member_rewards` — and thus the ordering — depends on the `?stake` query parameter. Some pools _may_ also have metadata attached to them. * @summary List * @param {number} stake The stake the user intends to delegate in Lovelace. Required. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listStakePools(stake: number, options?: any): AxiosPromisestatus: stable
Stop delegating completely. The wallet's stake will become inactive. > ⚠️ Disclaimer ⚠️ > > This endpoint historically use to take a stake pool id as a path parameter. > However, retiring from delegation is ubiquitous and not tight to a particular > stake pool. For backward-compatibility reasons, sending stake pool ids as path > parameter will still be accepted by the server but new integrations are > encouraged to provide a placeholder asterisk `*` instead. * @summary Quit * @param {ApiWalletPassphrase} body * @param {string} walletId * @param {*} [options] Override http request option. * @throws {RequiredError} */ quitStakePool(body: ApiWalletPassphrase, walletId: string, options?: any): AxiosPromisestatus: stable
Estimate fee for joining or leaving a stake pool. Note that it is an estimation because a delegation induces a transaction for which coins have to be selected randomly within the wallet. Because of this randomness, fees can only be estimated. * @summary Estimate Fee * @param {string} walletId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof StakePoolsApi */ getDelegationFee(walletId: string, options?: any): Promisestatus: stable
Delegate all (current and future) addresses from the given wallet to the given stake pool. Note: Bech32-encoded stake pool identifiers can vary in length. * @summary Join * @param {ApiWalletPassphrase} body * @param {string} stakePoolId * @param {string} walletId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof StakePoolsApi */ joinStakePool(body: ApiWalletPassphrase, stakePoolId: string, walletId: string, options?: any): Promisestatus: stable
List all known stake pools ordered by descending `non_myopic_member_rewards`. The `non_myopic_member_rewards` — and thus the ordering — depends on the `?stake` query parameter. Some pools _may_ also have metadata attached to them. * @summary List * @param {number} stake The stake the user intends to delegate in Lovelace. Required. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof StakePoolsApi */ listStakePools(stake: number, options?: any): Promisestatus: stable
Stop delegating completely. The wallet's stake will become inactive. > ⚠️ Disclaimer ⚠️ > > This endpoint historically use to take a stake pool id as a path parameter. > However, retiring from delegation is ubiquitous and not tight to a particular > stake pool. For backward-compatibility reasons, sending stake pool ids as path > parameter will still be accepted by the server but new integrations are > encouraged to provide a placeholder asterisk `*` instead. * @summary Quit * @param {ApiWalletPassphrase} body * @param {string} walletId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof StakePoolsApi */ quitStakePool(body: ApiWalletPassphrase, walletId: string, options?: any): Promise