@solana/rpc-api
Version:
Defines all default Solana RPC methods as types
24 lines • 1.13 kB
TypeScript
import type { Commitment, Lamports, SolanaRpcResponse } from '@solana/rpc-types';
type GetStakeMinimumDelegationApiResponse = Lamports;
export type GetStakeMinimumDelegationApi = {
/**
* Returns the minimum amount of stake that can be delegated to a validator, in
* {@link Lamports}.
*
* @see https://solana.com/docs/rpc/http/getstakeminimumdelegation
*/
getStakeMinimumDelegation(config?: Readonly<{
/**
* Fetch the minimum delegation as of the highest slot that has reached this level of
* commitment.
*
* @defaultValue Whichever default is applied by the underlying {@link RpcApi} in use.
* For example, when using an API created by a `createSolanaRpc*()` helper, the default
* commitment is `"confirmed"` unless configured otherwise. Unmitigated by an API layer
* on the client, the default commitment applied by the server is `"finalized"`.
*/
commitment?: Commitment;
}>): SolanaRpcResponse<GetStakeMinimumDelegationApiResponse>;
};
export {};
//# sourceMappingURL=getStakeMinimumDelegation.d.ts.map