erigon-pulse/cl/beacon/handler/pool.go

26 lines
983 B
Go
Raw Normal View History

package handler
import (
"net/http"
)
2024-01-01 20:11:31 +00:00
func (a *ApiHandler) poolVoluntaryExits(w http.ResponseWriter, r *http.Request) (*beaconResponse, error) {
return newBeaconResponse(a.operationsPool.VoluntaryExistsPool.Raw()), nil
}
2024-01-01 20:11:31 +00:00
func (a *ApiHandler) poolAttesterSlashings(w http.ResponseWriter, r *http.Request) (*beaconResponse, error) {
return newBeaconResponse(a.operationsPool.AttesterSlashingsPool.Raw()), nil
}
2024-01-01 20:11:31 +00:00
func (a *ApiHandler) poolProposerSlashings(w http.ResponseWriter, r *http.Request) (*beaconResponse, error) {
return newBeaconResponse(a.operationsPool.ProposerSlashingsPool.Raw()), nil
}
2024-01-01 20:11:31 +00:00
func (a *ApiHandler) poolBlsToExecutionChanges(w http.ResponseWriter, r *http.Request) (*beaconResponse, error) {
return newBeaconResponse(a.operationsPool.BLSToExecutionChangesPool.Raw()), nil
}
2024-01-01 20:11:31 +00:00
func (a *ApiHandler) poolAttestations(w http.ResponseWriter, r *http.Request) (*beaconResponse, error) {
return newBeaconResponse(a.operationsPool.AttestationsPool.Raw()), nil
}