2023-09-29 21:42:07 +00:00
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
2023-12-04 23:13:52 +00:00
|
|
|
func (a *ApiHandler) poolVoluntaryExits(r *http.Request) (*beaconResponse, error) {
|
|
|
|
return newBeaconResponse(a.operationsPool.VoluntaryExistsPool.Raw()), nil
|
2023-09-29 21:42:07 +00:00
|
|
|
}
|
|
|
|
|
2023-12-04 23:13:52 +00:00
|
|
|
func (a *ApiHandler) poolAttesterSlashings(r *http.Request) (*beaconResponse, error) {
|
|
|
|
return newBeaconResponse(a.operationsPool.AttesterSlashingsPool.Raw()), nil
|
2023-09-29 21:42:07 +00:00
|
|
|
}
|
|
|
|
|
2023-12-04 23:13:52 +00:00
|
|
|
func (a *ApiHandler) poolProposerSlashings(r *http.Request) (*beaconResponse, error) {
|
|
|
|
return newBeaconResponse(a.operationsPool.ProposerSlashingsPool.Raw()), nil
|
2023-09-29 21:42:07 +00:00
|
|
|
}
|
2023-10-01 15:16:55 +00:00
|
|
|
|
2023-12-04 23:13:52 +00:00
|
|
|
func (a *ApiHandler) poolBlsToExecutionChanges(r *http.Request) (*beaconResponse, error) {
|
|
|
|
return newBeaconResponse(a.operationsPool.BLSToExecutionChangesPool.Raw()), nil
|
2023-10-01 15:16:55 +00:00
|
|
|
}
|
|
|
|
|
2023-12-04 23:13:52 +00:00
|
|
|
func (a *ApiHandler) poolAttestations(r *http.Request) (*beaconResponse, error) {
|
|
|
|
return newBeaconResponse(a.operationsPool.AttestationsPool.Raw()), nil
|
2023-10-01 15:16:55 +00:00
|
|
|
}
|