Class ModuleBytesDeployItem
Deploy item with the capacity to contain executable code (e.g. a contract).
Inherited Members
Namespace: Casper.Network.SDK.Types
Assembly: Casper.Network.SDK.dll
Syntax
public class ModuleBytesDeployItem : ExecutableDeployItem
Constructors
| Edit this page View SourceModuleBytesDeployItem()
Declaration
public ModuleBytesDeployItem()
ModuleBytesDeployItem(byte[], List<NamedArg>)
Creates a deploy item with binary code to execute and a list of named arguments.
Declaration
public ModuleBytesDeployItem(byte[] moduleBytes, List<NamedArg> args = null)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | moduleBytes | |
| List<NamedArg> | args |
ModuleBytesDeployItem(BigInteger)
Creates a deploy item to specify a payment amount with origin the main purse of the caller's account.
Declaration
public ModuleBytesDeployItem(BigInteger amount)
Parameters
| Type | Name | Description |
|---|---|---|
| BigInteger | amount | Payment amount in motes |
Properties
| Edit this page View SourceModuleBytes
wasm Bytes
Declaration
[JsonPropertyName("module_bytes")]
[JsonConverter(typeof(HexBytesConverter))]
public byte[] ModuleBytes { get; init; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Methods
| Edit this page View SourceJsonPropertyName()
Declaration
public override string JsonPropertyName()
Returns
| Type | Description |
|---|---|
| string |
Overrides
| Edit this page View SourceTag()
Declaration
public override byte Tag()
Returns
| Type | Description |
|---|---|
| byte |