function: getServiceProviderDetails(address)

eth_call data for getServiceProviderDetails(address)

ABI

{
      "constant": true,
      "inputs": [
        {
          "internalType": "address",
          "name": "_serviceProvider",
          "type": "address"
        }
      ],
      "name": "getServiceProviderDetails",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "deployerStake",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "deployerCut",
          "type": "uint256"
        },
        {
          "internalType": "bool",
          "name": "validBounds",
          "type": "bool"
        },
        {
          "internalType": "uint256",
          "name": "numberOfEndpoints",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "minAccountStake",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "maxAccountStake",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },

Reproduce Call

Event that feeds call input

Test Calls

# BLOCK #11273929 -> AC06C9 (!! DIVERGENT BLOCK !!)
curl -X POST \\
--data '{"jsonrpc":"2.0","method":"eth_call","params": [{"data": "0xf273e9a8000000000000000000000000ccd0855b67f89ed9058e3bf2926d5380182bbbfc","to": "0xD17A9bc90c582249e211a4f4b16721e7f65156c8"},"0xAC06C9"],"id":1}' \\
-H "content-type: Application/json" \\
<https://eth-mainnet.alchemyapi.io/v2/mWSH9YlhpXfXymzLxptC1TE2CIy2QuMA>

{"jsonrpc": "2.0", "id": 1, "result": "0x000000000000000000000000000000000000000000002a5a058fc295ed00000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"}

{
  "0": {
    "_hex": "0x2a5a058fc295ed000000"
  },
  "1": {
    "_hex": "0x64"
  },
  "2": true,
  "3": {
    "_hex": "0x00"
  },
  "4": {
    "_hex": "0x00"
  },
  "5": {
    "_hex": "0x00"
  }
}

# LATEST BLOCK
curl -X POST \\
--data '{"jsonrpc":"2.0","method":"eth_call","params": [{"data": "0xf273e9a8000000000000000000000000ccd0855b67f89ed9058e3bf2926d5380182bbbfc","to": "0xD17A9bc90c582249e211a4f4b16721e7f65156c8"},"latest"],"id":1}' \\
-H "content-type: Application/json" \\
<https://eth-mainnet.alchemyapi.io/v2/mWSH9YlhpXfXymzLxptC1TE2CIy2QuMA>

{"jsonrpc": "2.0", "id": 1, "result": "0x000000000000000000000000000000000000000000002b550871ad3cf077487d000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000002a5a058fc295ed000000000000000000000000000000000000000000000000084595161401484a000000"}

{
  "0": {
    "_hex": "0x2b550871ad3cf077487d"
  },
  "1": {
    "_hex": "0x64"
  },
  "2": true,
  "3": {
    "_hex": "0x01"
  },
  "4": {
    "_hex": "0x2a5a058fc295ed000000" -> 2.0E+23
  },
  "5": {
    "_hex": "0x084595161401484a000000" -> 1.0E+25
  }
}

# BLOCK #11273928 -> AC06C8
curl -X POST \\
--data '{"jsonrpc":"2.0","method":"eth_call","params": [{"data": "0xf273e9a8000000000000000000000000ccd0855b67f89ed9058e3bf2926d5380182bbbfc","to": "0xD17A9bc90c582249e211a4f4b16721e7f65156c8"},"0xAC06C8"],"id":1}' \\
-H "content-type: Application/json" \\
<https://eth-mainnet.alchemyapi.io/v2/mWSH9YlhpXfXymzLxptC1TE2CIy2QuMA>

{"jsonrpc": "2.0", "id": 1, "result": "0x000000000000000000000000000000000000000000002a5a058fc295ed000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000002a5a058fc295ed000000000000000000000000000000000000000000000000027b46536c66c8e3000000"}

{
  "0": {
    "_hex": "0x2a5a058fc295ed000000"
  },
  "1": {
    "_hex": "0x64"
  },
  "2": true,
  "3": {
    "_hex": "0x01"
  },
  "4": {
    "_hex": "0x2a5a058fc295ed000000" -> 2.0E+23
  },
  "5": {
    "_hex": "0x027b46536c66c8e3000000" -> 3.0E+24
  }
}

# BLOCK #11273927 -> AC06C7
curl -X POST \\
--data '{"jsonrpc":"2.0","method":"eth_call","params": [{"data": "0xf273e9a8000000000000000000000000ccd0855b67f89ed9058e3bf2926d5380182bbbfc","to": "0xD17A9bc90c582249e211a4f4b16721e7f65156c8"},"0xAC06C7"],"id":1}' \\
-H "content-type: Application/json" \\
<https://eth-mainnet.alchemyapi.io/v2/mWSH9YlhpXfXymzLxptC1TE2CIy2QuMA>

{"jsonrpc": "2.0", "id": 1, "result": "0x000000000000000000000000000000000000000000002a5a058fc295ed000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000002a5a058fc295ed000000000000000000000000000000000000000000000000027b46536c66c8e3000000"}

{
  "0": {
    "_hex": "0x2a5a058fc295ed000000"
  },
  "1": {
    "_hex": "0x64"
  },
  "2": true,
  "3": {
    "_hex": "0x01"
  },
  "4": {
    "_hex": "0x2a5a058fc295ed000000" -> 2.0E+23
  },
  "5": {
    "_hex": "0x027b46536c66c8e3000000" -> 3.0E+24
  }
}

# BLOCK #11273930 -> AC06CA
curl -X POST \\
--data '{"jsonrpc":"2.0","method":"eth_call","params": [{"data": "0xf273e9a8000000000000000000000000ccd0855b67f89ed9058e3bf2926d5380182bbbfc","to": "0xD17A9bc90c582249e211a4f4b16721e7f65156c8"},"0xAC06CA"],"id":1}' \\
-H "content-type: Application/json" \\
<https://eth-mainnet.alchemyapi.io/v2/mWSH9YlhpXfXymzLxptC1TE2CIy2QuMA>

{"jsonrpc": "2.0", "id": 1, "result": "0x000000000000000000000000000000000000000000002a5a058fc295ed00000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"}

{
  "0": {
    "_hex": "0x2a5a058fc295ed000000"
  },
  "1": {
    "_hex": "0x64"
  },
  "2": true,
  "3": {
    "_hex": "0x00"
  },
  "4": {
    "_hex": "0x00"
  },
  "5": {
    "_hex": "0x00"
  }
}

Call cache comparison

Call cache for block 11273929 for contract = 0xD17A9bc90c582249e211a4f4b16721e7f65156c8

# Disputed Indexer
select * from eth_call_cache where contract_address = decode('D17A9bc90c582249e211a4f4b16721e7f65156c8','hex') and block_number = 11273929;
-[ RECORD 1 ]----+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
id               | \\x35ad8633ee1a4fab086e471df15b570b6c43a8b09a24da7178793654e00a4b6a
return_value     | \\x000000000000000000000000000000000000000000002a5a058fc295ed000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000002a5a058fc295ed000000000000000000000000000000000000000000000000084595161401484a000000
contract_address | \\xd17a9bc90c582249e211a4f4b16721e7f65156c8
block_number     | 11273929

# Reference Indexers (all 4 agree)
select * from eth_call_cache where contract_address = decode('35ad8633ee1a4fab086e471df15b570b6c43a8b09a24da7178793654e00a4b6a','hex') and block_number = 11273929;
-[ RECORD 1 ]----+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
id               | \\x35ad8633ee1a4fab086e471df15b570b6c43a8b09a24da7178793654e00a4b6a
return_value     | \\x000000000000000000000000000000000000000000002a5a058fc295ed00000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
contract_address | \\xd17a9bc90c582249e211a4f4b16721e7f65156c8
block_number     | 11273929