Get deploy

Get deploy by its hash.

GET /deploys/{deploy_hash}

Query params

None

Sorting

None

Optional properties

PropertyTypeDescription

contract_package

ContractPackage

ContractPackage entity.

contract

Contract

Contract entity.

contract_entrypoint

ContractEntrypoint

ContractEntrypoint entity.

rate

float32

CSPR rate for specified currency that was relevant at the moment of deploy creation.

Response

Deploy

Example

curl -X 'GET' \
  'https://api.testnet.cspr.cloud/deploys/88461218a5e972fcda1d764d7cc4edb2e0c3a538123b97890d484f43c55935f5' \
  -H 'accept: application/json' \
  -H 'authorization: 55f79117-fc4d-4d60-9956-65423f39a06a'
{
  "data": {
    "deploy_hash": "88461218a5e972fcda1d764d7cc4edb2e0c3a538123b97890d484f43c55935f5",
    "block_hash": "d76b4ce5281f2306911a0e5e9ac0b29f1f4daf36f4636e78599ce64a7f7528a1",
    "caller_public_key": "020304811a7b142c32860cb1c114f23b0754215918d819f485b0a201af6cde70fa6c",
    "execution_type_id": 6,
    "contract_package_hash": null,
    "contract_hash": null,
    "entry_point_id": null,
    "args": {
      "amount": {
        "cl_type": "U512",
        "parsed": "2500000000"
      },
      "id": {
        "cl_type": {
          "Option": "U64"
        },
        "parsed": null
      },
      "target": {
        "cl_type": {
          "ByteArray": 32
        },
        "parsed": "536345751b7c6c6299d5ef10862d76736ed062bc32c1dabcd1179c06469d93ca"
      }
    },
    "payment_amount": "100000000",
    "cost": "100000000",
    "error_message": null,
    "status": "processed",
    "timestamp": "2024-01-08T15:24:47Z"
  }
}

Last updated