@anseta/typescript-sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +216 -0
- package/dist/apis/APIInfoApi.d.ts +194 -0
- package/dist/apis/APIInfoApi.d.ts.map +1 -0
- package/dist/apis/APIInfoApi.js +237 -0
- package/dist/apis/APIInfoApi.js.map +1 -0
- package/dist/apis/EigenlayerRestakingApi.d.ts +311 -0
- package/dist/apis/EigenlayerRestakingApi.d.ts.map +1 -0
- package/dist/apis/EigenlayerRestakingApi.js +394 -0
- package/dist/apis/EigenlayerRestakingApi.js.map +1 -0
- package/dist/apis/EthereumStakingApi.d.ts +336 -0
- package/dist/apis/EthereumStakingApi.d.ts.map +1 -0
- package/dist/apis/EthereumStakingApi.js +416 -0
- package/dist/apis/EthereumStakingApi.js.map +1 -0
- package/dist/apis/SimpleStakingApi.d.ts +271 -0
- package/dist/apis/SimpleStakingApi.d.ts.map +1 -0
- package/dist/apis/SimpleStakingApi.js +345 -0
- package/dist/apis/SimpleStakingApi.js.map +1 -0
- package/dist/apis/SystemApi.d.ts +73 -0
- package/dist/apis/SystemApi.d.ts.map +1 -0
- package/dist/apis/SystemApi.js +104 -0
- package/dist/apis/SystemApi.js.map +1 -0
- package/dist/apis/index.d.ts +6 -0
- package/dist/apis/index.d.ts.map +1 -0
- package/dist/apis/index.js +24 -0
- package/dist/apis/index.js.map +1 -0
- package/dist/esm/apis/APIInfoApi.d.ts +194 -0
- package/dist/esm/apis/APIInfoApi.d.ts.map +1 -0
- package/dist/esm/apis/APIInfoApi.js +200 -0
- package/dist/esm/apis/APIInfoApi.js.map +1 -0
- package/dist/esm/apis/EigenlayerRestakingApi.d.ts +311 -0
- package/dist/esm/apis/EigenlayerRestakingApi.d.ts.map +1 -0
- package/dist/esm/apis/EigenlayerRestakingApi.js +357 -0
- package/dist/esm/apis/EigenlayerRestakingApi.js.map +1 -0
- package/dist/esm/apis/EthereumStakingApi.d.ts +336 -0
- package/dist/esm/apis/EthereumStakingApi.d.ts.map +1 -0
- package/dist/esm/apis/EthereumStakingApi.js +379 -0
- package/dist/esm/apis/EthereumStakingApi.js.map +1 -0
- package/dist/esm/apis/SimpleStakingApi.d.ts +271 -0
- package/dist/esm/apis/SimpleStakingApi.d.ts.map +1 -0
- package/dist/esm/apis/SimpleStakingApi.js +308 -0
- package/dist/esm/apis/SimpleStakingApi.js.map +1 -0
- package/dist/esm/apis/SystemApi.d.ts +73 -0
- package/dist/esm/apis/SystemApi.d.ts.map +1 -0
- package/dist/esm/apis/SystemApi.js +67 -0
- package/dist/esm/apis/SystemApi.js.map +1 -0
- package/dist/esm/apis/index.d.ts +6 -0
- package/dist/esm/apis/index.d.ts.map +1 -0
- package/dist/esm/apis/index.js +8 -0
- package/dist/esm/apis/index.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/ApiError.d.ts +45 -0
- package/dist/esm/models/ApiError.d.ts.map +1 -0
- package/dist/esm/models/ApiError.js +50 -0
- package/dist/esm/models/ApiError.js.map +1 -0
- package/dist/esm/models/CreateStakingWithdrawalRequest.d.ts +80 -0
- package/dist/esm/models/CreateStakingWithdrawalRequest.d.ts.map +1 -0
- package/dist/esm/models/CreateStakingWithdrawalRequest.js +58 -0
- package/dist/esm/models/CreateStakingWithdrawalRequest.js.map +1 -0
- package/dist/esm/models/DailyRewardItem.d.ts +111 -0
- package/dist/esm/models/DailyRewardItem.d.ts.map +1 -0
- package/dist/esm/models/DailyRewardItem.js +92 -0
- package/dist/esm/models/DailyRewardItem.js.map +1 -0
- package/dist/esm/models/DailyRewardsResponse.d.ts +40 -0
- package/dist/esm/models/DailyRewardsResponse.d.ts.map +1 -0
- package/dist/esm/models/DailyRewardsResponse.js +49 -0
- package/dist/esm/models/DailyRewardsResponse.js.map +1 -0
- package/dist/esm/models/DelegationHistoryItem.d.ts +111 -0
- package/dist/esm/models/DelegationHistoryItem.d.ts.map +1 -0
- package/dist/esm/models/DelegationHistoryItem.js +92 -0
- package/dist/esm/models/DelegationHistoryItem.js.map +1 -0
- package/dist/esm/models/DelegationHistoryResponse.d.ts +40 -0
- package/dist/esm/models/DelegationHistoryResponse.d.ts.map +1 -0
- package/dist/esm/models/DelegationHistoryResponse.js +49 -0
- package/dist/esm/models/DelegationHistoryResponse.js.map +1 -0
- package/dist/esm/models/Entity.d.ts +64 -0
- package/dist/esm/models/Entity.d.ts.map +1 -0
- package/dist/esm/models/Entity.js +63 -0
- package/dist/esm/models/Entity.js.map +1 -0
- package/dist/esm/models/EntityValidator.d.ts +118 -0
- package/dist/esm/models/EntityValidator.d.ts.map +1 -0
- package/dist/esm/models/EntityValidator.js +81 -0
- package/dist/esm/models/EntityValidator.js.map +1 -0
- package/dist/esm/models/EntityValidatorNetwork.d.ts +65 -0
- package/dist/esm/models/EntityValidatorNetwork.d.ts.map +1 -0
- package/dist/esm/models/EntityValidatorNetwork.js +67 -0
- package/dist/esm/models/EntityValidatorNetwork.js.map +1 -0
- package/dist/esm/models/ErrorResponse.d.ts +40 -0
- package/dist/esm/models/ErrorResponse.d.ts.map +1 -0
- package/dist/esm/models/ErrorResponse.js +49 -0
- package/dist/esm/models/ErrorResponse.js.map +1 -0
- package/dist/esm/models/EthereumCancelStake200Response.d.ts +47 -0
- package/dist/esm/models/EthereumCancelStake200Response.d.ts.map +1 -0
- package/dist/esm/models/EthereumCancelStake200Response.js +50 -0
- package/dist/esm/models/EthereumCancelStake200Response.js.map +1 -0
- package/dist/esm/models/EthereumCancelStakeRequest.d.ts +40 -0
- package/dist/esm/models/EthereumCancelStakeRequest.d.ts.map +1 -0
- package/dist/esm/models/EthereumCancelStakeRequest.js +49 -0
- package/dist/esm/models/EthereumCancelStakeRequest.js.map +1 -0
- package/dist/esm/models/EthereumCancelStakeResponse.d.ts +33 -0
- package/dist/esm/models/EthereumCancelStakeResponse.d.ts.map +1 -0
- package/dist/esm/models/EthereumCancelStakeResponse.js +44 -0
- package/dist/esm/models/EthereumCancelStakeResponse.js.map +1 -0
- package/dist/esm/models/EthereumConfirmStake200Response.d.ts +47 -0
- package/dist/esm/models/EthereumConfirmStake200Response.d.ts.map +1 -0
- package/dist/esm/models/EthereumConfirmStake200Response.js +50 -0
- package/dist/esm/models/EthereumConfirmStake200Response.js.map +1 -0
- package/dist/esm/models/EthereumConfirmStakeRequest.d.ts +46 -0
- package/dist/esm/models/EthereumConfirmStakeRequest.d.ts.map +1 -0
- package/dist/esm/models/EthereumConfirmStakeRequest.js +53 -0
- package/dist/esm/models/EthereumConfirmStakeRequest.js.map +1 -0
- package/dist/esm/models/EthereumConfirmStakeResponse.d.ts +33 -0
- package/dist/esm/models/EthereumConfirmStakeResponse.d.ts.map +1 -0
- package/dist/esm/models/EthereumConfirmStakeResponse.js +44 -0
- package/dist/esm/models/EthereumConfirmStakeResponse.js.map +1 -0
- package/dist/esm/models/EthereumExit202Response.d.ts +47 -0
- package/dist/esm/models/EthereumExit202Response.d.ts.map +1 -0
- package/dist/esm/models/EthereumExit202Response.js +50 -0
- package/dist/esm/models/EthereumExit202Response.js.map +1 -0
- package/dist/esm/models/EthereumExitRequest.d.ts +40 -0
- package/dist/esm/models/EthereumExitRequest.d.ts.map +1 -0
- package/dist/esm/models/EthereumExitRequest.js +49 -0
- package/dist/esm/models/EthereumExitRequest.js.map +1 -0
- package/dist/esm/models/EthereumExitResponse.d.ts +45 -0
- package/dist/esm/models/EthereumExitResponse.d.ts.map +1 -0
- package/dist/esm/models/EthereumExitResponse.js +52 -0
- package/dist/esm/models/EthereumExitResponse.js.map +1 -0
- package/dist/esm/models/EthereumForceExit200Response.d.ts +47 -0
- package/dist/esm/models/EthereumForceExit200Response.d.ts.map +1 -0
- package/dist/esm/models/EthereumForceExit200Response.js +50 -0
- package/dist/esm/models/EthereumForceExit200Response.js.map +1 -0
- package/dist/esm/models/EthereumForceExitRequest.d.ts +40 -0
- package/dist/esm/models/EthereumForceExitRequest.d.ts.map +1 -0
- package/dist/esm/models/EthereumForceExitRequest.js +49 -0
- package/dist/esm/models/EthereumForceExitRequest.js.map +1 -0
- package/dist/esm/models/EthereumForceExitResponse.d.ts +34 -0
- package/dist/esm/models/EthereumForceExitResponse.d.ts.map +1 -0
- package/dist/esm/models/EthereumForceExitResponse.js +45 -0
- package/dist/esm/models/EthereumForceExitResponse.js.map +1 -0
- package/dist/esm/models/EthereumGetDailyRewardsHistory200Response.d.ts +47 -0
- package/dist/esm/models/EthereumGetDailyRewardsHistory200Response.d.ts.map +1 -0
- package/dist/esm/models/EthereumGetDailyRewardsHistory200Response.js +50 -0
- package/dist/esm/models/EthereumGetDailyRewardsHistory200Response.js.map +1 -0
- package/dist/esm/models/EthereumGetStakingTxHistory200Response.d.ts +47 -0
- package/dist/esm/models/EthereumGetStakingTxHistory200Response.d.ts.map +1 -0
- package/dist/esm/models/EthereumGetStakingTxHistory200Response.js +50 -0
- package/dist/esm/models/EthereumGetStakingTxHistory200Response.js.map +1 -0
- package/dist/esm/models/EthereumGetValidators200Response.d.ts +47 -0
- package/dist/esm/models/EthereumGetValidators200Response.d.ts.map +1 -0
- package/dist/esm/models/EthereumGetValidators200Response.js +50 -0
- package/dist/esm/models/EthereumGetValidators200Response.js.map +1 -0
- package/dist/esm/models/EthereumGetValidatorsResponse.d.ts +34 -0
- package/dist/esm/models/EthereumGetValidatorsResponse.d.ts.map +1 -0
- package/dist/esm/models/EthereumGetValidatorsResponse.js +45 -0
- package/dist/esm/models/EthereumGetValidatorsResponse.js.map +1 -0
- package/dist/esm/models/EthereumNetwork.d.ts +26 -0
- package/dist/esm/models/EthereumNetwork.d.ts.map +1 -0
- package/dist/esm/models/EthereumNetwork.js +44 -0
- package/dist/esm/models/EthereumNetwork.js.map +1 -0
- package/dist/esm/models/EthereumStake200Response.d.ts +47 -0
- package/dist/esm/models/EthereumStake200Response.d.ts.map +1 -0
- package/dist/esm/models/EthereumStake200Response.js +50 -0
- package/dist/esm/models/EthereumStake200Response.js.map +1 -0
- package/dist/esm/models/EthereumStakeRequest.d.ts +64 -0
- package/dist/esm/models/EthereumStakeRequest.d.ts.map +1 -0
- package/dist/esm/models/EthereumStakeRequest.js +63 -0
- package/dist/esm/models/EthereumStakeRequest.js.map +1 -0
- package/dist/esm/models/EthereumStakeResponse.d.ts +47 -0
- package/dist/esm/models/EthereumStakeResponse.d.ts.map +1 -0
- package/dist/esm/models/EthereumStakeResponse.js +54 -0
- package/dist/esm/models/EthereumStakeResponse.js.map +1 -0
- package/dist/esm/models/EthereumTransaction.d.ts +87 -0
- package/dist/esm/models/EthereumTransaction.d.ts.map +1 -0
- package/dist/esm/models/EthereumTransaction.js +85 -0
- package/dist/esm/models/EthereumTransaction.js.map +1 -0
- package/dist/esm/models/EthereumTransactionTx.d.ts +75 -0
- package/dist/esm/models/EthereumTransactionTx.d.ts.map +1 -0
- package/dist/esm/models/EthereumTransactionTx.js +72 -0
- package/dist/esm/models/EthereumTransactionTx.js.map +1 -0
- package/dist/esm/models/EthereumValidator.d.ts +172 -0
- package/dist/esm/models/EthereumValidator.d.ts.map +1 -0
- package/dist/esm/models/EthereumValidator.js +149 -0
- package/dist/esm/models/EthereumValidator.js.map +1 -0
- package/dist/esm/models/EthereumValidatorExitRequest.d.ts +45 -0
- package/dist/esm/models/EthereumValidatorExitRequest.d.ts.map +1 -0
- package/dist/esm/models/EthereumValidatorExitRequest.js +52 -0
- package/dist/esm/models/EthereumValidatorExitRequest.js.map +1 -0
- package/dist/esm/models/EthereumWithdraw200Response.d.ts +47 -0
- package/dist/esm/models/EthereumWithdraw200Response.d.ts.map +1 -0
- package/dist/esm/models/EthereumWithdraw200Response.js +50 -0
- package/dist/esm/models/EthereumWithdraw200Response.js.map +1 -0
- package/dist/esm/models/EthereumWithdrawRequest.d.ts +46 -0
- package/dist/esm/models/EthereumWithdrawRequest.d.ts.map +1 -0
- package/dist/esm/models/EthereumWithdrawRequest.js +53 -0
- package/dist/esm/models/EthereumWithdrawRequest.js.map +1 -0
- package/dist/esm/models/EthereumWithdrawResponse.d.ts +34 -0
- package/dist/esm/models/EthereumWithdrawResponse.d.ts.map +1 -0
- package/dist/esm/models/EthereumWithdrawResponse.js +45 -0
- package/dist/esm/models/EthereumWithdrawResponse.js.map +1 -0
- package/dist/esm/models/GetEntitiesResponse.d.ts +53 -0
- package/dist/esm/models/GetEntitiesResponse.d.ts.map +1 -0
- package/dist/esm/models/GetEntitiesResponse.js +54 -0
- package/dist/esm/models/GetEntitiesResponse.js.map +1 -0
- package/dist/esm/models/GetHealthStatus200Response.d.ts +45 -0
- package/dist/esm/models/GetHealthStatus200Response.d.ts.map +1 -0
- package/dist/esm/models/GetHealthStatus200Response.js +52 -0
- package/dist/esm/models/GetHealthStatus200Response.js.map +1 -0
- package/dist/esm/models/GetNetworksResponse.d.ts +47 -0
- package/dist/esm/models/GetNetworksResponse.d.ts.map +1 -0
- package/dist/esm/models/GetNetworksResponse.js +50 -0
- package/dist/esm/models/GetNetworksResponse.js.map +1 -0
- package/dist/esm/models/GetOpenApiSpec200Response.d.ts +69 -0
- package/dist/esm/models/GetOpenApiSpec200Response.d.ts.map +1 -0
- package/dist/esm/models/GetOpenApiSpec200Response.js +64 -0
- package/dist/esm/models/GetOpenApiSpec200Response.js.map +1 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseComponents.d.ts +35 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseComponents.d.ts.map +1 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseComponents.js +44 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseComponents.js.map +1 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseInfo.d.ts +45 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseInfo.d.ts.map +1 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseInfo.js +52 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseInfo.js.map +1 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseServersInner.d.ts +39 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseServersInner.d.ts.map +1 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseServersInner.js +48 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseServersInner.js.map +1 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseTagsInner.d.ts +39 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseTagsInner.d.ts.map +1 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseTagsInner.js +48 -0
- package/dist/esm/models/GetOpenApiSpec200ResponseTagsInner.js.map +1 -0
- package/dist/esm/models/GetStakingPositions200Response.d.ts +39 -0
- package/dist/esm/models/GetStakingPositions200Response.d.ts.map +1 -0
- package/dist/esm/models/GetStakingPositions200Response.js +46 -0
- package/dist/esm/models/GetStakingPositions200Response.js.map +1 -0
- package/dist/esm/models/GetTokensResponse.d.ts +47 -0
- package/dist/esm/models/GetTokensResponse.d.ts.map +1 -0
- package/dist/esm/models/GetTokensResponse.js +50 -0
- package/dist/esm/models/GetTokensResponse.js.map +1 -0
- package/dist/esm/models/GetValidators200Response.d.ts +39 -0
- package/dist/esm/models/GetValidators200Response.d.ts.map +1 -0
- package/dist/esm/models/GetValidators200Response.js +48 -0
- package/dist/esm/models/GetValidators200Response.js.map +1 -0
- package/dist/esm/models/MultiTransactionResponse.d.ts +34 -0
- package/dist/esm/models/MultiTransactionResponse.d.ts.map +1 -0
- package/dist/esm/models/MultiTransactionResponse.js +45 -0
- package/dist/esm/models/MultiTransactionResponse.js.map +1 -0
- package/dist/esm/models/Network.d.ts +78 -0
- package/dist/esm/models/Network.d.ts.map +1 -0
- package/dist/esm/models/Network.js +96 -0
- package/dist/esm/models/Network.js.map +1 -0
- package/dist/esm/models/NetworkConfig.d.ts +96 -0
- package/dist/esm/models/NetworkConfig.d.ts.map +1 -0
- package/dist/esm/models/NetworkConfig.js +69 -0
- package/dist/esm/models/NetworkConfig.js.map +1 -0
- package/dist/esm/models/NetworkConfigChainId.d.ts +27 -0
- package/dist/esm/models/NetworkConfigChainId.d.ts.map +1 -0
- package/dist/esm/models/NetworkConfigChainId.js +32 -0
- package/dist/esm/models/NetworkConfigChainId.js.map +1 -0
- package/dist/esm/models/NetworkConfigNativeToken.d.ts +51 -0
- package/dist/esm/models/NetworkConfigNativeToken.d.ts.map +1 -0
- package/dist/esm/models/NetworkConfigNativeToken.js +56 -0
- package/dist/esm/models/NetworkConfigNativeToken.js.map +1 -0
- package/dist/esm/models/NetworkConfigNetworkId.d.ts +27 -0
- package/dist/esm/models/NetworkConfigNetworkId.d.ts.map +1 -0
- package/dist/esm/models/NetworkConfigNetworkId.js +32 -0
- package/dist/esm/models/NetworkConfigNetworkId.js.map +1 -0
- package/dist/esm/models/RestakingDelegateRequest.d.ts +46 -0
- package/dist/esm/models/RestakingDelegateRequest.d.ts.map +1 -0
- package/dist/esm/models/RestakingDelegateRequest.js +53 -0
- package/dist/esm/models/RestakingDelegateRequest.js.map +1 -0
- package/dist/esm/models/RestakingDepositRequest.d.ts +53 -0
- package/dist/esm/models/RestakingDepositRequest.d.ts.map +1 -0
- package/dist/esm/models/RestakingDepositRequest.js +58 -0
- package/dist/esm/models/RestakingDepositRequest.js.map +1 -0
- package/dist/esm/models/RestakingNetwork.d.ts +26 -0
- package/dist/esm/models/RestakingNetwork.d.ts.map +1 -0
- package/dist/esm/models/RestakingNetwork.js +44 -0
- package/dist/esm/models/RestakingNetwork.js.map +1 -0
- package/dist/esm/models/RestakingToken.d.ts +29 -0
- package/dist/esm/models/RestakingToken.d.ts.map +1 -0
- package/dist/esm/models/RestakingToken.js +47 -0
- package/dist/esm/models/RestakingToken.js.map +1 -0
- package/dist/esm/models/RestakingUndelegateRequest.d.ts +40 -0
- package/dist/esm/models/RestakingUndelegateRequest.d.ts.map +1 -0
- package/dist/esm/models/RestakingUndelegateRequest.js +49 -0
- package/dist/esm/models/RestakingUndelegateRequest.js.map +1 -0
- package/dist/esm/models/RestakingUnstakeRequest.d.ts +53 -0
- package/dist/esm/models/RestakingUnstakeRequest.d.ts.map +1 -0
- package/dist/esm/models/RestakingUnstakeRequest.js +58 -0
- package/dist/esm/models/RestakingUnstakeRequest.js.map +1 -0
- package/dist/esm/models/RestakingWithdrawRequest.d.ts +47 -0
- package/dist/esm/models/RestakingWithdrawRequest.d.ts.map +1 -0
- package/dist/esm/models/RestakingWithdrawRequest.js +54 -0
- package/dist/esm/models/RestakingWithdrawRequest.js.map +1 -0
- package/dist/esm/models/RewardHistoryItem.d.ts +105 -0
- package/dist/esm/models/RewardHistoryItem.d.ts.map +1 -0
- package/dist/esm/models/RewardHistoryItem.js +88 -0
- package/dist/esm/models/RewardHistoryItem.js.map +1 -0
- package/dist/esm/models/RewardHistoryResponse.d.ts +40 -0
- package/dist/esm/models/RewardHistoryResponse.d.ts.map +1 -0
- package/dist/esm/models/RewardHistoryResponse.js +49 -0
- package/dist/esm/models/RewardHistoryResponse.js.map +1 -0
- package/dist/esm/models/SimplifiedStakeRequest.d.ts +86 -0
- package/dist/esm/models/SimplifiedStakeRequest.d.ts.map +1 -0
- package/dist/esm/models/SimplifiedStakeRequest.js +60 -0
- package/dist/esm/models/SimplifiedStakeRequest.js.map +1 -0
- package/dist/esm/models/StakingNetwork.d.ts +47 -0
- package/dist/esm/models/StakingNetwork.d.ts.map +1 -0
- package/dist/esm/models/StakingNetwork.js +65 -0
- package/dist/esm/models/StakingNetwork.js.map +1 -0
- package/dist/esm/models/StakingOption.d.ts +60 -0
- package/dist/esm/models/StakingOption.d.ts.map +1 -0
- package/dist/esm/models/StakingOption.js +64 -0
- package/dist/esm/models/StakingOption.js.map +1 -0
- package/dist/esm/models/StakingOptionInfo.d.ts +48 -0
- package/dist/esm/models/StakingOptionInfo.d.ts.map +1 -0
- package/dist/esm/models/StakingOptionInfo.js +55 -0
- package/dist/esm/models/StakingOptionInfo.js.map +1 -0
- package/dist/esm/models/StakingOptionInfoExtraParamsInner.d.ts +51 -0
- package/dist/esm/models/StakingOptionInfoExtraParamsInner.d.ts.map +1 -0
- package/dist/esm/models/StakingOptionInfoExtraParamsInner.js +54 -0
- package/dist/esm/models/StakingOptionInfoExtraParamsInner.js.map +1 -0
- package/dist/esm/models/StakingOptionInfoNetwork.d.ts +96 -0
- package/dist/esm/models/StakingOptionInfoNetwork.d.ts.map +1 -0
- package/dist/esm/models/StakingOptionInfoNetwork.js +69 -0
- package/dist/esm/models/StakingOptionInfoNetwork.js.map +1 -0
- package/dist/esm/models/StakingOptionsResponse.d.ts +47 -0
- package/dist/esm/models/StakingOptionsResponse.d.ts.map +1 -0
- package/dist/esm/models/StakingOptionsResponse.js +50 -0
- package/dist/esm/models/StakingOptionsResponse.js.map +1 -0
- package/dist/esm/models/StakingToken.d.ts +37 -0
- package/dist/esm/models/StakingToken.d.ts.map +1 -0
- package/dist/esm/models/StakingToken.js +55 -0
- package/dist/esm/models/StakingToken.js.map +1 -0
- package/dist/esm/models/TokenInfo.d.ts +69 -0
- package/dist/esm/models/TokenInfo.d.ts.map +1 -0
- package/dist/esm/models/TokenInfo.js +66 -0
- package/dist/esm/models/TokenInfo.js.map +1 -0
- package/dist/esm/models/Transaction.d.ts +112 -0
- package/dist/esm/models/Transaction.d.ts.map +1 -0
- package/dist/esm/models/Transaction.js +106 -0
- package/dist/esm/models/Transaction.js.map +1 -0
- package/dist/esm/models/TransactionsResponse.d.ts +47 -0
- package/dist/esm/models/TransactionsResponse.d.ts.map +1 -0
- package/dist/esm/models/TransactionsResponse.js +50 -0
- package/dist/esm/models/TransactionsResponse.js.map +1 -0
- package/dist/esm/models/index.d.ts +75 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +77 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/runtime.d.ts +183 -0
- package/dist/esm/runtime.d.ts.map +1 -0
- package/dist/esm/runtime.js +319 -0
- package/dist/esm/runtime.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/models/ApiError.d.ts +45 -0
- package/dist/models/ApiError.d.ts.map +1 -0
- package/dist/models/ApiError.js +57 -0
- package/dist/models/ApiError.js.map +1 -0
- package/dist/models/CreateStakingWithdrawalRequest.d.ts +80 -0
- package/dist/models/CreateStakingWithdrawalRequest.d.ts.map +1 -0
- package/dist/models/CreateStakingWithdrawalRequest.js +65 -0
- package/dist/models/CreateStakingWithdrawalRequest.js.map +1 -0
- package/dist/models/DailyRewardItem.d.ts +111 -0
- package/dist/models/DailyRewardItem.d.ts.map +1 -0
- package/dist/models/DailyRewardItem.js +99 -0
- package/dist/models/DailyRewardItem.js.map +1 -0
- package/dist/models/DailyRewardsResponse.d.ts +40 -0
- package/dist/models/DailyRewardsResponse.d.ts.map +1 -0
- package/dist/models/DailyRewardsResponse.js +56 -0
- package/dist/models/DailyRewardsResponse.js.map +1 -0
- package/dist/models/DelegationHistoryItem.d.ts +111 -0
- package/dist/models/DelegationHistoryItem.d.ts.map +1 -0
- package/dist/models/DelegationHistoryItem.js +99 -0
- package/dist/models/DelegationHistoryItem.js.map +1 -0
- package/dist/models/DelegationHistoryResponse.d.ts +40 -0
- package/dist/models/DelegationHistoryResponse.d.ts.map +1 -0
- package/dist/models/DelegationHistoryResponse.js +56 -0
- package/dist/models/DelegationHistoryResponse.js.map +1 -0
- package/dist/models/Entity.d.ts +64 -0
- package/dist/models/Entity.d.ts.map +1 -0
- package/dist/models/Entity.js +70 -0
- package/dist/models/Entity.js.map +1 -0
- package/dist/models/EntityValidator.d.ts +118 -0
- package/dist/models/EntityValidator.d.ts.map +1 -0
- package/dist/models/EntityValidator.js +88 -0
- package/dist/models/EntityValidator.js.map +1 -0
- package/dist/models/EntityValidatorNetwork.d.ts +65 -0
- package/dist/models/EntityValidatorNetwork.d.ts.map +1 -0
- package/dist/models/EntityValidatorNetwork.js +75 -0
- package/dist/models/EntityValidatorNetwork.js.map +1 -0
- package/dist/models/ErrorResponse.d.ts +40 -0
- package/dist/models/ErrorResponse.d.ts.map +1 -0
- package/dist/models/ErrorResponse.js +56 -0
- package/dist/models/ErrorResponse.js.map +1 -0
- package/dist/models/EthereumCancelStake200Response.d.ts +47 -0
- package/dist/models/EthereumCancelStake200Response.d.ts.map +1 -0
- package/dist/models/EthereumCancelStake200Response.js +57 -0
- package/dist/models/EthereumCancelStake200Response.js.map +1 -0
- package/dist/models/EthereumCancelStakeRequest.d.ts +40 -0
- package/dist/models/EthereumCancelStakeRequest.d.ts.map +1 -0
- package/dist/models/EthereumCancelStakeRequest.js +56 -0
- package/dist/models/EthereumCancelStakeRequest.js.map +1 -0
- package/dist/models/EthereumCancelStakeResponse.d.ts +33 -0
- package/dist/models/EthereumCancelStakeResponse.d.ts.map +1 -0
- package/dist/models/EthereumCancelStakeResponse.js +51 -0
- package/dist/models/EthereumCancelStakeResponse.js.map +1 -0
- package/dist/models/EthereumConfirmStake200Response.d.ts +47 -0
- package/dist/models/EthereumConfirmStake200Response.d.ts.map +1 -0
- package/dist/models/EthereumConfirmStake200Response.js +57 -0
- package/dist/models/EthereumConfirmStake200Response.js.map +1 -0
- package/dist/models/EthereumConfirmStakeRequest.d.ts +46 -0
- package/dist/models/EthereumConfirmStakeRequest.d.ts.map +1 -0
- package/dist/models/EthereumConfirmStakeRequest.js +60 -0
- package/dist/models/EthereumConfirmStakeRequest.js.map +1 -0
- package/dist/models/EthereumConfirmStakeResponse.d.ts +33 -0
- package/dist/models/EthereumConfirmStakeResponse.d.ts.map +1 -0
- package/dist/models/EthereumConfirmStakeResponse.js +51 -0
- package/dist/models/EthereumConfirmStakeResponse.js.map +1 -0
- package/dist/models/EthereumExit202Response.d.ts +47 -0
- package/dist/models/EthereumExit202Response.d.ts.map +1 -0
- package/dist/models/EthereumExit202Response.js +57 -0
- package/dist/models/EthereumExit202Response.js.map +1 -0
- package/dist/models/EthereumExitRequest.d.ts +40 -0
- package/dist/models/EthereumExitRequest.d.ts.map +1 -0
- package/dist/models/EthereumExitRequest.js +56 -0
- package/dist/models/EthereumExitRequest.js.map +1 -0
- package/dist/models/EthereumExitResponse.d.ts +45 -0
- package/dist/models/EthereumExitResponse.d.ts.map +1 -0
- package/dist/models/EthereumExitResponse.js +59 -0
- package/dist/models/EthereumExitResponse.js.map +1 -0
- package/dist/models/EthereumForceExit200Response.d.ts +47 -0
- package/dist/models/EthereumForceExit200Response.d.ts.map +1 -0
- package/dist/models/EthereumForceExit200Response.js +57 -0
- package/dist/models/EthereumForceExit200Response.js.map +1 -0
- package/dist/models/EthereumForceExitRequest.d.ts +40 -0
- package/dist/models/EthereumForceExitRequest.d.ts.map +1 -0
- package/dist/models/EthereumForceExitRequest.js +56 -0
- package/dist/models/EthereumForceExitRequest.js.map +1 -0
- package/dist/models/EthereumForceExitResponse.d.ts +34 -0
- package/dist/models/EthereumForceExitResponse.d.ts.map +1 -0
- package/dist/models/EthereumForceExitResponse.js +52 -0
- package/dist/models/EthereumForceExitResponse.js.map +1 -0
- package/dist/models/EthereumGetDailyRewardsHistory200Response.d.ts +47 -0
- package/dist/models/EthereumGetDailyRewardsHistory200Response.d.ts.map +1 -0
- package/dist/models/EthereumGetDailyRewardsHistory200Response.js +57 -0
- package/dist/models/EthereumGetDailyRewardsHistory200Response.js.map +1 -0
- package/dist/models/EthereumGetStakingTxHistory200Response.d.ts +47 -0
- package/dist/models/EthereumGetStakingTxHistory200Response.d.ts.map +1 -0
- package/dist/models/EthereumGetStakingTxHistory200Response.js +57 -0
- package/dist/models/EthereumGetStakingTxHistory200Response.js.map +1 -0
- package/dist/models/EthereumGetValidators200Response.d.ts +47 -0
- package/dist/models/EthereumGetValidators200Response.d.ts.map +1 -0
- package/dist/models/EthereumGetValidators200Response.js +57 -0
- package/dist/models/EthereumGetValidators200Response.js.map +1 -0
- package/dist/models/EthereumGetValidatorsResponse.d.ts +34 -0
- package/dist/models/EthereumGetValidatorsResponse.d.ts.map +1 -0
- package/dist/models/EthereumGetValidatorsResponse.js +52 -0
- package/dist/models/EthereumGetValidatorsResponse.js.map +1 -0
- package/dist/models/EthereumNetwork.d.ts +26 -0
- package/dist/models/EthereumNetwork.d.ts.map +1 -0
- package/dist/models/EthereumNetwork.js +52 -0
- package/dist/models/EthereumNetwork.js.map +1 -0
- package/dist/models/EthereumStake200Response.d.ts +47 -0
- package/dist/models/EthereumStake200Response.d.ts.map +1 -0
- package/dist/models/EthereumStake200Response.js +57 -0
- package/dist/models/EthereumStake200Response.js.map +1 -0
- package/dist/models/EthereumStakeRequest.d.ts +64 -0
- package/dist/models/EthereumStakeRequest.d.ts.map +1 -0
- package/dist/models/EthereumStakeRequest.js +70 -0
- package/dist/models/EthereumStakeRequest.js.map +1 -0
- package/dist/models/EthereumStakeResponse.d.ts +47 -0
- package/dist/models/EthereumStakeResponse.d.ts.map +1 -0
- package/dist/models/EthereumStakeResponse.js +61 -0
- package/dist/models/EthereumStakeResponse.js.map +1 -0
- package/dist/models/EthereumTransaction.d.ts +87 -0
- package/dist/models/EthereumTransaction.d.ts.map +1 -0
- package/dist/models/EthereumTransaction.js +93 -0
- package/dist/models/EthereumTransaction.js.map +1 -0
- package/dist/models/EthereumTransactionTx.d.ts +75 -0
- package/dist/models/EthereumTransactionTx.d.ts.map +1 -0
- package/dist/models/EthereumTransactionTx.js +79 -0
- package/dist/models/EthereumTransactionTx.js.map +1 -0
- package/dist/models/EthereumValidator.d.ts +172 -0
- package/dist/models/EthereumValidator.d.ts.map +1 -0
- package/dist/models/EthereumValidator.js +157 -0
- package/dist/models/EthereumValidator.js.map +1 -0
- package/dist/models/EthereumValidatorExitRequest.d.ts +45 -0
- package/dist/models/EthereumValidatorExitRequest.d.ts.map +1 -0
- package/dist/models/EthereumValidatorExitRequest.js +59 -0
- package/dist/models/EthereumValidatorExitRequest.js.map +1 -0
- package/dist/models/EthereumWithdraw200Response.d.ts +47 -0
- package/dist/models/EthereumWithdraw200Response.d.ts.map +1 -0
- package/dist/models/EthereumWithdraw200Response.js +57 -0
- package/dist/models/EthereumWithdraw200Response.js.map +1 -0
- package/dist/models/EthereumWithdrawRequest.d.ts +46 -0
- package/dist/models/EthereumWithdrawRequest.d.ts.map +1 -0
- package/dist/models/EthereumWithdrawRequest.js +60 -0
- package/dist/models/EthereumWithdrawRequest.js.map +1 -0
- package/dist/models/EthereumWithdrawResponse.d.ts +34 -0
- package/dist/models/EthereumWithdrawResponse.d.ts.map +1 -0
- package/dist/models/EthereumWithdrawResponse.js +52 -0
- package/dist/models/EthereumWithdrawResponse.js.map +1 -0
- package/dist/models/GetEntitiesResponse.d.ts +53 -0
- package/dist/models/GetEntitiesResponse.d.ts.map +1 -0
- package/dist/models/GetEntitiesResponse.js +61 -0
- package/dist/models/GetEntitiesResponse.js.map +1 -0
- package/dist/models/GetHealthStatus200Response.d.ts +45 -0
- package/dist/models/GetHealthStatus200Response.d.ts.map +1 -0
- package/dist/models/GetHealthStatus200Response.js +59 -0
- package/dist/models/GetHealthStatus200Response.js.map +1 -0
- package/dist/models/GetNetworksResponse.d.ts +47 -0
- package/dist/models/GetNetworksResponse.d.ts.map +1 -0
- package/dist/models/GetNetworksResponse.js +57 -0
- package/dist/models/GetNetworksResponse.js.map +1 -0
- package/dist/models/GetOpenApiSpec200Response.d.ts +69 -0
- package/dist/models/GetOpenApiSpec200Response.d.ts.map +1 -0
- package/dist/models/GetOpenApiSpec200Response.js +71 -0
- package/dist/models/GetOpenApiSpec200Response.js.map +1 -0
- package/dist/models/GetOpenApiSpec200ResponseComponents.d.ts +35 -0
- package/dist/models/GetOpenApiSpec200ResponseComponents.d.ts.map +1 -0
- package/dist/models/GetOpenApiSpec200ResponseComponents.js +51 -0
- package/dist/models/GetOpenApiSpec200ResponseComponents.js.map +1 -0
- package/dist/models/GetOpenApiSpec200ResponseInfo.d.ts +45 -0
- package/dist/models/GetOpenApiSpec200ResponseInfo.d.ts.map +1 -0
- package/dist/models/GetOpenApiSpec200ResponseInfo.js +59 -0
- package/dist/models/GetOpenApiSpec200ResponseInfo.js.map +1 -0
- package/dist/models/GetOpenApiSpec200ResponseServersInner.d.ts +39 -0
- package/dist/models/GetOpenApiSpec200ResponseServersInner.d.ts.map +1 -0
- package/dist/models/GetOpenApiSpec200ResponseServersInner.js +55 -0
- package/dist/models/GetOpenApiSpec200ResponseServersInner.js.map +1 -0
- package/dist/models/GetOpenApiSpec200ResponseTagsInner.d.ts +39 -0
- package/dist/models/GetOpenApiSpec200ResponseTagsInner.d.ts.map +1 -0
- package/dist/models/GetOpenApiSpec200ResponseTagsInner.js +55 -0
- package/dist/models/GetOpenApiSpec200ResponseTagsInner.js.map +1 -0
- package/dist/models/GetStakingPositions200Response.d.ts +39 -0
- package/dist/models/GetStakingPositions200Response.d.ts.map +1 -0
- package/dist/models/GetStakingPositions200Response.js +53 -0
- package/dist/models/GetStakingPositions200Response.js.map +1 -0
- package/dist/models/GetTokensResponse.d.ts +47 -0
- package/dist/models/GetTokensResponse.d.ts.map +1 -0
- package/dist/models/GetTokensResponse.js +57 -0
- package/dist/models/GetTokensResponse.js.map +1 -0
- package/dist/models/GetValidators200Response.d.ts +39 -0
- package/dist/models/GetValidators200Response.d.ts.map +1 -0
- package/dist/models/GetValidators200Response.js +55 -0
- package/dist/models/GetValidators200Response.js.map +1 -0
- package/dist/models/MultiTransactionResponse.d.ts +34 -0
- package/dist/models/MultiTransactionResponse.d.ts.map +1 -0
- package/dist/models/MultiTransactionResponse.js +52 -0
- package/dist/models/MultiTransactionResponse.js.map +1 -0
- package/dist/models/Network.d.ts +78 -0
- package/dist/models/Network.d.ts.map +1 -0
- package/dist/models/Network.js +104 -0
- package/dist/models/Network.js.map +1 -0
- package/dist/models/NetworkConfig.d.ts +96 -0
- package/dist/models/NetworkConfig.d.ts.map +1 -0
- package/dist/models/NetworkConfig.js +76 -0
- package/dist/models/NetworkConfig.js.map +1 -0
- package/dist/models/NetworkConfigChainId.d.ts +27 -0
- package/dist/models/NetworkConfigChainId.d.ts.map +1 -0
- package/dist/models/NetworkConfigChainId.js +39 -0
- package/dist/models/NetworkConfigChainId.js.map +1 -0
- package/dist/models/NetworkConfigNativeToken.d.ts +51 -0
- package/dist/models/NetworkConfigNativeToken.d.ts.map +1 -0
- package/dist/models/NetworkConfigNativeToken.js +63 -0
- package/dist/models/NetworkConfigNativeToken.js.map +1 -0
- package/dist/models/NetworkConfigNetworkId.d.ts +27 -0
- package/dist/models/NetworkConfigNetworkId.d.ts.map +1 -0
- package/dist/models/NetworkConfigNetworkId.js +39 -0
- package/dist/models/NetworkConfigNetworkId.js.map +1 -0
- package/dist/models/RestakingDelegateRequest.d.ts +46 -0
- package/dist/models/RestakingDelegateRequest.d.ts.map +1 -0
- package/dist/models/RestakingDelegateRequest.js +60 -0
- package/dist/models/RestakingDelegateRequest.js.map +1 -0
- package/dist/models/RestakingDepositRequest.d.ts +53 -0
- package/dist/models/RestakingDepositRequest.d.ts.map +1 -0
- package/dist/models/RestakingDepositRequest.js +65 -0
- package/dist/models/RestakingDepositRequest.js.map +1 -0
- package/dist/models/RestakingNetwork.d.ts +26 -0
- package/dist/models/RestakingNetwork.d.ts.map +1 -0
- package/dist/models/RestakingNetwork.js +52 -0
- package/dist/models/RestakingNetwork.js.map +1 -0
- package/dist/models/RestakingToken.d.ts +29 -0
- package/dist/models/RestakingToken.d.ts.map +1 -0
- package/dist/models/RestakingToken.js +55 -0
- package/dist/models/RestakingToken.js.map +1 -0
- package/dist/models/RestakingUndelegateRequest.d.ts +40 -0
- package/dist/models/RestakingUndelegateRequest.d.ts.map +1 -0
- package/dist/models/RestakingUndelegateRequest.js +56 -0
- package/dist/models/RestakingUndelegateRequest.js.map +1 -0
- package/dist/models/RestakingUnstakeRequest.d.ts +53 -0
- package/dist/models/RestakingUnstakeRequest.d.ts.map +1 -0
- package/dist/models/RestakingUnstakeRequest.js +65 -0
- package/dist/models/RestakingUnstakeRequest.js.map +1 -0
- package/dist/models/RestakingWithdrawRequest.d.ts +47 -0
- package/dist/models/RestakingWithdrawRequest.d.ts.map +1 -0
- package/dist/models/RestakingWithdrawRequest.js +61 -0
- package/dist/models/RestakingWithdrawRequest.js.map +1 -0
- package/dist/models/RewardHistoryItem.d.ts +105 -0
- package/dist/models/RewardHistoryItem.d.ts.map +1 -0
- package/dist/models/RewardHistoryItem.js +95 -0
- package/dist/models/RewardHistoryItem.js.map +1 -0
- package/dist/models/RewardHistoryResponse.d.ts +40 -0
- package/dist/models/RewardHistoryResponse.d.ts.map +1 -0
- package/dist/models/RewardHistoryResponse.js +56 -0
- package/dist/models/RewardHistoryResponse.js.map +1 -0
- package/dist/models/SimplifiedStakeRequest.d.ts +86 -0
- package/dist/models/SimplifiedStakeRequest.d.ts.map +1 -0
- package/dist/models/SimplifiedStakeRequest.js +67 -0
- package/dist/models/SimplifiedStakeRequest.js.map +1 -0
- package/dist/models/StakingNetwork.d.ts +47 -0
- package/dist/models/StakingNetwork.d.ts.map +1 -0
- package/dist/models/StakingNetwork.js +73 -0
- package/dist/models/StakingNetwork.js.map +1 -0
- package/dist/models/StakingOption.d.ts +60 -0
- package/dist/models/StakingOption.d.ts.map +1 -0
- package/dist/models/StakingOption.js +72 -0
- package/dist/models/StakingOption.js.map +1 -0
- package/dist/models/StakingOptionInfo.d.ts +48 -0
- package/dist/models/StakingOptionInfo.d.ts.map +1 -0
- package/dist/models/StakingOptionInfo.js +62 -0
- package/dist/models/StakingOptionInfo.js.map +1 -0
- package/dist/models/StakingOptionInfoExtraParamsInner.d.ts +51 -0
- package/dist/models/StakingOptionInfoExtraParamsInner.d.ts.map +1 -0
- package/dist/models/StakingOptionInfoExtraParamsInner.js +61 -0
- package/dist/models/StakingOptionInfoExtraParamsInner.js.map +1 -0
- package/dist/models/StakingOptionInfoNetwork.d.ts +96 -0
- package/dist/models/StakingOptionInfoNetwork.d.ts.map +1 -0
- package/dist/models/StakingOptionInfoNetwork.js +76 -0
- package/dist/models/StakingOptionInfoNetwork.js.map +1 -0
- package/dist/models/StakingOptionsResponse.d.ts +47 -0
- package/dist/models/StakingOptionsResponse.d.ts.map +1 -0
- package/dist/models/StakingOptionsResponse.js +57 -0
- package/dist/models/StakingOptionsResponse.js.map +1 -0
- package/dist/models/StakingToken.d.ts +37 -0
- package/dist/models/StakingToken.d.ts.map +1 -0
- package/dist/models/StakingToken.js +63 -0
- package/dist/models/StakingToken.js.map +1 -0
- package/dist/models/TokenInfo.d.ts +69 -0
- package/dist/models/TokenInfo.d.ts.map +1 -0
- package/dist/models/TokenInfo.js +73 -0
- package/dist/models/TokenInfo.js.map +1 -0
- package/dist/models/Transaction.d.ts +112 -0
- package/dist/models/Transaction.d.ts.map +1 -0
- package/dist/models/Transaction.js +114 -0
- package/dist/models/Transaction.js.map +1 -0
- package/dist/models/TransactionsResponse.d.ts +47 -0
- package/dist/models/TransactionsResponse.d.ts.map +1 -0
- package/dist/models/TransactionsResponse.js +57 -0
- package/dist/models/TransactionsResponse.js.map +1 -0
- package/dist/models/index.d.ts +75 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +93 -0
- package/dist/models/index.js.map +1 -0
- package/dist/runtime.d.ts +183 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +335 -0
- package/dist/runtime.js.map +1 -0
- package/openapi.json +6022 -0
- package/package.json +68 -0
- package/src/apis/APIInfoApi.ts +380 -0
- package/src/apis/EigenlayerRestakingApi.ts +750 -0
- package/src/apis/EthereumStakingApi.ts +773 -0
- package/src/apis/SimpleStakingApi.ts +641 -0
- package/src/apis/SystemApi.ts +128 -0
- package/src/apis/index.ts +7 -0
- package/src/index.ts +5 -0
- package/src/models/ApiError.ts +83 -0
- package/src/models/CreateStakingWithdrawalRequest.ts +134 -0
- package/src/models/DailyRewardItem.ts +181 -0
- package/src/models/DailyRewardsResponse.ts +83 -0
- package/src/models/DelegationHistoryItem.ts +181 -0
- package/src/models/DelegationHistoryResponse.ts +83 -0
- package/src/models/Entity.ts +118 -0
- package/src/models/EntityValidator.ts +190 -0
- package/src/models/EntityValidatorNetwork.ts +113 -0
- package/src/models/ErrorResponse.ts +83 -0
- package/src/models/EthereumCancelStake200Response.ts +97 -0
- package/src/models/EthereumCancelStakeRequest.ts +85 -0
- package/src/models/EthereumCancelStakeResponse.ts +66 -0
- package/src/models/EthereumConfirmStake200Response.ts +97 -0
- package/src/models/EthereumConfirmStakeRequest.ts +94 -0
- package/src/models/EthereumConfirmStakeResponse.ts +66 -0
- package/src/models/EthereumExit202Response.ts +97 -0
- package/src/models/EthereumExitRequest.ts +85 -0
- package/src/models/EthereumExitResponse.ts +84 -0
- package/src/models/EthereumForceExit200Response.ts +97 -0
- package/src/models/EthereumForceExitRequest.ts +85 -0
- package/src/models/EthereumForceExitResponse.ts +74 -0
- package/src/models/EthereumGetDailyRewardsHistory200Response.ts +97 -0
- package/src/models/EthereumGetStakingTxHistory200Response.ts +97 -0
- package/src/models/EthereumGetValidators200Response.ts +97 -0
- package/src/models/EthereumGetValidatorsResponse.ts +74 -0
- package/src/models/EthereumNetwork.ts +53 -0
- package/src/models/EthereumStake200Response.ts +97 -0
- package/src/models/EthereumStakeRequest.ts +120 -0
- package/src/models/EthereumStakeResponse.ts +99 -0
- package/src/models/EthereumTransaction.ts +147 -0
- package/src/models/EthereumTransactionTx.ts +129 -0
- package/src/models/EthereumValidator.ts +269 -0
- package/src/models/EthereumValidatorExitRequest.ts +84 -0
- package/src/models/EthereumWithdraw200Response.ts +97 -0
- package/src/models/EthereumWithdrawRequest.ts +94 -0
- package/src/models/EthereumWithdrawResponse.ts +74 -0
- package/src/models/GetEntitiesResponse.ts +106 -0
- package/src/models/GetHealthStatus200Response.ts +84 -0
- package/src/models/GetNetworksResponse.ts +97 -0
- package/src/models/GetOpenApiSpec200Response.ts +138 -0
- package/src/models/GetOpenApiSpec200ResponseComponents.ts +66 -0
- package/src/models/GetOpenApiSpec200ResponseInfo.ts +84 -0
- package/src/models/GetOpenApiSpec200ResponseServersInner.ts +75 -0
- package/src/models/GetOpenApiSpec200ResponseTagsInner.ts +75 -0
- package/src/models/GetStakingPositions200Response.ts +74 -0
- package/src/models/GetTokensResponse.ts +97 -0
- package/src/models/GetValidators200Response.ts +75 -0
- package/src/models/MultiTransactionResponse.ts +74 -0
- package/src/models/Network.ts +105 -0
- package/src/models/NetworkConfig.ts +169 -0
- package/src/models/NetworkConfigChainId.ts +46 -0
- package/src/models/NetworkConfigNativeToken.ts +93 -0
- package/src/models/NetworkConfigNetworkId.ts +46 -0
- package/src/models/RestakingDelegateRequest.ts +92 -0
- package/src/models/RestakingDepositRequest.ts +108 -0
- package/src/models/RestakingNetwork.ts +53 -0
- package/src/models/RestakingToken.ts +56 -0
- package/src/models/RestakingUndelegateRequest.ts +83 -0
- package/src/models/RestakingUnstakeRequest.ts +108 -0
- package/src/models/RestakingWithdrawRequest.ts +99 -0
- package/src/models/RewardHistoryItem.ts +172 -0
- package/src/models/RewardHistoryResponse.ts +83 -0
- package/src/models/SimplifiedStakeRequest.ts +142 -0
- package/src/models/StakingNetwork.ts +74 -0
- package/src/models/StakingOption.ts +112 -0
- package/src/models/StakingOptionInfo.ts +106 -0
- package/src/models/StakingOptionInfoExtraParamsInner.ts +92 -0
- package/src/models/StakingOptionInfoNetwork.ts +169 -0
- package/src/models/StakingOptionsResponse.ts +97 -0
- package/src/models/StakingToken.ts +64 -0
- package/src/models/TokenInfo.ts +119 -0
- package/src/models/Transaction.ts +163 -0
- package/src/models/TransactionsResponse.ts +97 -0
- package/src/models/index.ts +76 -0
- package/src/runtime.ts +431 -0
|
@@ -0,0 +1,773 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* stakeFi Developer API
|
|
5
|
+
* API for creating unsigned staking transactions across multiple blockchain networks
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ErrorResponse,
|
|
19
|
+
EthereumCancelStake200Response,
|
|
20
|
+
EthereumCancelStakeRequest,
|
|
21
|
+
EthereumConfirmStake200Response,
|
|
22
|
+
EthereumConfirmStakeRequest,
|
|
23
|
+
EthereumExit202Response,
|
|
24
|
+
EthereumExitRequest,
|
|
25
|
+
EthereumForceExit200Response,
|
|
26
|
+
EthereumForceExitRequest,
|
|
27
|
+
EthereumGetDailyRewardsHistory200Response,
|
|
28
|
+
EthereumGetStakingTxHistory200Response,
|
|
29
|
+
EthereumGetValidators200Response,
|
|
30
|
+
EthereumNetwork,
|
|
31
|
+
EthereumStake200Response,
|
|
32
|
+
EthereumStakeRequest,
|
|
33
|
+
EthereumWithdraw200Response,
|
|
34
|
+
EthereumWithdrawRequest,
|
|
35
|
+
} from '../models/index';
|
|
36
|
+
import {
|
|
37
|
+
ErrorResponseFromJSON,
|
|
38
|
+
ErrorResponseToJSON,
|
|
39
|
+
EthereumCancelStake200ResponseFromJSON,
|
|
40
|
+
EthereumCancelStake200ResponseToJSON,
|
|
41
|
+
EthereumCancelStakeRequestFromJSON,
|
|
42
|
+
EthereumCancelStakeRequestToJSON,
|
|
43
|
+
EthereumConfirmStake200ResponseFromJSON,
|
|
44
|
+
EthereumConfirmStake200ResponseToJSON,
|
|
45
|
+
EthereumConfirmStakeRequestFromJSON,
|
|
46
|
+
EthereumConfirmStakeRequestToJSON,
|
|
47
|
+
EthereumExit202ResponseFromJSON,
|
|
48
|
+
EthereumExit202ResponseToJSON,
|
|
49
|
+
EthereumExitRequestFromJSON,
|
|
50
|
+
EthereumExitRequestToJSON,
|
|
51
|
+
EthereumForceExit200ResponseFromJSON,
|
|
52
|
+
EthereumForceExit200ResponseToJSON,
|
|
53
|
+
EthereumForceExitRequestFromJSON,
|
|
54
|
+
EthereumForceExitRequestToJSON,
|
|
55
|
+
EthereumGetDailyRewardsHistory200ResponseFromJSON,
|
|
56
|
+
EthereumGetDailyRewardsHistory200ResponseToJSON,
|
|
57
|
+
EthereumGetStakingTxHistory200ResponseFromJSON,
|
|
58
|
+
EthereumGetStakingTxHistory200ResponseToJSON,
|
|
59
|
+
EthereumGetValidators200ResponseFromJSON,
|
|
60
|
+
EthereumGetValidators200ResponseToJSON,
|
|
61
|
+
EthereumNetworkFromJSON,
|
|
62
|
+
EthereumNetworkToJSON,
|
|
63
|
+
EthereumStake200ResponseFromJSON,
|
|
64
|
+
EthereumStake200ResponseToJSON,
|
|
65
|
+
EthereumStakeRequestFromJSON,
|
|
66
|
+
EthereumStakeRequestToJSON,
|
|
67
|
+
EthereumWithdraw200ResponseFromJSON,
|
|
68
|
+
EthereumWithdraw200ResponseToJSON,
|
|
69
|
+
EthereumWithdrawRequestFromJSON,
|
|
70
|
+
EthereumWithdrawRequestToJSON,
|
|
71
|
+
} from '../models/index';
|
|
72
|
+
|
|
73
|
+
export interface EthereumCancelStakeOperationRequest {
|
|
74
|
+
ethereumCancelStakeRequest: EthereumCancelStakeRequest;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface EthereumConfirmStakeOperationRequest {
|
|
78
|
+
ethereumConfirmStakeRequest: EthereumConfirmStakeRequest;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface EthereumExitOperationRequest {
|
|
82
|
+
ethereumExitRequest: EthereumExitRequest;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface EthereumForceExitOperationRequest {
|
|
86
|
+
ethereumForceExitRequest: EthereumForceExitRequest;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface EthereumGetDailyRewardsHistoryRequest {
|
|
90
|
+
pubkey: string;
|
|
91
|
+
network: EthereumNetwork;
|
|
92
|
+
startDate?: string;
|
|
93
|
+
endDate?: string;
|
|
94
|
+
limit?: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface EthereumGetStakingTxHistoryRequest {
|
|
98
|
+
pubkey: string;
|
|
99
|
+
network: EthereumNetwork;
|
|
100
|
+
eventType?: string;
|
|
101
|
+
limit?: string;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface EthereumGetValidatorsRequest {
|
|
105
|
+
network: EthereumNetwork;
|
|
106
|
+
state?: EthereumGetValidatorsStateEnum;
|
|
107
|
+
consensusLayerState?: EthereumGetValidatorsConsensusLayerStateEnum;
|
|
108
|
+
indexerState?: EthereumGetValidatorsIndexerStateEnum;
|
|
109
|
+
validatorName?: string;
|
|
110
|
+
validatorPublicKey?: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface EthereumStakeOperationRequest {
|
|
114
|
+
ethereumStakeRequest: EthereumStakeRequest;
|
|
115
|
+
idempotencyKey?: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface EthereumWithdrawOperationRequest {
|
|
119
|
+
ethereumWithdrawRequest: EthereumWithdrawRequest;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* EthereumStakingApi - interface
|
|
124
|
+
*
|
|
125
|
+
* @export
|
|
126
|
+
* @interface EthereumStakingApiInterface
|
|
127
|
+
*/
|
|
128
|
+
export interface EthereumStakingApiInterface {
|
|
129
|
+
/**
|
|
130
|
+
* Cancels a pending stake created by `POST /stake` before its deposit transaction is broadcast on chain. Returns 409 when a deposit for that validator has already been observed on chain. Once deposited, funds can be recovered via `POST /exit`.
|
|
131
|
+
* @summary Cancel Pending Stake
|
|
132
|
+
* @param {EthereumCancelStakeRequest} ethereumCancelStakeRequest
|
|
133
|
+
* @param {*} [options] Override http request option.
|
|
134
|
+
* @throws {RequiredError}
|
|
135
|
+
* @memberof EthereumStakingApiInterface
|
|
136
|
+
*/
|
|
137
|
+
ethereumCancelStakeRaw(requestParameters: EthereumCancelStakeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumCancelStake200Response>>;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Cancels a pending stake created by `POST /stake` before its deposit transaction is broadcast on chain. Returns 409 when a deposit for that validator has already been observed on chain. Once deposited, funds can be recovered via `POST /exit`.
|
|
141
|
+
* Cancel Pending Stake
|
|
142
|
+
*/
|
|
143
|
+
ethereumCancelStake(requestParameters: EthereumCancelStakeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumCancelStake200Response>;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Confirms that the deposit transaction returned from `POST /stake` has been broadcast, promoting the pending stake once the deposit is verified on chain. The supplied `depositTxHash` is checked on chain: the receipt must exist, have succeeded, have the required number of confirmations, and contain a `DepositEvent` for the supplied `validatorPublicKey`. This call is optional and idempotent. A background watcher promotes the same pending record automatically once it observes the deposit log on chain, so the result is the same whether or not this endpoint is called. Pending records that are never confirmed by either path expire automatically and leave no trace.
|
|
147
|
+
* @summary Confirm Stake
|
|
148
|
+
* @param {EthereumConfirmStakeRequest} ethereumConfirmStakeRequest
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
* @memberof EthereumStakingApiInterface
|
|
152
|
+
*/
|
|
153
|
+
ethereumConfirmStakeRaw(requestParameters: EthereumConfirmStakeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumConfirmStake200Response>>;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Confirms that the deposit transaction returned from `POST /stake` has been broadcast, promoting the pending stake once the deposit is verified on chain. The supplied `depositTxHash` is checked on chain: the receipt must exist, have succeeded, have the required number of confirmations, and contain a `DepositEvent` for the supplied `validatorPublicKey`. This call is optional and idempotent. A background watcher promotes the same pending record automatically once it observes the deposit log on chain, so the result is the same whether or not this endpoint is called. Pending records that are never confirmed by either path expire automatically and leave no trace.
|
|
157
|
+
* Confirm Stake
|
|
158
|
+
*/
|
|
159
|
+
ethereumConfirmStake(requestParameters: EthereumConfirmStakeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumConfirmStake200Response>;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Fully exits a validator. The operator holds the validator\'s signing key and uses it to submit the exit request to the network. This endpoint only does full exits. To take out part of the balance and keep the validator running, use `POST /v1/ethereum-staking/withdraw`. For a full exit the withdrawal address can submit on its own without this API, use `POST /v1/ethereum-staking/force-exit`. A validator can only exit after it has been active for about 27 hours (256 epochs). The response includes `accepted` and an `exitEpoch`. The `exitEpoch` stays null until the network schedules the exit.
|
|
163
|
+
* @summary Exit (via operator)
|
|
164
|
+
* @param {EthereumExitRequest} ethereumExitRequest
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
* @memberof EthereumStakingApiInterface
|
|
168
|
+
*/
|
|
169
|
+
ethereumExitRaw(requestParameters: EthereumExitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumExit202Response>>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Fully exits a validator. The operator holds the validator\'s signing key and uses it to submit the exit request to the network. This endpoint only does full exits. To take out part of the balance and keep the validator running, use `POST /v1/ethereum-staking/withdraw`. For a full exit the withdrawal address can submit on its own without this API, use `POST /v1/ethereum-staking/force-exit`. A validator can only exit after it has been active for about 27 hours (256 epochs). The response includes `accepted` and an `exitEpoch`. The `exitEpoch` stays null until the network schedules the exit.
|
|
173
|
+
* Exit (via operator)
|
|
174
|
+
*/
|
|
175
|
+
ethereumExit(requestParameters: EthereumExitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumExit202Response>;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Returns an unsigned EIP-7002 full-exit transaction (amount = 0) for the withdrawal address to sign and broadcast. A full exit is a standard on-chain request that the withdrawal address can build and send on its own, without this API. This endpoint is a convenience that assembles that transaction so it does not have to be built by hand. Unlike `POST /v1/ethereum-staking/exit`, which needs the validator signing key, this transaction is signed by the withdrawal address. Both reach the same result: the validator exits and its balance returns to the withdrawal address. A validator can only exit after it has been active for about 27 hours (256 epochs).
|
|
179
|
+
* @summary Force exit (trustless)
|
|
180
|
+
* @param {EthereumForceExitRequest} ethereumForceExitRequest
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
* @memberof EthereumStakingApiInterface
|
|
184
|
+
*/
|
|
185
|
+
ethereumForceExitRaw(requestParameters: EthereumForceExitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumForceExit200Response>>;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Returns an unsigned EIP-7002 full-exit transaction (amount = 0) for the withdrawal address to sign and broadcast. A full exit is a standard on-chain request that the withdrawal address can build and send on its own, without this API. This endpoint is a convenience that assembles that transaction so it does not have to be built by hand. Unlike `POST /v1/ethereum-staking/exit`, which needs the validator signing key, this transaction is signed by the withdrawal address. Both reach the same result: the validator exits and its balance returns to the withdrawal address. A validator can only exit after it has been active for about 27 hours (256 epochs).
|
|
189
|
+
* Force exit (trustless)
|
|
190
|
+
*/
|
|
191
|
+
ethereumForceExit(requestParameters: EthereumForceExitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumForceExit200Response>;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Daily reward history for a single Ethereum validator, sourced from the staking data indexer (BFF). Pubkey must be owned by the caller. Supports startDate/endDate (YYYY-MM-DD) and limit filters.
|
|
195
|
+
* @summary Rewards Daily History
|
|
196
|
+
* @param {string} pubkey 48-byte BLS validator public key
|
|
197
|
+
* @param {EthereumNetwork} network Target Ethereum network
|
|
198
|
+
* @param {string} [startDate] Inclusive start date (YYYY-MM-DD)
|
|
199
|
+
* @param {string} [endDate] Inclusive end date (YYYY-MM-DD)
|
|
200
|
+
* @param {string} [limit] Maximum number of items to return. Must be a positive integer.
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
* @memberof EthereumStakingApiInterface
|
|
204
|
+
*/
|
|
205
|
+
ethereumGetDailyRewardsHistoryRaw(requestParameters: EthereumGetDailyRewardsHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumGetDailyRewardsHistory200Response>>;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Daily reward history for a single Ethereum validator, sourced from the staking data indexer (BFF). Pubkey must be owned by the caller. Supports startDate/endDate (YYYY-MM-DD) and limit filters.
|
|
209
|
+
* Rewards Daily History
|
|
210
|
+
*/
|
|
211
|
+
ethereumGetDailyRewardsHistory(requestParameters: EthereumGetDailyRewardsHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumGetDailyRewardsHistory200Response>;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Delegation/deposit event history for a single Ethereum validator, sourced from the staking data indexer (BFF). Pubkey must be owned by the caller. Supports eventType and limit filters.
|
|
215
|
+
* @summary Staking Transaction History
|
|
216
|
+
* @param {string} pubkey 48-byte BLS validator public key
|
|
217
|
+
* @param {EthereumNetwork} network Target Ethereum network
|
|
218
|
+
* @param {string} [eventType] Filter by indexer event type
|
|
219
|
+
* @param {string} [limit] Maximum number of items to return. Must be a positive integer.
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
* @memberof EthereumStakingApiInterface
|
|
223
|
+
*/
|
|
224
|
+
ethereumGetStakingTxHistoryRaw(requestParameters: EthereumGetStakingTxHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumGetStakingTxHistory200Response>>;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Delegation/deposit event history for a single Ethereum validator, sourced from the staking data indexer (BFF). Pubkey must be owned by the caller. Supports eventType and limit filters.
|
|
228
|
+
* Staking Transaction History
|
|
229
|
+
*/
|
|
230
|
+
ethereumGetStakingTxHistory(requestParameters: EthereumGetStakingTxHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumGetStakingTxHistory200Response>;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Lists all Ethereum validators for the authenticated account. Returns the full set when called without filters. Supply any combination of the filters below to narrow the results. Each validator exposes three separate status fields: - **`state`**: the high-level lifecycle stage, derived from the beacon state, the indexer status, and recent on-chain exit requests. Progresses through `pending`, `queued`, `activating`, `active`, `exit_pending`, `exiting`, `withdrawn`. - **`consensusLayerState`**: the raw beacon-node state (consensus-spec values such as `active_ongoing`, `active_exiting`, `exited_slashed`, `withdrawal_done`), or `unknown` before the beacon chain has ingested the validator. - **`indexerState`**: the raw staking-data indexer status (`planned`, `active`, `deactivated`), plus `pending` before the deposit is observed on chain and `unknown` when the indexer holds no matching record. Filters (all optional and combinable): `state`, `consensusLayerState`, `indexerState`, `validatorName` (exact match on the validator label), and `validatorPublicKey` (exact match on the BLS public key).
|
|
234
|
+
* @summary Get Validators
|
|
235
|
+
* @param {EthereumNetwork} network Target Ethereum network
|
|
236
|
+
* @param {'pending' | 'queued' | 'activating' | 'active' | 'exit_pending' | 'exiting' | 'withdrawn'} [state] Filter by state
|
|
237
|
+
* @param {'pending_initialized' | 'pending_queued' | 'active_ongoing' | 'active_exiting' | 'active_slashed' | 'exited_unslashed' | 'exited_slashed' | 'withdrawal_possible' | 'withdrawal_done' | 'unknown'} [consensusLayerState] Filter by beacon (consensus layer) state
|
|
238
|
+
* @param {'planned' | 'active' | 'deactivated' | 'pending' | 'unknown'} [indexerState] Filter by indexer status
|
|
239
|
+
* @param {string} [validatorName] Filter on validator name
|
|
240
|
+
* @param {string} [validatorPublicKey] Filter on public key
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
* @memberof EthereumStakingApiInterface
|
|
244
|
+
*/
|
|
245
|
+
ethereumGetValidatorsRaw(requestParameters: EthereumGetValidatorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumGetValidators200Response>>;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Lists all Ethereum validators for the authenticated account. Returns the full set when called without filters. Supply any combination of the filters below to narrow the results. Each validator exposes three separate status fields: - **`state`**: the high-level lifecycle stage, derived from the beacon state, the indexer status, and recent on-chain exit requests. Progresses through `pending`, `queued`, `activating`, `active`, `exit_pending`, `exiting`, `withdrawn`. - **`consensusLayerState`**: the raw beacon-node state (consensus-spec values such as `active_ongoing`, `active_exiting`, `exited_slashed`, `withdrawal_done`), or `unknown` before the beacon chain has ingested the validator. - **`indexerState`**: the raw staking-data indexer status (`planned`, `active`, `deactivated`), plus `pending` before the deposit is observed on chain and `unknown` when the indexer holds no matching record. Filters (all optional and combinable): `state`, `consensusLayerState`, `indexerState`, `validatorName` (exact match on the validator label), and `validatorPublicKey` (exact match on the BLS public key).
|
|
249
|
+
* Get Validators
|
|
250
|
+
*/
|
|
251
|
+
ethereumGetValidators(requestParameters: EthereumGetValidatorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumGetValidators200Response>;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Generates a BLS key, registers it with the validator client, and returns an unsigned deposit transaction. You can send an `Idempotency-Key` header (UUID) to make retries safe. Repeating the same key with the same body returns the original response without minting a new key. **Pending stakes:** An account may hold at most 10 pending stakes at a time (deposits that have been generated but whose deposit transaction has not yet been broadcast on chain). Cancel a pending stake with `POST /v1/ethereum-staking/cancel-stake` to free a slot. **MEV policy:** MEV-Boost configuration (relay allowlist, min-bid threshold, builder participation) is set per-customer at the operator level rather than per-stake. The policy in effect at the time of a proposal slot is the one that applies. Confirm the MEV policy with the assigned operator before staking.
|
|
255
|
+
* @summary Stake
|
|
256
|
+
* @param {EthereumStakeRequest} ethereumStakeRequest
|
|
257
|
+
* @param {string} [idempotencyKey] Dedup key for safe retries (UUID recommended). Same key + same body replays the original response; same key + different body → 409.
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
* @memberof EthereumStakingApiInterface
|
|
261
|
+
*/
|
|
262
|
+
ethereumStakeRaw(requestParameters: EthereumStakeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumStake200Response>>;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Generates a BLS key, registers it with the validator client, and returns an unsigned deposit transaction. You can send an `Idempotency-Key` header (UUID) to make retries safe. Repeating the same key with the same body returns the original response without minting a new key. **Pending stakes:** An account may hold at most 10 pending stakes at a time (deposits that have been generated but whose deposit transaction has not yet been broadcast on chain). Cancel a pending stake with `POST /v1/ethereum-staking/cancel-stake` to free a slot. **MEV policy:** MEV-Boost configuration (relay allowlist, min-bid threshold, builder participation) is set per-customer at the operator level rather than per-stake. The policy in effect at the time of a proposal slot is the one that applies. Confirm the MEV policy with the assigned operator before staking.
|
|
266
|
+
* Stake
|
|
267
|
+
*/
|
|
268
|
+
ethereumStake(requestParameters: EthereumStakeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumStake200Response>;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Returns an unsigned EIP-7002 partial-withdrawal transaction for the withdrawal address to sign and broadcast. The validator stays active and keeps attesting. A partial withdrawal is a standard on-chain request that the withdrawal address can build and send on its own, without this API. This endpoint is a convenience that assembles that transaction so it does not have to be built by hand. `amountWei` must be a whole-gwei multiple of at least 1 gwei, and the remaining balance must stay above 32 ETH. For a full exit, use `POST /v1/ethereum-staking/exit` or `POST /v1/ethereum-staking/force-exit`. A validator must have been active for at least 256 epochs (about 27 hours) before a withdrawal request is accepted.
|
|
272
|
+
* @summary Withdrawal (trustless)
|
|
273
|
+
* @param {EthereumWithdrawRequest} ethereumWithdrawRequest
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
* @memberof EthereumStakingApiInterface
|
|
277
|
+
*/
|
|
278
|
+
ethereumWithdrawRaw(requestParameters: EthereumWithdrawOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumWithdraw200Response>>;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Returns an unsigned EIP-7002 partial-withdrawal transaction for the withdrawal address to sign and broadcast. The validator stays active and keeps attesting. A partial withdrawal is a standard on-chain request that the withdrawal address can build and send on its own, without this API. This endpoint is a convenience that assembles that transaction so it does not have to be built by hand. `amountWei` must be a whole-gwei multiple of at least 1 gwei, and the remaining balance must stay above 32 ETH. For a full exit, use `POST /v1/ethereum-staking/exit` or `POST /v1/ethereum-staking/force-exit`. A validator must have been active for at least 256 epochs (about 27 hours) before a withdrawal request is accepted.
|
|
282
|
+
* Withdrawal (trustless)
|
|
283
|
+
*/
|
|
284
|
+
ethereumWithdraw(requestParameters: EthereumWithdrawOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumWithdraw200Response>;
|
|
285
|
+
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
*/
|
|
291
|
+
export class EthereumStakingApi extends runtime.BaseAPI implements EthereumStakingApiInterface {
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Cancels a pending stake created by `POST /stake` before its deposit transaction is broadcast on chain. Returns 409 when a deposit for that validator has already been observed on chain. Once deposited, funds can be recovered via `POST /exit`.
|
|
295
|
+
* Cancel Pending Stake
|
|
296
|
+
*/
|
|
297
|
+
async ethereumCancelStakeRaw(requestParameters: EthereumCancelStakeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumCancelStake200Response>> {
|
|
298
|
+
if (requestParameters['ethereumCancelStakeRequest'] == null) {
|
|
299
|
+
throw new runtime.RequiredError(
|
|
300
|
+
'ethereumCancelStakeRequest',
|
|
301
|
+
'Required parameter "ethereumCancelStakeRequest" was null or undefined when calling ethereumCancelStake().'
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
const queryParameters: any = {};
|
|
306
|
+
|
|
307
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
308
|
+
|
|
309
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
310
|
+
|
|
311
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
312
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
const response = await this.request({
|
|
316
|
+
path: `/v1/ethereum-staking/cancel-stake`,
|
|
317
|
+
method: 'POST',
|
|
318
|
+
headers: headerParameters,
|
|
319
|
+
query: queryParameters,
|
|
320
|
+
body: EthereumCancelStakeRequestToJSON(requestParameters['ethereumCancelStakeRequest']),
|
|
321
|
+
}, initOverrides);
|
|
322
|
+
|
|
323
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EthereumCancelStake200ResponseFromJSON(jsonValue));
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Cancels a pending stake created by `POST /stake` before its deposit transaction is broadcast on chain. Returns 409 when a deposit for that validator has already been observed on chain. Once deposited, funds can be recovered via `POST /exit`.
|
|
328
|
+
* Cancel Pending Stake
|
|
329
|
+
*/
|
|
330
|
+
async ethereumCancelStake(requestParameters: EthereumCancelStakeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumCancelStake200Response> {
|
|
331
|
+
const response = await this.ethereumCancelStakeRaw(requestParameters, initOverrides);
|
|
332
|
+
return await response.value();
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Confirms that the deposit transaction returned from `POST /stake` has been broadcast, promoting the pending stake once the deposit is verified on chain. The supplied `depositTxHash` is checked on chain: the receipt must exist, have succeeded, have the required number of confirmations, and contain a `DepositEvent` for the supplied `validatorPublicKey`. This call is optional and idempotent. A background watcher promotes the same pending record automatically once it observes the deposit log on chain, so the result is the same whether or not this endpoint is called. Pending records that are never confirmed by either path expire automatically and leave no trace.
|
|
337
|
+
* Confirm Stake
|
|
338
|
+
*/
|
|
339
|
+
async ethereumConfirmStakeRaw(requestParameters: EthereumConfirmStakeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumConfirmStake200Response>> {
|
|
340
|
+
if (requestParameters['ethereumConfirmStakeRequest'] == null) {
|
|
341
|
+
throw new runtime.RequiredError(
|
|
342
|
+
'ethereumConfirmStakeRequest',
|
|
343
|
+
'Required parameter "ethereumConfirmStakeRequest" was null or undefined when calling ethereumConfirmStake().'
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
const queryParameters: any = {};
|
|
348
|
+
|
|
349
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
350
|
+
|
|
351
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
352
|
+
|
|
353
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
354
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
const response = await this.request({
|
|
358
|
+
path: `/v1/ethereum-staking/confirm-stake`,
|
|
359
|
+
method: 'POST',
|
|
360
|
+
headers: headerParameters,
|
|
361
|
+
query: queryParameters,
|
|
362
|
+
body: EthereumConfirmStakeRequestToJSON(requestParameters['ethereumConfirmStakeRequest']),
|
|
363
|
+
}, initOverrides);
|
|
364
|
+
|
|
365
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EthereumConfirmStake200ResponseFromJSON(jsonValue));
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Confirms that the deposit transaction returned from `POST /stake` has been broadcast, promoting the pending stake once the deposit is verified on chain. The supplied `depositTxHash` is checked on chain: the receipt must exist, have succeeded, have the required number of confirmations, and contain a `DepositEvent` for the supplied `validatorPublicKey`. This call is optional and idempotent. A background watcher promotes the same pending record automatically once it observes the deposit log on chain, so the result is the same whether or not this endpoint is called. Pending records that are never confirmed by either path expire automatically and leave no trace.
|
|
370
|
+
* Confirm Stake
|
|
371
|
+
*/
|
|
372
|
+
async ethereumConfirmStake(requestParameters: EthereumConfirmStakeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumConfirmStake200Response> {
|
|
373
|
+
const response = await this.ethereumConfirmStakeRaw(requestParameters, initOverrides);
|
|
374
|
+
return await response.value();
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Fully exits a validator. The operator holds the validator\'s signing key and uses it to submit the exit request to the network. This endpoint only does full exits. To take out part of the balance and keep the validator running, use `POST /v1/ethereum-staking/withdraw`. For a full exit the withdrawal address can submit on its own without this API, use `POST /v1/ethereum-staking/force-exit`. A validator can only exit after it has been active for about 27 hours (256 epochs). The response includes `accepted` and an `exitEpoch`. The `exitEpoch` stays null until the network schedules the exit.
|
|
379
|
+
* Exit (via operator)
|
|
380
|
+
*/
|
|
381
|
+
async ethereumExitRaw(requestParameters: EthereumExitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumExit202Response>> {
|
|
382
|
+
if (requestParameters['ethereumExitRequest'] == null) {
|
|
383
|
+
throw new runtime.RequiredError(
|
|
384
|
+
'ethereumExitRequest',
|
|
385
|
+
'Required parameter "ethereumExitRequest" was null or undefined when calling ethereumExit().'
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
const queryParameters: any = {};
|
|
390
|
+
|
|
391
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
392
|
+
|
|
393
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
394
|
+
|
|
395
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
396
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
const response = await this.request({
|
|
400
|
+
path: `/v1/ethereum-staking/exit`,
|
|
401
|
+
method: 'POST',
|
|
402
|
+
headers: headerParameters,
|
|
403
|
+
query: queryParameters,
|
|
404
|
+
body: EthereumExitRequestToJSON(requestParameters['ethereumExitRequest']),
|
|
405
|
+
}, initOverrides);
|
|
406
|
+
|
|
407
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EthereumExit202ResponseFromJSON(jsonValue));
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Fully exits a validator. The operator holds the validator\'s signing key and uses it to submit the exit request to the network. This endpoint only does full exits. To take out part of the balance and keep the validator running, use `POST /v1/ethereum-staking/withdraw`. For a full exit the withdrawal address can submit on its own without this API, use `POST /v1/ethereum-staking/force-exit`. A validator can only exit after it has been active for about 27 hours (256 epochs). The response includes `accepted` and an `exitEpoch`. The `exitEpoch` stays null until the network schedules the exit.
|
|
412
|
+
* Exit (via operator)
|
|
413
|
+
*/
|
|
414
|
+
async ethereumExit(requestParameters: EthereumExitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumExit202Response> {
|
|
415
|
+
const response = await this.ethereumExitRaw(requestParameters, initOverrides);
|
|
416
|
+
return await response.value();
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Returns an unsigned EIP-7002 full-exit transaction (amount = 0) for the withdrawal address to sign and broadcast. A full exit is a standard on-chain request that the withdrawal address can build and send on its own, without this API. This endpoint is a convenience that assembles that transaction so it does not have to be built by hand. Unlike `POST /v1/ethereum-staking/exit`, which needs the validator signing key, this transaction is signed by the withdrawal address. Both reach the same result: the validator exits and its balance returns to the withdrawal address. A validator can only exit after it has been active for about 27 hours (256 epochs).
|
|
421
|
+
* Force exit (trustless)
|
|
422
|
+
*/
|
|
423
|
+
async ethereumForceExitRaw(requestParameters: EthereumForceExitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumForceExit200Response>> {
|
|
424
|
+
if (requestParameters['ethereumForceExitRequest'] == null) {
|
|
425
|
+
throw new runtime.RequiredError(
|
|
426
|
+
'ethereumForceExitRequest',
|
|
427
|
+
'Required parameter "ethereumForceExitRequest" was null or undefined when calling ethereumForceExit().'
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
const queryParameters: any = {};
|
|
432
|
+
|
|
433
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
434
|
+
|
|
435
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
436
|
+
|
|
437
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
438
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
const response = await this.request({
|
|
442
|
+
path: `/v1/ethereum-staking/force-exit`,
|
|
443
|
+
method: 'POST',
|
|
444
|
+
headers: headerParameters,
|
|
445
|
+
query: queryParameters,
|
|
446
|
+
body: EthereumForceExitRequestToJSON(requestParameters['ethereumForceExitRequest']),
|
|
447
|
+
}, initOverrides);
|
|
448
|
+
|
|
449
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EthereumForceExit200ResponseFromJSON(jsonValue));
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Returns an unsigned EIP-7002 full-exit transaction (amount = 0) for the withdrawal address to sign and broadcast. A full exit is a standard on-chain request that the withdrawal address can build and send on its own, without this API. This endpoint is a convenience that assembles that transaction so it does not have to be built by hand. Unlike `POST /v1/ethereum-staking/exit`, which needs the validator signing key, this transaction is signed by the withdrawal address. Both reach the same result: the validator exits and its balance returns to the withdrawal address. A validator can only exit after it has been active for about 27 hours (256 epochs).
|
|
454
|
+
* Force exit (trustless)
|
|
455
|
+
*/
|
|
456
|
+
async ethereumForceExit(requestParameters: EthereumForceExitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumForceExit200Response> {
|
|
457
|
+
const response = await this.ethereumForceExitRaw(requestParameters, initOverrides);
|
|
458
|
+
return await response.value();
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Daily reward history for a single Ethereum validator, sourced from the staking data indexer (BFF). Pubkey must be owned by the caller. Supports startDate/endDate (YYYY-MM-DD) and limit filters.
|
|
463
|
+
* Rewards Daily History
|
|
464
|
+
*/
|
|
465
|
+
async ethereumGetDailyRewardsHistoryRaw(requestParameters: EthereumGetDailyRewardsHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumGetDailyRewardsHistory200Response>> {
|
|
466
|
+
if (requestParameters['pubkey'] == null) {
|
|
467
|
+
throw new runtime.RequiredError(
|
|
468
|
+
'pubkey',
|
|
469
|
+
'Required parameter "pubkey" was null or undefined when calling ethereumGetDailyRewardsHistory().'
|
|
470
|
+
);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
if (requestParameters['network'] == null) {
|
|
474
|
+
throw new runtime.RequiredError(
|
|
475
|
+
'network',
|
|
476
|
+
'Required parameter "network" was null or undefined when calling ethereumGetDailyRewardsHistory().'
|
|
477
|
+
);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
const queryParameters: any = {};
|
|
481
|
+
|
|
482
|
+
if (requestParameters['network'] != null) {
|
|
483
|
+
queryParameters['network'] = requestParameters['network'];
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
if (requestParameters['startDate'] != null) {
|
|
487
|
+
queryParameters['startDate'] = requestParameters['startDate'];
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
if (requestParameters['endDate'] != null) {
|
|
491
|
+
queryParameters['endDate'] = requestParameters['endDate'];
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
if (requestParameters['limit'] != null) {
|
|
495
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
499
|
+
|
|
500
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
501
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
const response = await this.request({
|
|
505
|
+
path: `/v1/ethereum-staking/daily-rewards-history/{pubkey}`.replace(`{${"pubkey"}}`, encodeURIComponent(String(requestParameters['pubkey']))),
|
|
506
|
+
method: 'GET',
|
|
507
|
+
headers: headerParameters,
|
|
508
|
+
query: queryParameters,
|
|
509
|
+
}, initOverrides);
|
|
510
|
+
|
|
511
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EthereumGetDailyRewardsHistory200ResponseFromJSON(jsonValue));
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Daily reward history for a single Ethereum validator, sourced from the staking data indexer (BFF). Pubkey must be owned by the caller. Supports startDate/endDate (YYYY-MM-DD) and limit filters.
|
|
516
|
+
* Rewards Daily History
|
|
517
|
+
*/
|
|
518
|
+
async ethereumGetDailyRewardsHistory(requestParameters: EthereumGetDailyRewardsHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumGetDailyRewardsHistory200Response> {
|
|
519
|
+
const response = await this.ethereumGetDailyRewardsHistoryRaw(requestParameters, initOverrides);
|
|
520
|
+
return await response.value();
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Delegation/deposit event history for a single Ethereum validator, sourced from the staking data indexer (BFF). Pubkey must be owned by the caller. Supports eventType and limit filters.
|
|
525
|
+
* Staking Transaction History
|
|
526
|
+
*/
|
|
527
|
+
async ethereumGetStakingTxHistoryRaw(requestParameters: EthereumGetStakingTxHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumGetStakingTxHistory200Response>> {
|
|
528
|
+
if (requestParameters['pubkey'] == null) {
|
|
529
|
+
throw new runtime.RequiredError(
|
|
530
|
+
'pubkey',
|
|
531
|
+
'Required parameter "pubkey" was null or undefined when calling ethereumGetStakingTxHistory().'
|
|
532
|
+
);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
if (requestParameters['network'] == null) {
|
|
536
|
+
throw new runtime.RequiredError(
|
|
537
|
+
'network',
|
|
538
|
+
'Required parameter "network" was null or undefined when calling ethereumGetStakingTxHistory().'
|
|
539
|
+
);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
const queryParameters: any = {};
|
|
543
|
+
|
|
544
|
+
if (requestParameters['network'] != null) {
|
|
545
|
+
queryParameters['network'] = requestParameters['network'];
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
if (requestParameters['eventType'] != null) {
|
|
549
|
+
queryParameters['eventType'] = requestParameters['eventType'];
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
if (requestParameters['limit'] != null) {
|
|
553
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
557
|
+
|
|
558
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
559
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
const response = await this.request({
|
|
563
|
+
path: `/v1/ethereum-staking/staking-tx-history/{pubkey}`.replace(`{${"pubkey"}}`, encodeURIComponent(String(requestParameters['pubkey']))),
|
|
564
|
+
method: 'GET',
|
|
565
|
+
headers: headerParameters,
|
|
566
|
+
query: queryParameters,
|
|
567
|
+
}, initOverrides);
|
|
568
|
+
|
|
569
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EthereumGetStakingTxHistory200ResponseFromJSON(jsonValue));
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Delegation/deposit event history for a single Ethereum validator, sourced from the staking data indexer (BFF). Pubkey must be owned by the caller. Supports eventType and limit filters.
|
|
574
|
+
* Staking Transaction History
|
|
575
|
+
*/
|
|
576
|
+
async ethereumGetStakingTxHistory(requestParameters: EthereumGetStakingTxHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumGetStakingTxHistory200Response> {
|
|
577
|
+
const response = await this.ethereumGetStakingTxHistoryRaw(requestParameters, initOverrides);
|
|
578
|
+
return await response.value();
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Lists all Ethereum validators for the authenticated account. Returns the full set when called without filters. Supply any combination of the filters below to narrow the results. Each validator exposes three separate status fields: - **`state`**: the high-level lifecycle stage, derived from the beacon state, the indexer status, and recent on-chain exit requests. Progresses through `pending`, `queued`, `activating`, `active`, `exit_pending`, `exiting`, `withdrawn`. - **`consensusLayerState`**: the raw beacon-node state (consensus-spec values such as `active_ongoing`, `active_exiting`, `exited_slashed`, `withdrawal_done`), or `unknown` before the beacon chain has ingested the validator. - **`indexerState`**: the raw staking-data indexer status (`planned`, `active`, `deactivated`), plus `pending` before the deposit is observed on chain and `unknown` when the indexer holds no matching record. Filters (all optional and combinable): `state`, `consensusLayerState`, `indexerState`, `validatorName` (exact match on the validator label), and `validatorPublicKey` (exact match on the BLS public key).
|
|
583
|
+
* Get Validators
|
|
584
|
+
*/
|
|
585
|
+
async ethereumGetValidatorsRaw(requestParameters: EthereumGetValidatorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumGetValidators200Response>> {
|
|
586
|
+
if (requestParameters['network'] == null) {
|
|
587
|
+
throw new runtime.RequiredError(
|
|
588
|
+
'network',
|
|
589
|
+
'Required parameter "network" was null or undefined when calling ethereumGetValidators().'
|
|
590
|
+
);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
const queryParameters: any = {};
|
|
594
|
+
|
|
595
|
+
if (requestParameters['network'] != null) {
|
|
596
|
+
queryParameters['network'] = requestParameters['network'];
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
if (requestParameters['state'] != null) {
|
|
600
|
+
queryParameters['state'] = requestParameters['state'];
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
if (requestParameters['consensusLayerState'] != null) {
|
|
604
|
+
queryParameters['consensusLayerState'] = requestParameters['consensusLayerState'];
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
if (requestParameters['indexerState'] != null) {
|
|
608
|
+
queryParameters['indexerState'] = requestParameters['indexerState'];
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
if (requestParameters['validatorName'] != null) {
|
|
612
|
+
queryParameters['validatorName'] = requestParameters['validatorName'];
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
if (requestParameters['validatorPublicKey'] != null) {
|
|
616
|
+
queryParameters['validatorPublicKey'] = requestParameters['validatorPublicKey'];
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
620
|
+
|
|
621
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
622
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
const response = await this.request({
|
|
626
|
+
path: `/v1/ethereum-staking/validators`,
|
|
627
|
+
method: 'GET',
|
|
628
|
+
headers: headerParameters,
|
|
629
|
+
query: queryParameters,
|
|
630
|
+
}, initOverrides);
|
|
631
|
+
|
|
632
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EthereumGetValidators200ResponseFromJSON(jsonValue));
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Lists all Ethereum validators for the authenticated account. Returns the full set when called without filters. Supply any combination of the filters below to narrow the results. Each validator exposes three separate status fields: - **`state`**: the high-level lifecycle stage, derived from the beacon state, the indexer status, and recent on-chain exit requests. Progresses through `pending`, `queued`, `activating`, `active`, `exit_pending`, `exiting`, `withdrawn`. - **`consensusLayerState`**: the raw beacon-node state (consensus-spec values such as `active_ongoing`, `active_exiting`, `exited_slashed`, `withdrawal_done`), or `unknown` before the beacon chain has ingested the validator. - **`indexerState`**: the raw staking-data indexer status (`planned`, `active`, `deactivated`), plus `pending` before the deposit is observed on chain and `unknown` when the indexer holds no matching record. Filters (all optional and combinable): `state`, `consensusLayerState`, `indexerState`, `validatorName` (exact match on the validator label), and `validatorPublicKey` (exact match on the BLS public key).
|
|
637
|
+
* Get Validators
|
|
638
|
+
*/
|
|
639
|
+
async ethereumGetValidators(requestParameters: EthereumGetValidatorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumGetValidators200Response> {
|
|
640
|
+
const response = await this.ethereumGetValidatorsRaw(requestParameters, initOverrides);
|
|
641
|
+
return await response.value();
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Generates a BLS key, registers it with the validator client, and returns an unsigned deposit transaction. You can send an `Idempotency-Key` header (UUID) to make retries safe. Repeating the same key with the same body returns the original response without minting a new key. **Pending stakes:** An account may hold at most 10 pending stakes at a time (deposits that have been generated but whose deposit transaction has not yet been broadcast on chain). Cancel a pending stake with `POST /v1/ethereum-staking/cancel-stake` to free a slot. **MEV policy:** MEV-Boost configuration (relay allowlist, min-bid threshold, builder participation) is set per-customer at the operator level rather than per-stake. The policy in effect at the time of a proposal slot is the one that applies. Confirm the MEV policy with the assigned operator before staking.
|
|
646
|
+
* Stake
|
|
647
|
+
*/
|
|
648
|
+
async ethereumStakeRaw(requestParameters: EthereumStakeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumStake200Response>> {
|
|
649
|
+
if (requestParameters['ethereumStakeRequest'] == null) {
|
|
650
|
+
throw new runtime.RequiredError(
|
|
651
|
+
'ethereumStakeRequest',
|
|
652
|
+
'Required parameter "ethereumStakeRequest" was null or undefined when calling ethereumStake().'
|
|
653
|
+
);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
const queryParameters: any = {};
|
|
657
|
+
|
|
658
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
659
|
+
|
|
660
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
661
|
+
|
|
662
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
663
|
+
headerParameters['idempotency-key'] = String(requestParameters['idempotencyKey']);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
667
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
const response = await this.request({
|
|
671
|
+
path: `/v1/ethereum-staking/stake`,
|
|
672
|
+
method: 'POST',
|
|
673
|
+
headers: headerParameters,
|
|
674
|
+
query: queryParameters,
|
|
675
|
+
body: EthereumStakeRequestToJSON(requestParameters['ethereumStakeRequest']),
|
|
676
|
+
}, initOverrides);
|
|
677
|
+
|
|
678
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EthereumStake200ResponseFromJSON(jsonValue));
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Generates a BLS key, registers it with the validator client, and returns an unsigned deposit transaction. You can send an `Idempotency-Key` header (UUID) to make retries safe. Repeating the same key with the same body returns the original response without minting a new key. **Pending stakes:** An account may hold at most 10 pending stakes at a time (deposits that have been generated but whose deposit transaction has not yet been broadcast on chain). Cancel a pending stake with `POST /v1/ethereum-staking/cancel-stake` to free a slot. **MEV policy:** MEV-Boost configuration (relay allowlist, min-bid threshold, builder participation) is set per-customer at the operator level rather than per-stake. The policy in effect at the time of a proposal slot is the one that applies. Confirm the MEV policy with the assigned operator before staking.
|
|
683
|
+
* Stake
|
|
684
|
+
*/
|
|
685
|
+
async ethereumStake(requestParameters: EthereumStakeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumStake200Response> {
|
|
686
|
+
const response = await this.ethereumStakeRaw(requestParameters, initOverrides);
|
|
687
|
+
return await response.value();
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Returns an unsigned EIP-7002 partial-withdrawal transaction for the withdrawal address to sign and broadcast. The validator stays active and keeps attesting. A partial withdrawal is a standard on-chain request that the withdrawal address can build and send on its own, without this API. This endpoint is a convenience that assembles that transaction so it does not have to be built by hand. `amountWei` must be a whole-gwei multiple of at least 1 gwei, and the remaining balance must stay above 32 ETH. For a full exit, use `POST /v1/ethereum-staking/exit` or `POST /v1/ethereum-staking/force-exit`. A validator must have been active for at least 256 epochs (about 27 hours) before a withdrawal request is accepted.
|
|
692
|
+
* Withdrawal (trustless)
|
|
693
|
+
*/
|
|
694
|
+
async ethereumWithdrawRaw(requestParameters: EthereumWithdrawOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EthereumWithdraw200Response>> {
|
|
695
|
+
if (requestParameters['ethereumWithdrawRequest'] == null) {
|
|
696
|
+
throw new runtime.RequiredError(
|
|
697
|
+
'ethereumWithdrawRequest',
|
|
698
|
+
'Required parameter "ethereumWithdrawRequest" was null or undefined when calling ethereumWithdraw().'
|
|
699
|
+
);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
const queryParameters: any = {};
|
|
703
|
+
|
|
704
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
705
|
+
|
|
706
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
707
|
+
|
|
708
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
709
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
const response = await this.request({
|
|
713
|
+
path: `/v1/ethereum-staking/withdraw`,
|
|
714
|
+
method: 'POST',
|
|
715
|
+
headers: headerParameters,
|
|
716
|
+
query: queryParameters,
|
|
717
|
+
body: EthereumWithdrawRequestToJSON(requestParameters['ethereumWithdrawRequest']),
|
|
718
|
+
}, initOverrides);
|
|
719
|
+
|
|
720
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EthereumWithdraw200ResponseFromJSON(jsonValue));
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Returns an unsigned EIP-7002 partial-withdrawal transaction for the withdrawal address to sign and broadcast. The validator stays active and keeps attesting. A partial withdrawal is a standard on-chain request that the withdrawal address can build and send on its own, without this API. This endpoint is a convenience that assembles that transaction so it does not have to be built by hand. `amountWei` must be a whole-gwei multiple of at least 1 gwei, and the remaining balance must stay above 32 ETH. For a full exit, use `POST /v1/ethereum-staking/exit` or `POST /v1/ethereum-staking/force-exit`. A validator must have been active for at least 256 epochs (about 27 hours) before a withdrawal request is accepted.
|
|
725
|
+
* Withdrawal (trustless)
|
|
726
|
+
*/
|
|
727
|
+
async ethereumWithdraw(requestParameters: EthereumWithdrawOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EthereumWithdraw200Response> {
|
|
728
|
+
const response = await this.ethereumWithdrawRaw(requestParameters, initOverrides);
|
|
729
|
+
return await response.value();
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* @export
|
|
736
|
+
*/
|
|
737
|
+
export const EthereumGetValidatorsStateEnum = {
|
|
738
|
+
Pending: 'pending',
|
|
739
|
+
Queued: 'queued',
|
|
740
|
+
Activating: 'activating',
|
|
741
|
+
Active: 'active',
|
|
742
|
+
ExitPending: 'exit_pending',
|
|
743
|
+
Exiting: 'exiting',
|
|
744
|
+
Withdrawn: 'withdrawn'
|
|
745
|
+
} as const;
|
|
746
|
+
export type EthereumGetValidatorsStateEnum = typeof EthereumGetValidatorsStateEnum[keyof typeof EthereumGetValidatorsStateEnum];
|
|
747
|
+
/**
|
|
748
|
+
* @export
|
|
749
|
+
*/
|
|
750
|
+
export const EthereumGetValidatorsConsensusLayerStateEnum = {
|
|
751
|
+
PendingInitialized: 'pending_initialized',
|
|
752
|
+
PendingQueued: 'pending_queued',
|
|
753
|
+
ActiveOngoing: 'active_ongoing',
|
|
754
|
+
ActiveExiting: 'active_exiting',
|
|
755
|
+
ActiveSlashed: 'active_slashed',
|
|
756
|
+
ExitedUnslashed: 'exited_unslashed',
|
|
757
|
+
ExitedSlashed: 'exited_slashed',
|
|
758
|
+
WithdrawalPossible: 'withdrawal_possible',
|
|
759
|
+
WithdrawalDone: 'withdrawal_done',
|
|
760
|
+
Unknown: 'unknown'
|
|
761
|
+
} as const;
|
|
762
|
+
export type EthereumGetValidatorsConsensusLayerStateEnum = typeof EthereumGetValidatorsConsensusLayerStateEnum[keyof typeof EthereumGetValidatorsConsensusLayerStateEnum];
|
|
763
|
+
/**
|
|
764
|
+
* @export
|
|
765
|
+
*/
|
|
766
|
+
export const EthereumGetValidatorsIndexerStateEnum = {
|
|
767
|
+
Planned: 'planned',
|
|
768
|
+
Active: 'active',
|
|
769
|
+
Deactivated: 'deactivated',
|
|
770
|
+
Pending: 'pending',
|
|
771
|
+
Unknown: 'unknown'
|
|
772
|
+
} as const;
|
|
773
|
+
export type EthereumGetValidatorsIndexerStateEnum = typeof EthereumGetValidatorsIndexerStateEnum[keyof typeof EthereumGetValidatorsIndexerStateEnum];
|