Get account deploys

Get deploys by the caller account public key.

GET /accounts/{public_key}/deploys

Query params

Query param
Description

contract_package_hash

Contract package hash of the called contract

contract_hash

Called contract hash

contract_entrypoint_id

Called entry point ID

from_block_height

From block height range

to_block_height

To block height range

Sorting

Property
Description

timestamp

Sort deploys by timestamp

Default sorting is timestamp DESC

Optional properties

Property
Type
Description

account_info

Account info provided by the deploy caller

centralized_account_info

Account information available for known accounts provided by CSPR.cloud team

caller_cspr_name

string

Primary CSPR.name of the deploy caller account

contract_package

ContractPackage called by deploy.

contract

Contract called by deploy.

contract_entrypoint

ContractEntrypoint called by deploy.

rate

float32

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

transfers

List of Transfer entities.

nft_token_actions

List of NFTTokenAction entities.

ft_token_actions

List of Fungible token action entities.

Response

PaginatedResponse<Deploy>

Example

curl -X 'GET' \
  'https://api.testnet.cspr.cloud/accounts/020304811a7b142c32860cb1c114f23b0754215918d819f485b0a201af6cde70fa6c/deploys' \
  -H 'accept: application/json' \
  -H 'authorization: 55f79117-fc4d-4d60-9956-65423f39a06a'
{
  "item_count": 21,
  "page_count": 3,
  "data": [
    {
      "args": {
        "amount": {
          "cl_type": "U512",
          "parsed": "2500000000"
        },
        "id": {
          "cl_type": {
            "Option": "U64"
          },
          "parsed": null
        },
        "target": {
          "cl_type": {
            "ByteArray": 32
          },
          "parsed": "1b04049f2d03ad4e9bf31f7c65e53521ab688e9bf039716170b3cb4334f5deff"
        }
      },
      "block_hash": "d48d3e68f8ae373bc1b6aebaedad78c5d0d90b55231f0003686ce55d5a3eb0ee",
      "block_height": 2550963,
      "caller_hash": "048a54220799a48171743407c086668bdcc788e2a31e4185fe52d0682634f888",
      "caller_public_key": "020304811a7b142c32860cb1c114f23b0754215918d819f485b0a201af6cde70fa6c",
      "consumed_gas": "100000000",
      "contract_hash": "010c3fe81b7b862e50c77ef9a958a05bfa98444f26f96f23d37a13c96244cfb7",
      "contract_package_hash": "9824d60dc3a5c44a20b9fd260a412437933835b52fc683d8ae36e4ec2114843e",
      "cost": "100000000",
      "deploy_hash": "735bf84a6f4b0ec26e01afdc8abc83b02d8ec60ec98a497f41452c694fe0e987",
      "entry_point_id": 10,
      "error_message": null,
      "execution_type_id": 6,
      "gas_price_limit": 1,
      "is_standard_payment": false,
      "payment_amount": "100000000",
      "pricing_mode_id": 0,
      "refund_amount": "0",
      "runtime_type_id": 0,
      "status": "processed",
      "timestamp": "2024-02-05T11:41:35Z",
      "version_id": 0
    },
    {
      "args": {
        "amount": {
          "cl_type": "U512",
          "parsed": "2500000000"
        },
        "id": {
          "cl_type": {
            "Option": "U64"
          },
          "parsed": null
        },
        "target": {
          "cl_type": {
            "ByteArray": 32
          },
          "parsed": "536345751b7c6c6299d5ef10862d76736ed062bc32c1dabcd1179c06469d93ca"
        }
      },
      "block_hash": "d76b4ce5281f2306911a0e5e9ac0b29f1f4daf36f4636e78599ce64a7f7528a1",
      "block_height": 2404577,
      "caller_hash": "048a54220799a48171743407c086668bdcc788e2a31e4185fe52d0682634f888",
      "caller_public_key": "020304811a7b142c32860cb1c114f23b0754215918d819f485b0a201af6cde70fa6c",
      "consumed_gas": "100000000",
      "contract_hash": "010c3fe81b7b862e50c77ef9a958a05bfa98444f26f96f23d37a13c96244cfb7",
      "contract_package_hash": "9824d60dc3a5c44a20b9fd260a412437933835b52fc683d8ae36e4ec2114843e",
      "cost": "100000000",
      "deploy_hash": "88461218a5e972fcda1d764d7cc4edb2e0c3a538123b97890d484f43c55935f5",
      "entry_point_id": 10,
      "error_message": null,
      "execution_type_id": 6,
      "gas_price_limit": 1,
      "is_standard_payment": false,
      "payment_amount": "100000000",
      "pricing_mode_id": 0,
      "refund_amount": "0",
      "runtime_type_id": 0,
      "status": "processed",
      "timestamp": "2024-01-08T15:24:47Z",
      "version_id": 0
    },
    ...
    {
      "args": {
        "amount": {
          "cl_type": "U512",
          "parsed": "7000000000"
        },
        "id": {
          "cl_type": {
            "Option": "U64"
          },
          "parsed": 1684328907917
        },
        "target": {
          "cl_type": "PublicKey",
          "parsed": "02027bc80ed37801e3eeab2a4e98e2d0ef4b93da8d416e91b17d6f5ebbc4752d6198"
        }
      },
      "block_hash": "cc9395694d89630635c4bf208efe450aefdfa160d849c37cdbb8c3516c3b43eb",
      "block_height": 1730104,
      "caller_hash": "048a54220799a48171743407c086668bdcc788e2a31e4185fe52d0682634f888",
      "caller_public_key": "020304811a7b142c32860cb1c114f23b0754215918d819f485b0a201af6cde70fa6c",
      "consumed_gas": "100000000",
      "contract_hash": "010c3fe81b7b862e50c77ef9a958a05bfa98444f26f96f23d37a13c96244cfb7",
      "contract_package_hash": "9824d60dc3a5c44a20b9fd260a412437933835b52fc683d8ae36e4ec2114843e",
      "cost": "100000000",
      "deploy_hash": "4a114e03c84eb098afd0b6b5d09b654911e93624e07339d29e7418f1d15a0212",
      "entry_point_id": 10,
      "error_message": null,
      "execution_type_id": 6,
      "gas_price_limit": 1,
      "is_standard_payment": false,
      "payment_amount": "100000000",
      "pricing_mode_id": 0,
      "refund_amount": "0",
      "runtime_type_id": 0,
      "status": "processed",
      "timestamp": "2023-05-17T13:08:49Z",
      "version_id": 0
    }
  ]
}

Last updated