curl https://mainnet.casper.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"id":1,"jsonrpc":"2.0","method":"chain_get_block_transfers","params":[]}'
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
This method returns a state root hash at a given Block. If you do not specify a block_identifier, you will receive the highest state root hash.
This method will use 10
Compute Units.
block_identifier
- object
the block identifier hash or height [BlockIdentifier]
api_version
- string
RPC API version
block_hash
- string
hash of the block
transfers
- list of block Transfers
This method returns the era summary at a given Block. If you do not specify a block_identifier, you will receive the era summary at the highest state root hash.
This method will use 2500
Compute Units.
block_identifier
- object
the block identifier hash or height [BlockIdentifier]
api_version
- string
RPC API version
era_summary
- object
The era summary (if found)
This method returns the JSON representation of a Block from the network.
This method will use 15
Compute Units.
block_identifier
- object
the block identifier hash or height [BlockIdentifier]
api_version
- string
RPC API version
block
- JSON representation of a block [reference]
body
deploy_hashes
- list of hex-encoded Hashes
proposer
- string
hex-encoded public key including algorithm tag prefix
transfer_hashes
- list of hex-encoded Hashes
hash
- string
hash of the block
header
accumulated_seed
- string
accumulated seed hash digest
body_hash
- string
body hash digest
era_end
- integer
EraID
era_id
- integer
EraID
height
- integer
block height
parent_hash
- string
hash of the parent block
protocol_version
- string
Casper Platform protocol version
random_bit
- boolean
randomness bit
state_root_hash
- string
the state root hash digest
timestamp
- string
RFC 3339 timestamp
proofs
- list of proofs
public_key
- string
hex-encoded public key including algorithm tag prefix
signature
- string
hex-encoded cryptographic signature, including the algorithm tag prefix
This method returns a list of peers connected to the node.
This method will use 15
Compute Units.
api_version
- string
RPC API version
peers
- map
of peer IDs to network addresses
address
- integer
network address
node_id
- integer
peer ID
This method returns an EraInfo from the network. Only the last Block in an era, known as a switch block, will contain an era_summary.
This method will use 2500
Compute Units.
block_identified
- hash
(*optional) If you do not supply a block_identifier
, the returned information will be the most recent Block.
api_version
- string
RPC API version
era_summary
- Summary of an era
block_hash
- string
hash of the block
era_id
- integer
EraID
merkle_proof
- string
A merkle proof is a construction created using a merkle tree that allows verification of the associated hashes
state_root_hash
- string
the state root hash digest
stored_value
- object
See [StoredValue]
This method returns a state root hash at a given Block. If you do not specify a block_identifier, you will receive the highest state root hash.
This method will use 10
.
block_identifier
- object
the block identifier hash or height []
api_version
- string
RPC API version
state_root_hash
- string
hex-encoded hash digest
This is the only means by which users can send their compiled WASM (as part of a Deploy) to a node on a Casper network.
This method will use 300
.
deploy
- object
an item containing a smart contract along with the requester's signature(s)
[]
api_version
- string
RPC API version
deploy_hash
- string
hex-encoded Deploy hash
This method returns the current status of a node.
This method will use 15
.
api_version
- string
RPC API version
build_version
- string
Compiled node version.
chainspec_name
- string
Chainspec name, used to identify the currently connected network.
last_added_block_info
- The minimal info of the last Block from the linear chain.
creator
- Hex-encoded cryptographic public key, including the algorithm tag prefix.
era_id
- integer
EraID
height
- integer
block height
state_root_hash
- string
the state root hash digest
timestamp
- string
RFC 3339 timestamp
next_upgrade
- Information about the next scheduled upgrade
activation_point
- era_id
or timestamp
The first era to which the associated protocol version applies
protocol_version
- Casper Platform protocol version.
our_public_signing_key
- string
Our public signing key.
peers
- map
of peer IDs to network addresses
address
- integer
network address
node_id
- integer
peer ID
round_length
- integer
The next round length if this node is a validator. A round length is the amount of time it takes to reach consensus on proposing a Block.
starting_state_root_hash
- string
The state root hash used at the start of the current session.
uptime
- Integer
Time that passed since the node has started.
This method retrieves a Deploy from a network. It requires a deploy_hash to query the Deploy.
This method will use 10
.
deploy_hash
- string
The deploy hash
finalized_approvals
- boolean
Determines whether to return the Deploy with the finalized approvals substituted (Optional)
api_version
- string
RPC API version
deploy
- item containing a smart contract along with the requester's signature(s)
approvals
- list of structs containing a signature and the public key of the signer
signature
- string
hex-encoded cryptographic signature, including the algorithm tag prefix
signer
- string
hex-encoded public key including algorithm tag prefix
hash
- hex-encoded Deploy hash
header
- the header portion of a Deploy
account
- string
hex-encoded public key including algorithm tag prefix
body_hash
- string
body hash digest
chain_name
- string
A user defined string
dependencies
- list of hex-encoded Deploy hash dependencies
gas_price
- integer
timestamp
- string
RFC 3339 timestamp
ttl
- string
human-readable duration
payment
- Represents possible variants of an executable Deploy
ModuleBytes
- Executable specified as raw bytes that represent WASM code and an instance of RuntimeArgs
module_bytes -
Hex-encoded raw WASM bytes. There are some special cases around passing module_bytes
for payment code
args
- list of runtime arguments
session
Transfer
- A native transfer which does not contain or reference a WASM code
args
- list of runtime arguments
execution_results
- list of ExecutionResult
block_hash
- hash of the block
result
- The result of executing a single Deploy
effect
transfers
- list of transfer addresses
cost
- string
This method allows for you to query for a value stored under certain keys in global state. You may query using either a Block hash or state root hash.
Note: Querying a purse's balance requires the use of state_get_balance
rather than any iteration of query_global_state
.
This method will use 15
.
state_identifier
- object
identifier used for the query
key
- string
casper_types::Key
as a formatted string
path
- array
path components starting from key as base
api_version
- string
RPC API version
block_header
- object
Block header if a Block hash was provided. (Not required)
stored_value
- object
stored value
merkle_proof
- string
merkle proof
operations
- list of
transforms
- list of
The speculative_exec
endpoint allows contract developers to test and debug their contracts against the live network using real production data.
Note: speculative_exec
executes a Deploy at a specified block.
This method will use 150
Compute Units.
block_identifier [object] [optional]. The block hash or height on top of which to execute the deploy. If not supplied, the most recent block will be used.
deploy [object] A Deploy consists of an item containing a smart contract along with the requester's signature(s).
api_version
String The RPC API version.
block_hash
Object The Block hash on top of which the deploy was executed.
execution_result
Object The map of Block hash to execution result.
Note for using examples below:
If you copy the Raw data from the cspr.live explorer, you will need to remove part of the Deploy
object from "api_version"
onwards in your request.
This method allows you to query for the balance of a purse using a PurseIdentifier and StateIdentifier.
This method will use 10
Compute Units.
purse_identifier [object] The identifier to obtain the purse corresponding to the balance query.
state_identifier [object] The state identifier used for the query; if none is passed the tip of the chain will be used.
api_version
- string
RPC API version
balance - object
The balance represented in motes.
This method returns an item from a Dictionary. Every dictionary has a seed URef, findable by using a dictionary_identifier.
This method will use 10
Compute Units.
state_root_hash
- object
state root hash digest
dictionary_identifier
- object
See [DictionaryIdentifier]
api_version
- string
RPC API version
dictionary_key
- string
the key under which the value is stored
merkle_proof
- string
A merkle proof is a construction created using a merkle tree that allows verification of the associated hashes
stored_value
- object
See [StoredValue]
This method returns the bids and validators as of either a specific Block (by height or hash). If you do not provide a block_identifier, state_get_auction_info will return info from most recent Block.
This method will use 3000
Compute Units.
block_identifier
- object
the block identifier hash or height [BlockIdentifier]
api_version
- string
RPC API version
auction_state
- object
the auction state
This method returns a JSON representation of an Account from the network. The block_identifier must refer to a Block after the Account's creation, or the method will return an empty response.
This method will use 15
.
public_key
- string
- hex-encoded cryptographic public key, including the algorithm tag prefix
block_identifier
- object
the block identifier hash or height []
api_version
- string
RPC API version
account_hash
- 32-byte hash derived from a supported PublicKey. Its role is to standardize keys that can vary in length
action_thresholds
- hresholds that have to be met when executing an action of a certain type
deployment
- integer
key_management
- integer
associated_keys
- list of keys granted limited permissions to an Account, for purposes such as multisig
account_hash
- 32-byte hash derived from a supported PublicKey. Its role is to standardize keys that can vary in length
weight
- integer
merkle_proof
- string
A merkle proof is a construction created using a merkle trie that allows verification of the associated hashes
account
- object
[]