Hedera.ContractId (Hedera v0.2.0)

Copy Markdown View Source

A Hedera Smart Contract Service contract identifier shard.realm.num.

Summary

Functions

Parse "shard.realm.num".

Encode as a ContractID protobuf message (the contractNum variant).

Format as "shard.realm.num".

Types

t()

@type t() :: %Hedera.ContractId{
  num: non_neg_integer(),
  realm: non_neg_integer(),
  shard: non_neg_integer()
}

Functions

parse(string)

@spec parse(binary()) :: t()

Parse "shard.realm.num".

to_proto(contract_id)

@spec to_proto(t()) :: binary()

Encode as a ContractID protobuf message (the contractNum variant).

to_string(contract_id)

@spec to_string(t()) :: binary()

Format as "shard.realm.num".