Get contract entry point costs

Get deploys costs and payment amounts, aggregated by contract hash and entry point name

GET /contracts/{contract_hash}/entry-points/{entry_point_name}/costs

Query params

None

Sorting

None

Optional properties

None

Response

{
  "data": {
    "deploys_num": number,
    "since": datetime,
    "avg_cost": number,
    "min_cost": number,
    "max_cost": number,
    "avg_payment_amount": number,
    "min_payment_amount": number,
    "max_payment_amount": number
  }
}

Example

curl -X 'GET' \
  'https://api.testnet.cspr.cloud/contracts/93d923e336b20a4c4ca14d592b60e5bd3fe330775618290104f9beb326db7ae2/entry-points/activate_bid/costs' \
  -H 'accept: application/json' \
  -H 'authorization: 55f79117-fc4d-4d60-9956-65423f39a06a'
{
  "data": {
    "deploys_num": 100,
    "since": "2023-10-12T07:21:07Z",
    "avg_cost": 25009900,
    "min_cost": 10000,
    "max_cost": 2500000000,
    "avg_payment_amount": 19550007300,
    "min_payment_amount": 10000,
    "max_payment_amount": 950000000000
  }
}

Last updated