Contract
The Contract
entity offers a normalized representation of the Casper Network Contract without including entry point hashes, which can be queried separately using the Contract entry point API. Additionally, this entity omits the contract's named keys but utilizes them for identifying the contract's type.
Properties
The Contract
entity has the following properties:
Property | Type | Description |
---|---|---|
|
| Contract hash represented as a hexadecimal string. Unique contract identifier |
|
| Hash of the contract package, this contract version is a part of, represented as a hexadecimal string |
|
| Height of the block in which the contract was deployed to the network |
|
| Hash of the deploy that deployed the contract to the network represented as a hexadecimal string |
|
| |
|
| Timestamp indicating when the contract was created |
|
| Version number associated with the contract |
|
| Indicates whether the contract is currently disabled |
|
| Timestamp indicating when the contract was created |
|
| Version number associated with the contract |
|
| Indicates whether the contract is currently disabled |
Example
Optional properties
Depending on the endpoint, the following optional properties may be included in the Contract
entity:
Property | Type | Description |
---|---|---|
| Contract package, this contract version is a part of |
Relations
The Contract
entity has the following relations with other entities:
Entity | Mapping property | Description |
---|---|---|
| Contracts are deployed to the network with a deploy call. Deploys can be the contract call | |
| Contracts can have endpoints | |
| Contracts are different versions of the same smart contract under the contract package |
Endpoints
The Contract
entity has the following endpoints:
Relation endpoints
The Contract
entity has the following relation endpoints:
Last updated