UNPKG

@everstake/wallet-sdk-solana

Version:
37 lines (30 loc) 709 B
/** * Copyright (c) 2025, Everstake. * Licensed under the BSD-3-Clause License. See LICENSE file for details. */ import { AccountInfo, ParsedAccountData, PublicKey, VersionedTransaction, } from '@solana/web3.js'; import { StakeAccount } from '../stakeAccount'; export interface ApiResponse<T> { result: T; } export type SolDelegation = { pubkey: PublicKey; account: AccountInfo<Buffer | ParsedAccountData>; }; export type SolCreateAccountResponse = { createStakeAccountVerTx: VersionedTransaction; stakeAccount: PublicKey; }; export type SolAccount = { pubkey: PublicKey; account: StakeAccount; }; export type SolAccountToSplit = { account: SolAccount; lamports: number; };