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