LogoLogo
CSPR.build Portal
1.1.x
1.1.x
  • Documentation
    • Introduction
    • Overview
      • Authorization
      • Rate limits and quotas
      • Pagination
      • Sorting
      • Filtering
      • Optional properties
      • Errors
    • Getting started
    • Highlights
      • Including related entities
      • Including CSPR rates
      • Including account info
      • Accessing auction data
      • Accessing token data
      • Accessing NFT data
      • De-anonymizing account hashes
      • De-anonymizing account purses
      • Receiving contract-level events
    • Changelog
  • REST API
    • Reference
    • Account
      • Get account
      • Get accounts
    • Account Info
      • Get account info
      • Get account infos
    • Auction metrics
      • Get auction metrics
    • Awaiting deploy
      • Create Awaiting Deploy
      • Add Awaiting Deploy signatures
      • Get Awaiting Deploy
    • Block
      • Get block
      • Get blocks
      • Get validator blocks
    • Bidder
      • Get bidder
      • Get bidders
    • Contract
      • Get contract
      • Get contracts
      • Get contracts by contract package
      • Get contract types
    • Contract entry point
      • Get contract entry points
      • Get contract entry point costs
    • Contract package
      • Get contract package
      • Get contract packages
      • Get account contract packages
    • Delegation
      • Get account delegations
      • Get validator delegations
    • Delegator reward
      • Get account delegator rewards
      • Get total validator delegators' rewards
    • Deploy
      • Get deploy
      • Get deploys
      • Get account deploys
      • Get block deploys
      • Get deploy execution types
    • Fungible token action
      • Get fungible token actions
      • Get fungible token action types
      • Get account fungible token actions
      • Get contract package fungible token actions
    • Fungible token ownership
      • Get account fungible token ownership
      • Get contract package fungible token ownership
    • Non-fungible token (NFT)
      • Get NFT
      • Get account NFTs
      • Get contract package NFTs
      • Get NFT standards
      • Get off-chain NFT metadata statuses
    • Non-fungible token (NFT) action
      • Get contract package NFT actions for a token
      • Get account NFT actions
      • Get contract package NFT actions
      • Get NFT action types
    • Non-fungible token (NFT) ownership
      • Get contract package NFT ownership
      • Get account NFT ownership
    • CSPR rate
      • Get the current currency rate
      • Get historical currency rates
      • Get currencies
    • CSPR supply
      • Get supply
    • Transfer
      • Get account transfers
      • Get deploy transfers
    • Validator
      • Get validator
      • Get validators
    • Validator performance
      • Get historical validator performance
      • Get historical average validator performance
      • Get historical average validators performance
    • Validator reward
      • Get validator rewards
      • Get validator total rewards
  • Streaming API
    • Reference
    • Account balance
    • Block
    • Contract
    • Contract package
    • Contract-level events
    • Deploy
    • Fungible token action
    • Non-fungible token (NFT)
    • Non-fungible token (NFT) action
    • Transfer
  • Casper Node API
    • Connecting with an SDK
Powered by GitBook
On this page
  • Query params
  • Sorting
  • Optional properties
  • Response
  • Example
  1. REST API
  2. Deploy

Get deploys

Get a paginated list of deploys.

GET /deploys

Query params

Query param
Description

caller_public_key

Deploy caller public key

block_hash

Hash of the deploy block

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

Deploy caller AccountInfo entity.

contract_package

ContractPackage entity.

contract

Contract entity.

contract_entrypoint

ContractEntrypoint entity.

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

Example

curl -X 'GET' \
  'https://api.testnet.cspr.cloud/deploys' \
  -H 'accept: application/json' \
  -H 'authorization: 55f79117-fc4d-4d60-9956-65423f39a06a'
{
  "item_count": 20,
  "page_count": 2,
  "data": [
    {
      "args": {
        "amount": {
          "cl_type": "U512",
          "parsed": "2500000000"
        },
        "id": {
          "cl_type": {
            "Option": "U64"
          },
          "parsed": null
        },
        "target": {
          "cl_type": {
            "ByteArray": 32
          },
          "parsed": "bb9b87e33a64af8fda37ceab67609b79500e8d88a2f5364f321fdc2d6ec1f74d"
        }
      },
      "block_hash": "a87896eeafadc85a9adb4ee4dd6bb8bc5d4edf8b1695f2999916324041443b03",
      "block_height": 2175890,
      "caller_public_key": "020304811a7b142c32860cb1c114f23b0754215918d819f485b0a201af6cde70fa6c",
      "contract_hash": null,
      "contract_package_hash": null,
      "cost": "100000000",
      "deploy_hash": "18be0ac6c551e3a80a27847004db4cf9614ac7104b6448c7be6418116c32569b",
      "entry_point_id": null,
      "error_message": null,
      "execution_type_id": 6,
      "payment_amount": "100000000",
      "status": "processed",
      "timestamp": "2023-11-03T14:33:27Z"
    },
    {
      "args": {
        "amount": {
          "cl_type": "U512",
          "parsed": "5000000000"
        },
        "id": {
          "cl_type": {
            "Option": "U64"
          },
          "parsed": 1684147006568
        },
        "target": {
          "cl_type": "PublicKey",
          "parsed": "020304811a7b142c32860cb1c114f23b0754215918d819f485b0a201af6cde70fa6c"
        }
      },
      "block_hash": "43ca28afa8ed3ee7ffbe97d3f47556663942e4fa7d8420f49b9f3a5e1eec6a6e",
      "block_height": 1724562,
      "caller_public_key": "020304811a7b142c32860cb1c114f23b0754215918d819f485b0a201af6cde70fa6c",
      "contract_hash": null,
      "contract_package_hash": null,
      "cost": "100000000",
      "deploy_hash": "21945b6f126abc7de1e2d84a7161f101a7c19b22eb256dfa8e8b1d8886652ee6",
      "entry_point_id": null,
      "error_message": "ApiError::InvalidPurse [12]",
      "execution_type_id": 6,
      "payment_amount": "100000000",
      "status": "processed",
      "timestamp": "2023-05-15T10:36:59Z"
    },
    ...
    {
      "args": {
        "amount": {
          "cl_type": "U512",
          "parsed": "5000000000"
        },
        "id": {
          "cl_type": {
            "Option": "U64"
          },
          "parsed": 1684318398541
        },
        "target": {
          "cl_type": "PublicKey",
          "parsed": "0203286173807276184a856010020a78df0ddf617364936b6e15efb6c1bae2f228bb"
        }
      },
      "block_hash": "f073ab064a7545593d71a8af82021b004be3a23c7ad47c5b27a4287ab894c396",
      "block_height": 1729784,
      "caller_public_key": "020304811a7b142c32860cb1c114f23b0754215918d819f485b0a201af6cde70fa6c",
      "contract_hash": null,
      "contract_package_hash": null,
      "cost": "100000000",
      "deploy_hash": "6799726d44a7fd492fb284333dac7133902e405b760bf9dfe38998f995eb7117",
      "entry_point_id": null,
      "error_message": null,
      "execution_type_id": 6,
      "payment_amount": "100000000",
      "status": "processed",
      "timestamp": "2023-05-17T10:13:46Z"
    }
  ]
}
PreviousGet deployNextGet account deploys

Last updated 11 months ago

[]

[]

[]

PaginatedResponse
<Deploy>
AccountInfo
ContractPackage
Contract
ContractEntrypoint
Transfer
NFTTokenAction
Fungible token action