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
  • Optional properties
  • Query params
  • Events
  • Response
  • Example
  1. Streaming API

Deploy

PreviousContract-level eventsNextFungible token action

Last updated 11 months ago

The Block stream provides updates about newly executed deploys

GET /deploys

Optional properties

None

Query params

Property
Type
Description

contract_package_hash

string

Comma-separated list of contract package hashes

contract_hash

string

Comma-separated list of contract hashes

caller_public_key

string

Comma-separated list of deploy caller public keys

contract_entrypoint_id

string

Comma-separated list of uint entrypoint ids

deploy_hash

string

Comma-separated list of deploy hashes

Events

Event
Description

created

Notifies about a newly executed deploy

Response

Example

wscat -c 'wss://streaming.testnet.cspr.cloud/deploys?contract_package_hash=d2a30f815dab2e991e1ab5aa3474d5fd8cd6ee877678071523ad746f91a5042e' \
  -H 'authorization: 55f79117-fc4d-4d60-9956-65423f39a06a'
{
  "data": {
    "deploy_hash": "62972eddc6fdc03b7ec53e52f7da7e24f01add9a74d68e3e21d924051c43f126",
    "block_hash": "556e176cda8e84a889c3a5a96d0710aca8fb0f7c9ad86536149d7f776b7409da",
    "caller_public_key": "01b35a345e031fbcfbcf017f70476249afe7fbb07ab84a774601010213d121a37d",
    "execution_type_id": 2,
    "contract_package_hash": "d2a30f815dab2e991e1ab5aa3474d5fd8cd6ee877678071523ad746f91a5042e",
    "contract_hash": "9cefe49ff34d29a5713fdf2de3f9c3f3cb3c5226ced0607bdf375f5d2497d8b6",
    "entry_point_id": 1,
    "args": {
      "recipient": {
        "cl_type": "Key",
        "parsed": {
          "Account": "account-hash-f2af240a5aa234d6e295ff65b011126dc002f655b1034f869f38b7b2ba60e450"
        }
      },
      "token_ids": {
        "cl_type": {
          "List": "U256"
        },
        "parsed": [
          "271"
        ]
      },
      "token_metas": {
        "cl_type": {
          "List": {
            "Map": {
              "key": "String",
              "value": "String"
            }
          }
        },
        "parsed": [
          [
            {
              "key": "background",
              "value": "Sky Lightning"
            },
            {
              "key": "mythical",
              "value": "Shadow Wings"
            },
            {
              "key": "body",
              "value": "Brown"
            },
            {
              "key": "image",
              "value": "https://kunft-assets.s3.amazonaws.com/4.God+Female/output/46.png"
            }
          ]
        ]
      }
    },
    "payment_amount": "1000000000",
    "cost": "785034700",
    "error_message": null,
    "status": "processed",
    "timestamp": "2022-11-08T18:13:33Z"
  },
  "action": "created",
  "extra": {
    "entry_point_action_id": null,
    "entry_point_name": "undelegate"
  },
  "timestamp": "2024-02-15T10:33:11.00557279Z"
}
WebSocketMessage
<Deploy>