Skip to main content

post-eth-v1-beacon-pool-attester_slashings


POST /eth/v1/beacon/pool/attester_slashings

Submit AttesterSlashings object to node's pool.

Uploads the AttesterSlashing object to the node's pool; in the event that it passes validation, the node MUST broadcast it throughout the network.

Example Request and Result for /v1/beacon/pool/attester_slashings

In this section, we provide an illustrative example of a request made to retrieve details contents using the /v1/beacon/pool/attester_slashings endpoint. Additionally, we present the resulting response containing information about submiting AttesterSlashing object to node's pool.

Parameters

FieldType
attestation_#object
attesting_indicesarray<string>
signaturesstring
dataobject
slotstring
indexstring
beacon_block_rootstring
sourceobject
epochstring
rootstring
targetobject
epochstring
rootstring
info

The example in this section uses a non-existing project id.

Make sure you replace it with your Ethereum Holesky Beacon endpoint when issuing the API calls.

Don't have a project id? Here's a straightforward guide on how to obtain one!

Submit AttesterSlashings object to node's pool.

POST https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/beacon/pool/attester_slashings

Request Body

NameTypeDescription
attestation_1*object
attesting_indices*array<string>1
signature*string0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505
data*object
slot*string1
index*string1
beacon_block_root*string0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2
source*object
epoch*string1
root*string0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2
target*object
epoch*string1
root*string0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2

Success

Curl Request example

curl -X 'POST' \
'https://eth-holesky-beacon.blastapi.io/<project_id>/eth/v1/beacon/pool/attester_slashings' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"attestation_1": {
"attesting_indices": [
"1"
],
"signature": "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505",
"data": {
"slot": "1",
"index": "1",
"beacon_block_root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2",
"source": {
"epoch": "1",
"root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
},
"target": {
"epoch": "1",
"root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
}
}
}'