Authorization is required to use this endpoint

To get your API key follow the instructions HERE.

Using this endpoint, we can get what contracts user (in this endpont - caller) self-destructed or we can go the other way around, for example, we can pinpoint exactly when the contract was destructed.


The example of Self-Destruct API endpoint request to get the exact time when was the contract self-desctructed.

curl --request GET \
--url 'https://api.parsiq.net/tsunami/eip155-80001/v1/contracts/self-destructs?contract=0x65f43f86614e6e9884352a068ad67ea7d16ec06c&block_number_start=0&block_number_end=latest' \
--header 'Authorization: Bearer YOUR_API_KEY'

This will retrieve every contract that caller self-destructed.

curl --request GET \
--url 'https://staging-api.parsiq.net/tsunami/eip155-80001/v1/contracts/self-destructs?caller=0x43f5a4422cce46b741f4e194e2b6df9a8baa2dc0&block_number_start=0&block_number_end=latest' \
--header 'Authorization: Bearer YOUR_API_KEY'


At least one of the following parameters must be present:
sender, contract, origin
The range also must be defined by block_number, timestamp or block_hash:
[block_number_start, block_number_end]; [timestamp_start, timestamp_end]; [block_hash].
(More about Range)

Click Try It! to start a request and see the response here!