Encode state overrides
Contracts
Encode state overrides
Encode state overrides of the smart contract.
POST
Encode state overrides
Authorizations
An API key is a token that a client provides when making API calls. The key can be sent as a request header:
curl 'https://api.tenderly.co/api/v1/account/${TENDERLY_ACCOUNT_SLUG}/project/${TENDERLY_PROJECT_SLUG}/simulate' \
-H 'X-Access-Key: ${TENDERLY_ACCESS_KEY}' \
...
Learn how to generate API access tokens at Tenderly Docs.
Path Parameters
Account slug of the user
Project slug of the account
Body
application/json
Encode contract state overrides payload
ID of the network.
Example:
"1"
Overrides for specific state objects.
Example:
{
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": {
"value": {
"balanceAndBlacklistStates[0xAd4A638e2476C5645c1adF659EA8105FE3C1031e]": "1000"
}
}
}
Number of the block to be used for the encoding states.
Example:
"-1"
Response
A successful response.
An object with details about state overrides.