GET
/
chain
/
{chain-id}
/
contract
/
{contract-address}
/
logs
curl --request GET \
  --url https://evm.preview-api.modular.cloud/v1/chain/{chain-id}/contract/{contract-address}/logs
{
  "result": {
    "logs": [
      {
        "transactionHash": "<string>",
        "logIndex": 123,
        "blockNumber": "<string>"
      }
    ],
    "nextToken": "<string>"
  },
  "error": {
    "message": "<string>"
  }
}

Path Parameters

chain-id
string
required
contract-address
string
required

Query Parameters

maxResults
integer

default is 30

nextToken
string

Response

200 - application/json
Successful response
result
object
error
object