Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
The Energy Web Chain (EWC) is a publicly-accessible-based blockchain formed as a software infrastructure with permissioned validators hosted by EWF Affiliate organizations. It relies on a Proof-of-Authority consensus mechanism with capacity for a 30x performance improvement and 2-3 orders of magnitude lower energy consumption compared to Ethereum.
In order to better understand the Energy Web Ecosystem, this section provides a high level introduction to the core concepts and terminologies which will be used across this documentation.
CORE CONCEPTS
Learn about the essential components and elements of the Energy Web Ecosystem.
LAYER X: EWX ECOSYSTEM
The EWX Ecosystem refers to all technologies and building blocks related to the EWX parachain.
PUBLIC LAYER: EWC ECOSYSTEM
The EWC Ecosystem refers to all technologies and solutions built on the Energy Web Chain.
SOFTWARE AS A SERVICE PLATFORM: LAUNCHPAD
Launchpad is a SaaS platform built by Energy Web and allowing users to develop various Energy Web solutions.
INDUSTRY SPECIFIC SOLUTIONS
Energy Web offers generic and customizable solutions of the Energy Sector such as Green Proofs and Digital Spine .
Energy Web X is an ecosystem comprising multiple applications and services including but not limited to the EWX blockchain, EWX Token Bridge, Lift & Lower Pallets, worker nodes, and worker node networks.
EWX is a substrate-based blockchain under EWF. It is the backbone of the entire EWX ecosystem. The EWX Token Bridge is an EWC Smart Contract which facilitates the migration of EWT from EWC to EWX. The lift and lower pallets are equivalent to EVM-based smart contracts which enables the lifting and lowering of EWTs between EWC and EWX.
A worker node is a decentralized application (dApp) which enables enterprises to construct distributed computing networks which securely execute sensitive business operations. Each worker node can execute multiple solutions at the same time; subject to the limits of each operator system.
Worker nodes were originally developed to solve a paradox that hinders advanced renewable energy tracking solutions like 24x7 matching and green electric vehicle charging: credibility relies on accurate, publicly verifiable results (e.g., proof that digital representations of renewables are not double counted). But inputs from separate organizations, such as granular renewable energy production and electricity demand data, are commercially sensitive and need to remain private. Complex commercial, legal, and technical requirements often make it challenging for a single actor to unilaterally access and process all requisite data. The ability to establish a shared source of truth from segregated, individual information sources has been an ongoing challenge in multilateral settings; the challenge is even greater for energy market participants seeking to exchange and process granular data to procure services from distributed energy resources.
The Energy Web Worker Node toolkit solves these challenges by enabling enterprises to configure, launch, and maintain distributed computing networks that ingest data from external sources, execute custom workflows based on business logic, and vote on results in order to establish consensus without revealing or modifying the underlying data. Worker Nodes apply concepts and components from blockchain technology in a novel, enterprise-friendly architecture to provide all stakeholders with cryptographic proof that mutually agreed rules and processes are followed correctly, ensure computational outputs from business processes are correct, and preserve the privacy and integrity of underlying data for auditing purposes.
Currently, there are 2 types of worker nodes available:
Server-based Worker Node
Marketplace Desktop Application
The Energy Web Token (EWT) is the native utility token to access services and orchestrate stakeholders within its blockchain system. In the context of Energy Web Chain, EWT compensates validators for processing transactions, and are used to pay for transactions.
Energy Web X leverages and complements the existing Energy Web Chain by introducing new technical capabilities that streamline the deployment and operation of Worker Node networks.
To maximize the security of every Energy Web solution using worker nodes, EWT will be required to interact with worker nodes and Energy Web X. Most notably, Energy Web Tokens will be required to:
Reward worker node networks: worker nodes are software packages that need to be run by individuals and/or businesses. To attract entities to run worker nodes, enterprises will need to include rewards, paid in EWT, that compensate worker node operators for their work.
Operate worker nodes: to become a trusted party to run worker nodes, individuals and/or businesses will be required to stake EWT. Staking requirements and reward schedules are mass customizable - enterprises launching worker node networks can configure different thresholds and award schedules at their discretion.
Validate Energy Web X: Energy Web X validators will need to stake a significant number of Energy Web Tokens in order to become validators on Energy Web X.
For clarity, instead of launching a new token with the Energy Web X blockchain, Energy Web X will be powered by the existing EWT. Users have the ability to “lift” Energy Web Tokens from the existing Energy Web Chain onto Energy Web X. Lifted Energy Web Tokens can then be used for the functions described above. With this mechanism in place, EWT holders will be able to “lower” Energy Web Tokens back to the main Energy Web Chain at their discretion. Over time, token holders will be able to lower EWT to other layer one blockchains (for example, main net Ethereum) making Energy Web solutions interoperable with any blockchain ecosystem.
Utility tokens like EWT are different from other digital assets in the blockchain sphere such as coins, non-fungible tokens, and stablecoins. To learn more about the distinctions between these assets, see this article,.
Lowering is the exact opposite of token lifting. It is the process of migrating EWT from EWX to EWC. Normally, this will be used to withdraw rewards claimed after gaining them by operating worker nodes.
A subscription is an EWT staking action initiated by the worker node operator to agree and commit in actively participating in executing a group of solutions subject to the solution group’s terms and conditions. In return, the operators expect to gain rewards by diligently performing the solution executions while having the possibility to get slashed when underperforming. The solution registrar sets the stake amounts and other configurations upon the creation of the solution group and solutions.
The Marketplace App is a decentralized desktop application which provides an intuitive interface for the general community with limited technical background to easily participate in running worker nodes on their local machines. It also provides an interface to lift and lower EWTs. It supports Windows, MacOS, and Ubuntu systems.
An operator is an entity who participates in hosting worker nodes to execute business case logic in a network of worker nodes. The operator is represented by their dedicated EWX account.
An EWX account may be created using the publicly available Polkadot wallets. EWX is currently supported by below wallets:
The EWX account MUST NOT be used as a worker node account because they serve different purposes. The operator account nominates a worker node account which can represent the operator when submitting worker node results to EWX.
An EWX account can hold EWT for staking and claiming rewards.
Nova Wallet -
SubWallet -
A vote is initiated upon the submission of the Merkle-tree root hash of the calculated data for each specific use-case. All votes are tied to a voting round.
A voting round is determined by the unique identifier provided by each BC when the Smart Flow fetches the data from the respective BC system for each specific use-case.
For the current implementation, each worker computes the consensus right after its successful submission of a vote in a voting round. The worker fetches the previous vote submissions from EWX under the current voting round. The worker groups the root hashes and counts the submissions from unique operators per unique root hash.
The consensus is determined when a particular root hash contains the majority of submitted votes.
When the majority of votes is not met, the voting round becomes stale and no response coming from the network of worker nodes is expected. However, this scenario may be confirmed externally by directly querying on-chain using a third-party application which will not be available in this phase.
EWF will develop a more robust consensus orchestrator environment and will be available towards Q4 2024. More details will be shared once requirements are finalized at EWF.
In the case of the InEExS Project, consensus is determined using the formula below:
M = TO * 0.5 + 1
Wherein, M = majority of votes, and TO = Total operators subscribed in the solution group.
The blockchain performs three key functions in EW-DOS:
Facilitates on-chain verification and transactions between parties
Executes smart contracts that are used by EW-DOS's decentralized applications, SDKs and utility packages.
The blockchain provides trust in several ways that allow for a decentralized system that is self-executing and without central authority or oversight of on-chain transactions:
The Energy Web Chain stores the following information:
Smart contracts that contain logic and functionality specific to applications deployed on the Energy Web Chain and the utility packages that connect them and their users to the Energy Web Chain.
The Energy Web Chain (EWC) is an open-source, public blockchain blockchain technology. It is the foundational trust and persistence layer of EW-DOS.
Provides the smart contract mechanism to store (DIDS)
You can read more about the Proof-of-Authority consensus mechanism .
The data in each block is immutable and unchangeable. Each is linked to the previous block by a cryptographically created hash. If one block is tampered with, the hash of every subsequent block in the chain would be need to be updated. Because Validators' consensus is required to create new blocks, a block with an alternative transaction history would be rejected by Validators.
Smart contracts provide automated logic for on-chain actions. Transactions on the chain are governed by code called that contain explicit logic and requirements for actions to occur. When specific conditions are met, the code will self-execute. Once a smart contract is deployed on the blockchain, it cannot be changed or reversed, removing the risk that anyone can update the logic of the contract for personal gain.
Cryptographic verification is required for . In order for an individual to verify any on-chain transaction, they must sign the transaction using their private key. This makes it impossible to perform a transaction unless you have the private key.
Smart contracts for that are created through EW-DOS's identity and access management library.
Smart contracts that govern validator consensus behavior and remuneration. These are known as .
Smart contracts that implement other Ethereum network protocols, such as permissioning and protocols.
If you're not familiar with Smart Contracts, you can read Ethereum's introduction to smart contracts .
You can see a list of repositories containing EW-DOS smart contracts .
The server-based worker node is a decentralized application mainly offered to enterprises to be deployed in highly configurable execution environments on-cloud or on-premises. Deployment can be done via Dockerization.
It is mainly composed of the worker node dApp and a Node RED server bundled in a single package. It automatically syncs the subscriptions of the worker node account set in its environment variable and subsequently runs any active solutions for diligent execution and submission of votes.
Reward period is the schedule for worker nodes to participate in vote submissions and gain rewards. The solution registrar defines the duration of reward periods. For example, if rewards are to be paid daily, the reward period needs to be set to a 24-hour estimated equivalent in blocks. Each block is approximately 12 seconds in duration.
Transferring tokens between accounts
Deploying new smart contracts or accounts
Calling or Interacting with existing smart contracts
Once confirmed by the initiator, transactions can be in two states: pending and validated.
Notice that the transaction fee of a pending transaction is not determined yet and the "Block Number" is pending.
After a transaction is validated by a validator, it is added to a block. The block is designated by a block number, shown in the image below. Each block in a blockchain is made up of strictly ordered, consecutive, validated transactions.
Notice that the transaction fee of a validated transaction is no longer 0, it has a value in EWT.
Every transaction that updates the chain has a transaction cost (transactions that are "read only" - meaning they do not update the state of the blockchain - do not have a cost.) It’s important to keep in mind that all transactions are not created equal: some are more computationally intensive than others, some are more urgent, some require greater degrees of privacy.
For example, an interaction with a smart contract that has complex functionality and many internal variables to store will be more computationally intensive than a simple transfer of tokens from one account to another.
As we’ll soon see, these differences from one transaction to the next can have an impact on ultimate transaction cost.
There are three key variables that influence transaction cost:
To derive a concrete fee requires a gas price as well. Every user that initiates a transaction chooses a gas price they are willing to pay for that particular transaction, at that particular time. It is essentially a bid the user makes to have their transaction validated and added to the chain. Users that want to have their transaction expedited, for example, might bid a higher gas price to ensure that it’s included as soon as possible in the next available block.
You can specify a gas price in a transaction through MetaMask:
Finally, token value—usually expressed in a fiat currency equivalent—translates virtual transaction cost into ‘real’ transaction cost. And when token value varies widely, perhaps due to token market volatility, resulting transaction costs can vary too.
Using the three variables above, you can calculate the total transaction cost:
TxCost(unit:fiat$) = GasCost(unit:gas) x gasprice(unit:token/gas) x tokenvalue($/token)
Here’s how a fee would be calculated for a hypothetical transaction on the Energy Web Chain:
50,000 gas x 1 gwei per gas = 50,000 gwei = 0.00005 EWT
If the market price of EWT was $1 at the time of the transaction, this would equate to $0.00005 fee. If the price of EWT was $10, this would equate to $0.0005.
Gas cost, as we've mentioned, represents the computational effort that validators undertake when validating transactions and sealing blocks. The gas price is denominated in EWT, which is paid to the validators for their work.
Each validator may set their own minimum gas price that they are willing to accept in order to include a transaction in their blocks. Currently on the EWC, the default is 0.1 gwei, but the overall range is between 0.01 gwei and 1 gwei. When initiating a transaction on the EW Chain, you should make sure that your gas price is at least 0.01 gwei, and if you want to ensure that your transaction is executed within the next 1-3 blocks (roughly 15 seconds), you should choose a higher gas price.
Because each transaction uses different amounts of gas, the number of transactions that fit on a block will vary.
Each block on the Energy Web Chain has a size limit of 8 million units of gas. Hypothetically, a single extremely computationally intensive transaction could consume 8M gas, but a simple transfer of EWT between two accounts (the most basic transaction type there is) consumes 21,000 gas. This is why a simple metric of “transactions per second” is misleading; not all transactions are created equal in terms of complexity (i.e. gas cost.) If many of the transactions that are waiting in the memory pool have low computational cost, you can fit more transactions in the block. If they are larger, the block will hold less transactions.
Take a look at the details of a block added to the Energy Web Chain:
From this we can see that:
This block includes 43 transactions
The gas limit for the block is 8,000,000 (this limit remains constant for every block)
Only 1,553,623 units of gas were used to create the block (less than 20% of its limit)
If there were more transactions waiting in the memory pool to be added to the block, this block could have processed ~6,446,377 units worth of gas.
The same three variables above that define transaction cost also present opportunities to manage those costs and keep them low.
1. Lean smart contracts can help keep gas costs down: App developers and other smart contract writers are incentivized to write lean, efficient code—writing smart contracts and initiating transactions that are as computationally efficient as possible.
2. Gas price bids should remain low on networks with high transaction capacity: Of the three variables that contribute to transaction costs, gas prices are arguably the most powerful lever, since the bidded prices are solely at the discretion of the user submitting a transaction to the network. For reasons we’ll explore below, in the absence of sustained block “congestion”, gas prices can remain low and stable.
3. “Just in time” gas price calculations mitigate some risks of token value volatility: For a variety of reasons, some token markets are more volatile than others. But just because a token’s value relative to a fiat currency changes, it doesn’t mean that transaction fees similarly change without warning. Users calibrate gas price bids at the time of the transaction, and thus will bid a denomination of tokens relative to the token’s value at the time. While it is possible that a past transaction fee could end up being significantly more or less expensive relative to current (or future) token value, transaction fees at the time they are incurred should remain relatively stable as a function of fiat currency.
So why would anyone bid a high price for any transaction? Shouldn’t transaction fees remain very low, as rational users consistently attempt to minimize their costs? In reality, transaction fees vary precisely because of competition among users to get transactions confirmed.
At any given moment there may be hundreds or thousands of transactions waiting to be confirmed and formally added to the blockchain. These pending transactions sit in a memory pool, or "mempool", where they are ultimately selected by validators (miners in the case of proof-of-work blockchains) to be included in a block. But each block has a finite gas limit, meaning not all transactions can be confirmed at once. As a result, validators will typically give preference to the most-lucrative (or expensive, depending on perspective) transactions in the mempool. Transactions with lower fees may end up having to wait for their transaction to get confirmed.
Ultimately, fees are about transaction prioritization. The higher the gas price you pay, the faster your transaction will be confirmed. If you don’t care about the amount of time it takes to confirm your transaction, you can offer a very low (or no) gas price. However, with this strategy you run the risk that your transaction never gets confirmed, and just sits in the mempool queue indefinitely.
At the most basic level, transaction fees on the EWC are determined as a function of supply (e.g., computational capacity of the network, as defined by block gas limit and block speed / time) and demand (i.e., number of pending transactions). Volatility comes into the equation because supply, namely block time and block gas limit, is essentially fixed, whereas demand fluctuates as a function of the number of users and and the volume and complexity of transactions in the memory pool at any given time. Occasionally, transaction fee trends diverge from transaction volume, but generally the two are correlated.
Looking at historical data since the launch of the EWC in June 2019, it’s fair to say that transaction fees are usually extremely low - with average block utilization (in terms of gas consumption) around 15-20% the minimum gas price of 0.1 gwei is almost always sufficient to ensure a transaction is validated within 2 blocks. Based on the historical market price of EWT, transaction fees expressed in terms of fiat currency are typically in the range of $0.0001 (or less).
Ethereum documentation on
A solution is a representation of a business case logic within the worker node networks. It is composed of the solution metadata and a Smart Flow definition file. The Smart Flow file is stored on a publicly available decentralized file system - IPFS (Interplanetary File System).
A solution group is a collection of solutions. Operators choose which solution group they opt to run and stake EWTs with. The worker node will run all active solutions under the subscribed solution group.
A smart flow is a set of logical nodes that define a business use case. In EWX, smart flows are created and configured using Node RED which provides a browser-based flow editor that makes it easier for enterprises to wire together flows. However, contents of a Node RED node may be auto generated by any third party and be available as an independent, reusable node.
Smart flows are exported to JSON files and are stored on IPFS. Worker nodes of subscribed operators can automatically fetch these files and deploy into each respective instance.
A DID is an identifier that is user-generated and not coupled to any centralized authority. It can be used to identify any subject, such as a non-tangible asset, a customer, or an organization.
Unlike traditional forms of identification, DIDs are not generated by a central authority, such as a government-issued driver’s license, or a bank-issued account number, and they are not stored in a centralized database. A user can create a DID for themselves or an asset using cryptographic or other means.
Public-Private Key Pairs
Copy
Additional Resources on DIDs
Medium Series on private keys and their relevance in the Ethereum Network:
Ethereum-based technology is used as EW-DOS's trust layer because anyone can use Ethereum to build and deploy decentralized applications that run on blockchain technology. This aligns with the purpose of EW-DOS, which is to build decentralized, open-sourced applications that accelerate decarbonization of the energy grid.
Prior to Ethereum, most blockchains were protocols created to exist as a public, decentralized ledger for financial transactions (think Bitcoin).
This means that blockchain technology can not only be used to buy and trade cryptocurrency, but also to create robust applications for decentralized finance, asset trading, gaming and, in our case, a decentralized energy market.
The Energy Web Chain is derived from Ethereum, but it is a separate blockchain using a different consensus protocol and unique governance mechanisms. However, most of the fundamentals of the Ethereum network are the same for the Energy Web Chain. These fundamentals are helpful in understanding the role that blockchain technology plays in EW-DOS. This is especially true if you want to develop and deploy smart contracts on the Energy Web Chain.
If you are unfamiliar with Blockchain technology, or the Ethereum Virtual Network, there are some additional resources below to get you started.
A transaction is any action that updates the state of the blockchain. There are costs associated with each transaction that cover the computational cost of processing that transaction. These costs are variable and dependent on several factors, which are discussed .
This page covers the basic functionality of transactions, how their associated costs are calculated, and where to see transaction data from the Energy Web Chain and Volta Testnet. If you want to read more about the fundamentals of transactions, see the Ethereum documentation on , , and ,
A transaction is any ‘write’ operation that changes or updates the state of the blockchain. Transactions are always initiated by an , and they must be signed by the account owner that initiated the transaction in order to be completed. Examples of write transactions include:
In a consensus blockchain, take turn validating transactions and sealing blocks. Before a transaction is validated, it is in a "pending" state in the memory pool ("mempool"). The following image shows a transaction in a "pending" state. You can view all pending transactions on the Energy Web Block Explorer
Transaction in pending state - from Energy Web Block Explorer
The following image is a transaction in a "validated" state. You can view all validated transactions on the Energy Web Block Explorer
A transaction’s computational complexity is measured in, a unit that assigns a numeric value to each operational code, or instruction, that will be executed to complete the transaction. The gas cost of a transaction is determined by the amount and sophistication of code that needs to be executed as well as the amount and type of data that will be stored on the blockchain as a result. The more complex the transaction, the higher the gas cost.
Gas price is on the EW Chain is denominated in EWT (usually in minuscule units like , which represent one billionth of an EWT). The price is expressed in tokens (gwei) per unit of gas.
Gas price of .01 Gwei.
To ensure that block time remains consistent and to prevent any given block from being overloaded with transactions, the EW Chain has a predefined limit to the amount of that can be consumed in each block. Each block on the Energy Web Chain has a size limit of 8 million units of gas.
Block Details of a Single Block on the Energy Web Chain
You can see all block and transaction details for the Energy Web production chain at .
You can see all block and transaction details for the Volta Testnet at .
Below is the sample generic sequence diagram describing the process from fetching data from each respective business case provider system, processing the data, submitting the result to EWX, calculating the consensus, and forwarding the results back to the BC system. Business Case (BC) providers are those entities who have access to and define the logic of the Smart Flows.
A DID for a given system resides in a decentralized . DID Registries, like VCs and DIDs themselves, are developed according to W3C standards. Most DID registries live on a decentralized ledger, or a blockchain. In the case of EW-DOS, the DID registry is on the .
A DID is derived from a public-private key pair that is generated programmatically through a cryptographic algorithm. The algorithm produces a private key and a corresponding public key. Crypto wallets such as will generate these keys for you on creation of an account. The public key can be exposed and shared with others, but the private key should not be shared with anyone. The algorithm used to generate the key-pair makes it virtually impossible for any outsider to guess your private key.
Your public key serves as your address on the blockchain, and your private key serves as your private identifier, similar to a password, and is used to sign on the blockchain. The signature is proof that you initiated that transaction.
DIDs are made up of a , a and a unique method identifier. There are many DID methods that are supported by different blockchain networks. You can see a full list DID methods define operations to create, resolve, update and deactivate DIDs and their associated DID Documents, which are discussed below. DID Methods are often associated with a verifiable data registry, which are registries with store DIDs and their data. If the registry is implemented on a blockchain, smart contracts usually serve as the data registry. An example of this is the .
Energy Web Chain uses the . The string that identifies this DID method is "ethr", and the method identifier is always the user’s public key (also known as an address.)
DID generated by ID Registry using ETHR DID Method Specification
Every DID resolves to a corresponding , which contains metadata about the subject's authentication mechanisms and attributes, like its public key.
Below is a sample JSON document that was created by the EW-DOS DID library. For a list of required and possible DID Document properties,
MetaMask on key terms:
The Energy Web blockchain is derived from technology. Ethereum provides a strong foundation for the Energy Web Chain because it is open-source, widely used, and many well-developed tools for development on Ethereum exist today.
Ethereum developed the (EVM) to allow users to store and execute programs on the Ethereum blockchain. This lets programmers write programs that contain logic and state management, both which are critical to. These programs are called . Once it is deployed on the blockchain, a smart contract has an address on the blockchain and anyone can use to interact with the contract or call its public functions. You can read more about how to interact with smart contracts .
Read an overview of Ethereum and the Ethereum Virtual Machine on the Ethereum documentation's "What is Ethereum" section .
(this is an overview of transactions in Ethereum, but we explain more about transactions on the Energy Web Chain )
on
Lifting is the process of migrating EWT from EWC to EWX. EWT will be needed by participants to register as worker node operators and to stake to solution groups containing the Smart Flows.
In order to adhere to the expected protocol, the Energy Web Chain’s system contracts must implement the interfaces that are expected by the AuRa consensus engine, so that it can conform to the client’s protocols.
The OpenEthereum documentation specifies that “A simple validator contract has to have the following interface”
You can see that this smart contract implements all of the functions of the Validator-Set protocol interface that was specified above.
The Energy Web Chain is comprised of different components that provide the functionalities determined by the blockchain’s protocol.
Broadly speaking, protocols are defined rules and standards. Internet protocols, like HTTP protocol for example, define standard procedures for the transfer of data over the internet.
A blockchain network is no different. In a decentralized and self-executing system like a public blockchain, protocols are of significant importance in establishing how the system works, and then ensuring that the system continues to self-execute as designed.
Protocols exist to determine specific aspects of blockchain behavior, such as:
How transactions are validated
Who gets to validate transactions and when
How validators are compensated
How peer nodes interact with each other
System contracts are the Energy Web Chain's that implement OpenEthereum's protocols for .
Energy Web's smart contracts are open-sourced, and you can see them on github
- manage validator permissioning and behavior
- manages validator block rewards
- manages the initial disbursement of pre-mined energy web tokens
System contracts are the Energy Web Chain’s smart contracts that implement . These protocols determine what actions can be taken on the network.
Let’s take contract as an example.
Now let’s look at Energy Web’s .
The system components below ensure that the Energy Web blockchain adheres to Ethereum's protocols, and the protocols established by OpenEthereum's . (OpenEthereum is the Ethereum client that is used by the Energy Web Chain.
System Contracts are that implement the protocols. Read more about Energy Web's system contracts
The validator node architecture monitors validator behavior to ensure consistent and secure blockchain operation. Read more about the validator node architecture
The Holding Contract holds tokens for initial investors. These tokens are "pre-mined", and do not enter the pool through block validation. Tokens are held for affiliates until a specific point of time that is specified in the contract, at which point they can be released to the specified address. The constructor of the holding contract and its initial balance is part of the chainspec file. This allows the investors' tokens to be locked at the first block.
The mapping between the account address and the token amount is hard coded into the contract and cannot be changed after deployment. After a block that has a later timestamp than the holding timestamp of an address is created, the tokens for that address can be transferred to the address by calling the realeaseFunds method. This method can be called by anyone, not only by the address that holds that balance.
You will need MetaMask pointed to a local or a remote node
Enter your address in the lookup field to see your holding balance
If the release period has ended, press the "Withdraw" button to release the funds to the address it belongs to. Make sure you trigger the withdraw function with an account that has some ethers to cover transaction costs
The mapping between addresses and tokens/release timestamp is kept in the storage of this contract. This mapping data structure was filled at the deploy time of the contract and cannot be changed.
If you're an investor and want to see your balance, you can use the Balance Viewer interface:
To learn how to connect via remote RPC, go
To learn how to run a local node go
Function Name
Description
releaseFunds(address)
Releases funds for a holding address if it is present in the contract and the holding period is over
holders(address)
Returns the holding data for an address, the available amount and the holding-period-end blocktimestamp
TARGET_AMOUNT()
Returns the total amount initially held by the contract
Contract
Address
JSON ABI
Holding
0x1204700000000000000000000000000000000004
The Energy Web Chain native token
Energy Web X will leverage and complement the existing Energy Web Chain by introducing new technical capabilities that streamline the deployment and operation of Worker Node networks.
To maximize the security of every Energy Web solution using worker nodes, EWT will be required to interact with worker nodes and Energy Web X. Most notably, Energy Web Tokens will be required to:
Reward worker node networks: worker nodes are software packages that need to be run by individuals and/or businesses. In order to attract entities to run worker nodes, enterprises will need to include rewards, paid in EWT, that compensate worker node operators for their work.
Operate worker nodes: in order to become a trusted party to run worker nodes, individuals and/or businesses will be required to stake EWT. Staking requirements and reward schedules are mass customizable—enterprises launching worker node networks can configure different thresholds and award schedules at their discretion.
Validate Energy Web X: Energy Web X validators will need to stake a significant number of Energy Web Tokens in order to become validators on Energy Web X.
For clarity, instead of launching a new token with the Energy Web X blockchain, Energy Web X will be powered by the existing or EWT. Users have the ability to “lift” Energy Web Tokens from the existing Energy Web Chain onto Energy Web X. Lifted Energy Web Tokens can then be used for the functions described above. With this mechanism in place, EWT holders will be able to “lower” Energy Web Tokens back to the main Energy Web Chain at their discretion. Over time, token holders will be able to lower EWT to other layer one blockchains (for example, main net Ethereum) making Energy Web solutions interoperable with any blockchain ecosystem.
There are two reasons for making this contract Ownable:
Contract
Address
JSON ABI
SimpleRegistry
0x1204700000000000000000000000000000000006
Function
Description
entries(bytes32)
Returns an entry based on the sha3 hash of the name registered.
reverse(address)
Reverse resolution of an address.
fee()
Returns the fee for reserving a name (not really relevant to public).
getData(bytes32,string)
Returns a string data value from an entry, given its key.
getAddress(bytes32,string)
Returns an address data value from an entry, given its key.
getUint(bytes32,string)
Returns an unsigned integer data value from an entry, given its key.
getOwner(bytes32)
Returns the owner of an entry.
hasReverse(bytes32)
Returns true if entry has a reverse address registered.
getReverse(bytes32)
Returns reverse address of an entry.
canReverse(address)
Returns true if address can have a reverse.
reverse(address)
Returns the reverse value of an address.
reserved(bytes32)
Returns true if the name (its sha3 hash) is already reserved.
Learn about the EWC Governance and the role of Validators in depth in our .
The is the native utility token of the Energy Web Decentralized Operating System (EW-DOS). Tokens are used in EW-DOS to pay for on the , and for staking to secure the as well as . You will need EWT in your digital wallet (we recommend using ) if you want to make transactions or use applications or smart contracts that are deployed on the Energy Web Chain main network.
Like other public blockchains, the Energy Web Chain uses EWT as a utility token to access services and orchestrate stakeholders within its blockchain system. In the context of the Energy Web Chain, EWT compensate validators for processing transactions, and are used to pay for transactions - for example, registering a new asset or organization in .
Utility tokens like EWT are different from other digital assets in the blockchain sphere such as coins, non-fungible tokens, and stablecoins. To learn more about the distinctions between these assets, see this article, .
You can buy EWT on any of the exchanges listed . You can also bridge EWTB ERC20 tokens acquired on Ethereum mainnet back to EW Chain by .
****
Energy Web has deployed This contract is identical to OpenEthereum's original contract, with the exception that it was made Ownable by Energy Web Foundation. Only Energy Web can reserve a name or drain funds from this contract.
OpenEthereum's name registry might be needed for other OpenEthereum related system contracts later: e.g. , or .
We will have the official system set up on the chain, so this contract is only needed for internal purposes and will not be used publicly.
The name registry is a placeholder for now. The contract can be found in our repo:
In a centralized system, such as a bank or a broker, a designated authority or central operating system would be in charge of adding transactions or information to the system, making sure that each transaction is trustworthy, up to date with the whole system, and does not duplicate previous transactions.
In contrast, public blockchains are decentralized, peer-to-peer systems that have no central authority or oversight like this. Designated actors are responsible for processing transactions, creating new blocks and maintaining the integrity and history of previous blocks.
The Energy Web Chain uses the Proof-of-Authority (PoA) consensus mechanism.
The system for determining these actors and how they are selected is called a . These mechanisms determine the process of who can confirm transactions and create new blocks on the blockchain and the protocol for how they do so. Because there is no central oversight, consensus needs to be designed in a way that prevents or disincentivizes malicious or uninformed actors from corrupting the integrity of the chain.
There are many consensus algorithms. You may have heard of some widely used ones like or . Each mechanism has its own way of determining who is eligible to process transactions and create new blocks, and how how actors are selected to do so.
All consensus mechanisms have disadvantages and advantages and are chosen based on the purpose and use case of the blockchain it will be serving.
The Block Reward contract manages block reward payouts to validators. Block rewards are issued as native Energy Web tokens that are minted by the engine.
Two entities are rewarded by each created block:
The block author (validator)
Block authors are rewarded each time they seal a block. The amount issued to block authors decreases over time, as depicted by the Discreet S Curve.
A portion of block rewards goes to the Community Fund. Unlike the amount awarded to block authors, the amount that goes to the Community Fund remains constant over time.
The amount is chosen to add up to roughly 37.9 million tokens over a 10 year period. The community fund can change its own address and set a payout address too.
With 5 second step size: Payout-per-block = 600900558100000000 wei
Visual representation of the community reward distribution is depicted below in Fig. 3.
Name
Address
JSON ABI
RewardContract
0x1204700000000000000000000000000000000002
Function Name
Description
mintedTotally()
Returns the token amount that was minted totally in wei
mintedForCommunity()
Return the token amount that was totally minted for the community fund in wei
mintedForCommunityForAccount(address)
Returns the total token amount that was minted for a certain address for the community so far in wei
mintedForAccount(address)
Return how much was minted for an account so far in wei
mintedInBlock(uint256)
Returns how much was minted in certain block in wei
mintedForAccountInBlock(address, uint256)
Returns how much was minted for a certain account in a certain block in wei
communityFundAmount()
Returns the constant payout for the community per block in wei
communityFund()
Returns community fund address
payoutAddresses(address)
Returns an address' payout address
setPayoutAddress(address)
Sets payout address for sender
resetPayoutAddress()
Resets payout address for sender
getBlockReward(uint256)
Returns blockreward amount for a certain block number
checkRewardPeriodEnded()
Returns true if blockreward period has ended (based on blocknumber), false otherwise. The blockreward period right now ends after 10 years. After that no blockrewards or community fund payouts are minted.
Note that there is a separate site for the Volta Testnet Block Explorer.
Block Height
Num transactions
Hash
Parent Hash
Difficulty
Total Difficulty
Gas Used
Gas Limit
Block Rewards
Miner (validator)
Transactions
Transaction address
Status
Block Number
Nonce
Transaction fee
Transaction Speed
Raw input
Gas
Internal Transactions
Transaction address
Nonce
Gas limit
Internal Transactions
Account details for all external and smart contract account addresses with balances and associated transactions
Address
Token balance
Num. transactions
Last balance update
Gas used
All transactions
Coin balance history
Today worker nodes are implemented as independent off-chain computing nodes that communicate with a smart contract deployed on the Energy Web Chain. This approach is effective, but it is complex and labor-intensive to configure custom business logic, synchronize nodes, and apply appropriate governance such as defining eligibility requirements and service level agreements that worker nodes must adhere to. A more efficient solution is to implement worker nodes within a common environment where they can run independently but follow a unified set of rules. That is where Energy Wb X comes in.
Worker nodes in the Energy Web ecosystem today function as independent off-chain computing units. They communicate with smart contracts deployed on the Energy Web Chain (EWC), which uses Ethereum-based technology. While this design has been effective in facilitating off-chain computation, it has significant challenges:
Complexity in Configuration: Setting up custom business logic for each independent worker node requires substantial effort, making the process cumbersome for enterprises.
Synchronization: Ensuring consistent operation and data synchronization between worker nodes and the smart contracts is labor-intensive.
Governance Enforcement: Defining and monitoring adherence to eligibility requirements, service-level agreements (SLAs), and reward mechanisms require careful management, adding to operational overhead.
Energy Web X addresses these challenges by providing a substrate-based platform that integrates worker nodes into a unified environment. Substrate’s modular framework allows for highly customizable blockchains tailored to specific use cases, making Energy Web X a robust alternative to the Ethereum-based EWC.
Key Benefits:
Streamlined Governance: Worker nodes operating under Energy Web X follow predefined governance rules encapsulated in “pallets.” These pallets function like enhanced smart contracts, offering more flexibility and power to manage worker nodes collectively.
Enhanced Efficiency: A common environment reduces the complexity of synchronization and management, enabling easier scalability for enterprises.
Interoperability with EWC: Energy Web X is designed to complement EWC, enabling seamless interaction where worker nodes can migrate (“lift”) to Energy Web X for enhanced capabilities and revert (“lower”) to EWC as needed.
Worker nodes remain essential as software packages operated by individuals or businesses. Energy Web X introduces features to make this ecosystem more appealing:
Reward Systems: To attract operators, worker nodes are incentivized through rewards in EWT (Energy Web Token). These reward mechanisms can be customized based on performance metrics, such as quality and timeliness of work.
Stake-Based Trust: To run a trusted worker node, operators are required to lock EWT, aligning their incentives with network reliability. This ensures that only committed entities contribute to critical computations.
Energy Web X structures worker nodes into solutions and solution groups, providing a hierarchical approach to management:
Solutions: Represent specific business applications or use cases powered by worker nodes.
Solution Groups: Group similar solutions together and define shared governance rules, including operational criteria and reward structures.
Configurable Lifetimes and Rewards: Solution groups provide flexibility:
Their lifetimes can be predefined but extended based on evolving business needs.
Reward mechanisms can be dynamically adjusted to incentivize participation and ensure the alignment of worker nodes with enterprise objectives.
The configurations within solutions and solution groups dictate how worker node outputs are validated on-chain:
Eligibility Requirements: Define who can participate.
Service-Level Agreements: Set performance benchmarks for the worker nodes.
Consensus Mechanisms: Establish thresholds for accepting the results of off-chain computations as correct.
By formalizing these parameters, Energy Web X ensures:
Accuracy: Only valid results from worker nodes are anchored on the blockchain.
Trust: Enterprises and stakeholders can rely on a secure and tamper-resistant consensus process.
This structured and dynamic system makes Energy Web X a powerful platform for managing distributed worker nodes while reducing operational complexity and enhancing enterprise scalability.
Validator Set contracts provide information on current validators and private functionality to add and remove validators.
For upgradeability purposes, the contracts are divided into 2 parts. See below Fig. 1.
This contract implements the logic and manages the validator list. The owner of the validator set interacts with this contract for managing the validators. This contract maintains two validator sets:
The current validator set (the validators who are actively sealing)
The migration validator set, which is the new set we migrate to in case of a change (validator addition or removal).
Validators and potential validators have four states in these contracts:
Active validator: Validator is in the active validator set, sealing new blocks
Not a validator: The address nothing has to do with validation.
Pending To Be Added Validator: Validator is already added by the owner and their acceptance is pending, but not active yet until it is finalized. This implies that the validator cannot report, be reported, or produce blocks yet.
Pending To Be Removed Validator: Validator is pending to be removed (removed by the owner), but it is not finalized, and so is still active as a validator. This implies that as long as the removal is not finalized, the validator is actively producing blocks, can report and can be reported on.
The RelayedSet contract logs malicious or benign reports by emitting corresponding log events that can be seen by anyone. Reporting can only be on and about active sealing validators.
The events contain the reporter- and reported address, and the block number which the validator was reported on.
Calculator:
The block explorer interface provides the most important on-chain information about blocks, transactions, accounts and . Below is an overview of what information you can view on the Block Explorer.
Volta Testnet Block Explorer:
Main Network Block Explorer:
- block details for all sealed blocks
- transaction details for all validated transactions
- transaction details for all pending transactions
GraphQL: GraphQL interface which you can use to query specific information that are on chain: . To find out more about the possible queries visit:
In contrast to the Energy Web Chain, which is Ethereum based, Energy Web X is built with . Its sole purpose is to coordinate, secure and make public the results of work performed by worker node networks.
This contract implements the required interface expected by the engine and it is the contract defined in the chainspec seen by the engine. It relays most of the function calls to the RelayedSet contract, which holds the actual logic. The logic contract can be replaced (upgraded), so it is possible to change the behavior of validator management without conducting a hard fork.
Function
Description
finalized()
Returns true if there are ongoing changes to the active set, false otherwise. If true, implies that current validators list equals migration validators list.
addressStatus(address)
Returns the state of an address, two integers: an integer representing the validator state, and an index value. The index is the position of the validator address in the currentValidators array. It is only relevant if the address is an active validator, should be ignored otherwise.
The validator state mappings are:
NonValidator: 0
Finalized: 1
PendingToBeAdded: 2
PendingToBeRemoved: 3
getValidators()
Returns currently active block producing validators
getMigrationValidators()
Returns the migration validator set. If there are no changes, it returns the same list as getValidators().
getUnion()
Returns the union of current and migration sets. Useful for tracking the statuses of all affected validators in case of an ongoing change
getValidatorsNum()
Returns the number of currently active validators
isPendingToBeAdded(address)
Returns true if address is pending to be added to the active list.
isPendingToBeRemoved(address)
Returns true if address is pending to be removed from the active list.
isPending(address)
Returns true if address is pending to be added or removed.
isActiveValidator(address)
Returns true if address is an active validator, meaning it partakes in producing new blocks. Note that a validator who is pending to be removed is still active.
isFinalizedValidator(address)
Returns true if address is a finalized validator, meaning it is active and NOT pending to be removed either.
Function Name
Description
getSystemAddress()
Returns the system address
getValidators()
Same as RelayedSet getValidators()
relayedSet()
Returns the address of the Relayed contract
The Worker Node Pallet provides essential functionalities for managing solution groups, solutions, and votes as outcomes of off-chain computation, along with mechanisms to ensure fair reward distribution.
Key functionalities:
Solution Group Management: Enables registrars to create, register, and deregister solution groups. Funds are locked upon registration and become available for distribution once specific criteria are met.
Solution Management: Each solution is an off-chain business unit requiring computation by worker nodes, with consensus achieved on computed results to ensure their validity.
Operators and Workers: Operators join solution groups by locking their tokens, subscribing to groups, and running worker nodes. These nodes process and compute solutions off-chain and participate in on-chain voting to reach consensus on results, which in turn determines rewards eligibility.
Reward Calculation & Distribution: Manages reward calculations for each solution group, including the handling of reward periods for distribution.
On-Chain Voting (Consensus): Implements an on-chain voting system to reach consensus on solution results computed off-chain and submitted by workers. The consensus outcome determines eligibility for operator rewards, aligned with each solution group’s configuration to ensure fair reward distribution.
Name
Address
JSON ABI
ValidatorSetRelayed
0x1204700000000000000000000000000000000001
The system architecture of a validator node on the Energy Web Chain is made up of two components:
Together these two components allow validators to run a local node of the chain, validate transactions, seal blocks, and monitor validator behavior and metrics.
A client is software that allows you to run a local node on your machine and interact directly with the blockchain. Every validator must run a full node in order to participate in validation.
The monitoring system collects comprehensive, real-time data and metrics on validator performance and provides a user interface for viewing the data. It is important to gather as much data about the validator nodes as possible in order to ensure a secure and performant blockchain. To do so, we rely on well established industry solutions to transfer these metrics off the validator node to protect the sensitive nature of the data.
The use of the telemetry monitoring system is opt-in. Validators can disable it if they have their own monitoring system in place that allows for real time tracking of all relevant metrics.
There are four components involved in the data collection process:
The OpenEthereum client collects data on the validator node. Collected data includes:
CPU usage
Memory usage
Disk usage
Number of connected peers
List of visible P2P peers
Current block
Network latency to 3 different and major locations (e.g. cloudflare, google, amazon)
Network throughput
Network error rate
Number of SSH keys
Service status for SSH, docker and the parity container
SHA256 hashes of key system components/binaries
Current chain specification file (or hash)
Telegraf collects relevant metrics from the host machine and the custom-built OpenEthereum metrics collector. The metrics collector allows Telegraf to receive the metrics from the OpenEthereum client
The collected metrics are stored in an InfluxDB database and can be visualized using Grafana
Each set of worker nodes deployed by Energy Web, Energy Web customers of any energy enterprise is governed and anchored to unique pallets on Energy Web X(in traditional Web 3 language a pallet on a substrate-based blockchain is similar to a smart contract on an EVM but more powerful and flexible). Whit this architecture in place, Energy Web has. scalable way to launch worker nodes.
Energy Web X’s purpose is to introduce new technical capabilities, leverage and complement the existing Energy Web Chain. To maximize the security of every Energy Web solution using worker nodes, EWT wis required to interact with worker nodes and Energy Web X that can be “lifted” from EWC to EWX and “lowered” back to EWC from EWX.
Worker Nodes are sofware packages that need to be run by individuals and/or businesses. In order to attract entities to run worker nodes, enterprises need to include rewards that pay worker node operator for performing their work. All worker node rewards are paid out in EWT.
Worker Nodes are sofware packages that need to be run by individuals and/or businesses. In order to attract entities to run worker nodes, enterprises need to include rewards that pay worker node operator for performing their work. All worker node rewards are paid out in EWT.
In order to become a trusted part and run worker nodes, individuals and/or businesses require to lock EWT. Enterprises launching worker node networks can configure different thresholds and award schedules at their discretion.
In Energy Web X, solutions represent business applications or use cases that are implemented through worker node networks. These solutions can be grouped into solution groups, which define shared governance parameters, reward structures, and operational criteria. Solution groups are crucial for aligning the behavior of worker nodes across similar or related solutions.
The lifetime of a solution group is configurable, allowing enterprises to set specific timeframes during which worker nodes can participate and earn rewards. Solution groups also allow flexibility: their lifetimes can be extended to accommodate ongoing or evolving business needs, and their reward structures can be raised to incentivize higher performance or attract more participants. This dynamic lifetime and reward management ensure that worker nodes are continually aligned with the goals of the enterprises that rely on them.
Solutions and solution groups establish the configuration that governs how worker node submissions are evaluated and consensus is reached on-chain. This configuration includes eligibility requirements, service-level expectations, and thresholds for agreeing on the correctness of off-chain computed results. By leveraging these configurable parameters, Energy Web X ensures a robust and secure consensus mechanism that validates and anchors the outputs of decentralized off-chain computations. This process is critical to maintaining trust and accuracy across all solutions powered by worker nodes.
SLAs today rely on trust, manual verification, and centralized enforcement—leading to disputes, inefficiencies, and unnecessary costs. Worse, they ignore sustainability. EnergyWebX SmartFlow is the first truly Decentralized SLA. Enterprises can now automate, enforce, and verify SLAs in a way that is trustless, transparent, and climate-conscious:
Set performance, uptime, and honesty thresholds—enforced on-chain
Unlock payments ONLY when SLAs are met
Eliminate disputes—SLA compliance recorded & validated on-chain
Define a Carbon SLA—setting a maximum carbon footprint for ESG reporting
With EnergyWebX SmartFlow there is no middlemen, no disputes, no unverifiable claims. Just real-time, automated, and verifiably green SLAs.
Remember that the Energy Web Chain is derived from the Ethereum blockchain. Because of this we use an Ethereum client to connect with the chain called . Anyone can create a client, as long as it implements the protocols laid out in , and there are a number of Ethereum clients to choose from.
Energy Web uses the OpenEthereum client because it supports the , which is a consensus algorithm specifically for Proof-ofAuthority blockchains. OpenEthereum allows validators to connect to the chain, collect transactions and seal blocks according the AuRa consensus algorithm.
To read more about OpenEthereum, you can
To read more about Ethereum clients, see the
client - monitors validator node behavior
: open-source server agent that collects data from the OpenEthereum client
- open source database that stores the data collected from Telegraf
- data visualization tool that queries the InfluxDB for data and provides graphical interface for data visualization
All components are run in separate docker containers managed by docker compose. For additional information on docker visit: and .
Enterprises are already integrating SmartFlow worker nodes into their solutions. .
The Balances Pallet is a core module in the Polkadot SDK, responsible for managing token balances, enabling secure transfers, and supporting the blockchain’s economic operations. It provides robust mechanisms for balance management, transaction fees, and account lifecycle, ensuring a stable and efficient economic framework for Substrate-based blockchains.
Key functionalities:
Account Balances Management: Maintains and tracks balances for all accounts, divided into free balance (spendable) and reserved balance (locked for specific purposes).
Token Transfers: Enables secure token transfers between accounts with features like keep-alive transfers to prevent accounts from being reaped.
Locks and Imbalances: Introduces runtime locks to temporarily restrict access to balances during specific operations (e.g., governance or staking) and handles imbalances through secure issuance or burning of tokens to maintain economic integrity across the system.
The Proxy Pallet is a versatile module in the Polkadot SDK that facilitates secure delegation of account operations. It allows users to authorize other accounts, called proxies, to perform specific actions on their behalf. This feature enables enhanced account management, operational flexibility, and secure delegation, particularly beneficial in multi-sig setups and automation scenarios.
Key functionalities:
Account Delegation: Enables accounts to delegate specific operations to proxy accounts with configurable levels of permissions and supports use cases such as transaction signing, staking operations, and runtime-specific actions.
Proxy Types and Permissions: Defines distinct proxy types to grant granular permissions, ensuring proxies can only execute authorized actions.
Time-Limited and Announced Proxies: Introduces time-limited proxies that automatically expire after a predefined duration, enhancing security. It also implements delayed announcements for high-risk actions, allowing users to monitor and cancel actions if necessary.
Security and Revocation: Includes mechanisms for account owners to revoke proxy permissions at any time, ensuring full control while it protects against unauthorized actions through runtime checks and adherence to defined proxy types.
The Assets Pallet is a core component in the Polkadot SDK that provides comprehensive tools for managing and interacting with fungible token assets. This pallet enables the creation, transfer, and governance of assets on-chain, supporting decentralized ecosystems with robust asset functionality.
Key functionalities:
Asset Creation and Registration: Allows users or entities to create new fungible assets with customizable properties such as total supply, name, and metadata. It also enforces administrative roles for managing the lifecycle of assets, including minting and burning.
Asset Transfer and Balances Management: Enables secure and efficient transfer of assets between accounts and tracks account balances for each asset type, with configurable rules for minimum balances and dust handling.
Minting and Burning Mechanisms: Provides authorized administrators the ability to mint new tokens to increase supply or burn tokens to reduce supply. It also ensures precise control over asset supply and its distribution across holders.
Permissioned Operations: Supports a robust permissions system to define administrative roles such as asset owners, issuers, and freezers.
The XCM Pallet is a critical module in the Polkadot SDK that facilitates Cross-Consensus Messaging (XCM), enabling secure and interoperable communication between different chains. This pallet is fundamental to Polkadot’s interoperability framework, allowing Parachains, relay chains, and other consensus systems to exchange messages and assets seamlessly.
Key functionalities:
Cross-Consensus Communication: Implements a universal messaging protocol for interaction between different consensus systems and allows Parachains and relay chains to send and receive messages reliably, forming the backbone of Polkadot’s interoperability.
Asset Transfer and Management: Supports transferring assets, such as tokens or NFTs, across chains using the XCM protocol.
Instruction Execution: Provides an instruction set for executing operations on remote chains, such as account creation, staking, or governance participation.
Fee Payment and Weight Management: Handles fee payments for executing XCM instructions, ensuring proper incentivization of involved parties.
The Multisig Pallet in the Polkadot SDK provides a robust mechanism for multi-signature account management, enabling secure and coordinated actions among multiple participants. This pallet is integral for collaborative decision-making and securing high-value operations in decentralized ecosystems.
Key functionalities:
Creation of Multisig Agreements: Facilitates the creation of multi signature agreements among multiple accounts with a defined threshold of required approvals. Supports both single-use and reusable multi signature setups for flexibility in different use cases.
Threshold-Based Execution: Allows execution of transactions once the required threshold of signatures has been collected and ensures that no action is performed unless the predefined consensus is reached among signatories.
Time-Locked Approvals: Introduces optional time-locks for multisig operations, giving signatories a limited window to approve or reject a proposal and ensures timely decision-making and reduces risks associated with prolonged inactivity.
The Scheduler Pallet provides a powerful framework for scheduling time-based and event-driven tasks within the runtime. It is integral for automating and orchestrating on-chain operations at specified block heights or based on dynamic triggers.
Key functionalities:
Scheduled Task Management: Enables the scheduling of on-chain calls to execute at a specified block number or recurring intervals and supports delayed execution, enabling precise control over task timing for one-off or periodic operations.
Flexible Call Dispatching: Allows scheduling of any callable extrinsics, making it versatile for automating runtime functionality. It also supports tasks requiring root-level permissions or limited by specific user-defined filters.
Priority and Weight Control: Assigns priorities to scheduled tasks to determine execution order in case of conflicts and manages weight allocation to prevent overloading blocks with scheduled calls.
Rescheduling and Cancellation: Provides mechanisms to modify or cancel scheduled tasks before execution.
Worker Node Pallet
The Worker Node Pallet provides essential functionalities for managing solution groups, solutions, votes and reward distribution mechanisms.
Balances Pallet
The Balances Pallet responsible for managing token balances, enabling secure transfers, and supporting the blockchain’s economic operations.
Proxy Pallet
The Proxy Pallet enables enhanced account management, operational flexibility, and secure delegation, particularly beneficial in multi-sig setups and automation scenarios.
XCM Pallet
The XCM Pallet facilitates Cross-Consensus Messaging (XCM), enabling secure and interoperable communication between different chains.
Assets Pallet
The Assets Pallet provides comprehensive tools for managing and interacting with fungible token assets.
Multisig Pallet
The Multisig Pallet is integral for collaborative decision-making and securing high-value operations in decentralized ecosystems.
Scheduler Pallet
The Scheduler Pallet is integral for automating and orchestrating on-chain operations at specified block heights or based on dynamic triggers.
Preimages Pallet
The Preimages Pallet is a specialized component in the Substrate runtime that facilitates the storage, retrieval, and management of large data blobs (preimages) on-chain.
Offences Pallet
The Offences Pallet is designed to detect, record, and manage misbehavior within the network. It ensures the integrity of the system.
Eth-Bridge Pallet
The Eth-Bridge Pallet is responsible for facilitating interactions between a Substrate-based blockchain and an Ethereum-based network.
Token-Manager Pallet
The Token-Manager Pallet is designed for managing tokens and handling token operations within a Substrate-based blockchain.
Ethereum-events pallet
The Ethereum-events pallet supports tracking event submissions, validation, and challenges while providing secure mechanisms for event processing and recording.
Avn Pallet
The Avn Pallet provides functionality that is common for other pallets such as handling offchain worker validations, managing a list of validator accounts and their signing keys.
The Offences Pallet is a critical component in the Substrate framework designed to detect, record, and manage misbehavior within the network. It ensures the integrity of the system by imposing penalties on validators and other actors who deviate from expected behavior, such as equivocation or inactivity.
Key functionalities:
Misbehavior Detection: Facilitates the detection of offenses, such as double-signing or equivocation, leveraging integrated modules or external monitoring tools while it supports configurable offense types to adapt to specific network requirements and threat models.
Offense Reporting and Recording: Provides a structured mechanism to report misbehavior, with offenses recorded on-chain for transparency and accountability. It also tracks offenders and their associated penalties to discourage repeated violations.
Penalty Enforcement: Imposes penalties on validators or network participants based on the severity and frequency of their offenses. Penalties can include slashing, staking disqualifications, or temporary bans to maintain network integrity.
Historical Tracking: Maintains a history of offenses and their resolutions to enable governance or runtime modules to make informed decisions regarding actors’ reliability. Supports configurable retention policies to manage storage efficiently while preserving essential historical data.
The Eth-Bridge Pallet is a component responsible for facilitating interactions between a Substrate-based blockchain and an Ethereum-based network. It implements the BridgeInterface and provides functionality for publishing transactions and generating lower proofs. This enables other pallets that implement BridgeInterfaceNotification to execute functions on the Ethereum-based smart contract or request proofs for token operations.
Key functionalities:
Transaction Publishing and Management: Accepts and processes transaction requests from external pallets, handling them sequentially to ensure that they are executed in the order they are received. Publishes transactions by packaging and encoding them to be compatible with Ethereum, complete with timestamps and unique transaction IDs to track and verify their status.
Consensus and Confirmation Collection: Manages the collection of ECDSA confirmations from authors to prove consensus for a transaction, ensuring that all required signatures are gathered before submission. Utilizes a confirmation system where authors can add their confirmations until the required threshold is met, after which the transaction is ready to be dispatched to Ethereum.
Dispatching Transactions to Ethereum: Appoints an author responsible for sending a transaction to Ethereum once sufficient confirmations have been collected.
On-Chain and Off-Chain Coordination: Integrates with off-chain workers (OCWs) to monitor unresolved transactions and prompt authors to act as needed. It also alerts the originating pallet with the outcome of a transaction through the BridgeInterfaceNotification callback, enabling state commitment or rollback based on the results.
The Preimages Pallet is a specialized component in the Substrate runtime that facilitates the storage, retrieval, and management of large data blobs (preimages) on-chain. It is particularly useful for governance and other modules requiring access to detailed proposals or large datasets while minimizing storage costs.
Key functionalities:
Efficient Storage of Preimages: Allows users to submit and store large preimage data off-chain initially, ensuring cost-effective on-chain storage.
On-Demand Retrieval: Enables on-chain modules, such as governance proposals, to reference and retrieve preimages only when they need to be executed or evaluated.
Preimage Validation: Includes a framework to validate and verify the integrity of preimages against hashes before use and ensures that the preimage data corresponds accurately to its referenced hash.
Access and Ownership Control: Supports fine-grained access controls, ensuring only authorized entities can submit or clear preimages and allows multiple modules and users to leverage preimages securely without conflict.
The Token-Manager Pallet is designed for managing tokens and handling token operations within a Substrate-based blockchain. This pallet facilitates various features, including secure token transfers, scheduling of token “lowering” operations to Ethereum (tier1), and interaction with external token contracts. It also enables the governance of token-related actions through nonces and proofs, ensuring a seamless operation between blockchain tiers.
Key functionalities:
Token Balance Management: Tracks the balances of individual accounts for different tokens. This allows the management and querying of token balances by specifying the token ID and account ID. Each account’s nonce is tracked, representing the number of transfers conducted, ensuring the integrity of transaction sequences.
Lowering Operations: Supports “lowering” tokens from tier2 to tier1, interfacing with an Ethereum contract. This operation can be executed directly or scheduled for later execution. Lowering operations require confirmations and signatures, with proof requirements verified before sending transactions, ensuring secure, authenticated transfers.
Proof and Transaction Management: Handles proofs for token transfers, including the ability to regenerate proofs for pending or failed lower transactions. Stores and retrieves data about lower transactions in various states: ready-to-claim, pending, and failed, providing robust tracking and error recovery mechanisms.
The Ethereum-events pallet handles the management of Ethereum events and their processing within the blockchain environment. It supports tracking event submissions, validation, and challenges while providing secure mechanisms for event processing and recording.
Key functionalities:
Event Tracking and Management: Efficiently tracks and manages Ethereum events, including ingress counters, to maintain order and ensure unique identification of events.
Event Validation Pipeline: Handles the lifecycle of Ethereum events from submission to processing, with mechanisms to mark events as unchecked, pending, or processed.
Challenge and Validation System: Allows validators to challenge event validity, enforcing quorum-based decision-making for robust and decentralized validation.
Event Integrity Protection: Ensures that events cannot be processed more than once, maintaining a consistent and secure state in the blockchain’s event records.
The Avn Pallet provides functionality that is common for other pallets such as handling offchain worker validations, managing a list of validator accounts and their signing keys.
Key functionalities:
Validator List: Maintains a list of active validators, each represented by an address and a cryptographic key.
Bridge Contract Address: Stores the address of an associated bridge contract on the Ethereum network.
Off-Chain Worker Integration: Provides mechanisms for off-chain workers to run only once per block to avoid duplicate operations. Includes functionality for interacting with external services for retrieving finalized blocks and requesting signatures.
Signature Verification: Offers tools to validate Ethereum ECDSA signatures, ensuring that signatures are produced by known validators.
Currently, EWF provides two (2) implementations of Worker Nodes:
In a nutshell, a Worker Node is a single processing unit in a network of nodes which has the ability to execute enterprise calculations, and submit votes to derive consensus-based, transparent results.
A general worker node typically involves below processes:
Sync operator subscriptions
Download and install solutions
Run solutions and cast votes
The worker node periodically syncs on-chain data for operator subscriptions. The syncing process informs the worker node that either a set of solutions is available to be installed (new subscriptions) or uninstalled (unsubscription or subscription expiry).
When the worker node is enabled to run the flows, it downloads the actual Node RED flow JSON files from IPFS using the CID. Subsequently, the flow files are installed in the local Node RED server bundled in the worker node itself.
An enterprise use-case is considered executing when the flow files get installed and are running in the Node RED server of the worker node. Each solution flow determines when and how the solution flow produces a result, and when to use the result to cast a vote.
Casting a vote simply follows below steps:
A solution is triggered to process the flow
The flow gets executed to produce a result
The result is transformed in to a Merkle Tree Root Hash
The flow requests for the worker to submit the hash as a vote
The worker enqueues the voting request
The worker submits the vote to EWX
Why does the result gets transformed into a Merkle Tree Root Hash? EWX nor the Worker Node never stores raw or calculated data unless the solution flow created by the enterprise themselves are designed and approved to do so after an extensive audit. EWX as a chain only stores the result hash for optimum performance and data security.
The Merkle Tree Root Hash can represent the actual calculated data as a single, unique vote. However, an adversary can never reverse-engineer the hash to derive the calculated or raw data. This ensures that the entire EWX ecosystem is secure and robust.
To learn more about worker nodes, see .
🖥️
🗄️
Solution flows, which are currently in the form of flow JSON files, contain the actual detailed specifications and implementation of a specific business use-case. These are stored in a decentralized file storage called . The EWX registry stores the of the flow along with the rest of the solution metadata. These are stored locally in the worker node during the syncing process.
Please refer to potential for some examples of what a worker node can actually do.
Marketplace app requires an operator account to make the most of the features it offers. Connect your EWX account, fund your account and sign it up as an operator by following these guides:
A worker node account is used mainly for running worker node logic(s). Though you can earn base rewards by subscribing to a solution group, participating into worker node network allows you to earn extra rewards.
Worker node accounts do not hold any tokens and cannot access your wallet account tokens. They are only used for computation result submissions
You can recover your linked worker account's seed phrase using feature as long as you have your password.
As per :
Please keep your seed phrase somewhere safe
Create
Connect
Fund
Disconnect
Create
Import
Export
Link
Unlink
The Marketplace App is a decentralized desktop application which provides an intuitive interface for the general community having limited technical background to easily participate in running worker nodes on their local machines.
It supports Windows, MacOS, and Ubuntu systems.
Select any of the solution group that is available for subscription and click Opt-in
Enter the name you desired for your operator account in the text field, select country of residence and then hit Continue
Confirm the transaction in your wallet
Once approved, wait for the transaction to be executed
The Marketplace app allows you to browse through a list of available solution groups with or without a wallet being connected. Without the connection however, you won't be able to perform token lifting, lowering or subscription. To connect:
Click on Connect
button either on the left-side panel or on top corner of the screen
Choose your preferred wallet to connect (SubWallet/Ledger)
1. Scan the displayed QR code using your SubWallet app, select an account that you wish to connect and click on Approve
You will see "Account connected successfully" message on the Marketplace app screen. Click Continue
to proceed
To disconnect, click on the operator address located on the top-right of the screen and then click on the disconnect icon as highlighted below:
Once disconnected, you will no longer able to use certain features, such as lifting, lowering or subscribing
Download and install the Marketplace app on your machine from the download links provided in the official .
account that is to Marketplace
Some in the EWX account for transaction fee
You will see a success message along with the transaction URL to Polkadot explorer. Your operator account is now registered
Please refer to for more info.
Click on Set Worker Account
on the left panel located under Total EWT Balance in your Dashboard
Click Next
(with default to "In this machine") to proceed
Click Import Seed Phrase
Open your mnemonic backup file and copy the contents. Then, click on Paste from clipboard
and click Continue
Enter password and re-enter it again for verification before clicking on Import Worker Node Account
Once completed, a success message will be shown
Funding an operator account requires token "lifting" from an EWC account. The opposite of this is called "lowering" where tokens are being transferred back to an EWC account from the operator account. We covered those topics in a different section of this guide:
Lifting tokens: Lifting tokens
Lowering tokens: Lowering tokens
Your operator account balance will be displayed on the left panel as EWX
and also in the popover menu when you click on your operator address
Click on Set Worker Account
on the left panel located under Total EWT Balance in your Dashboard
Click Next
(with default to "In this machine") to proceed
Click Generate account
Click Confirm
Create a password and re-enter it for verification. Click Create Worker Node Account
. You will be prompted to enter this password during app start up in order to unlock your worker account
Click Backup Mnemonic
and store the file somewhere safe before clicking on Continue
Verify the mnemonic based on your backup file in the next screen and click Continue
An operator account is only allowed to link with a single worker account at a time. Unlinking allows you to generate a new worker account or import another worker account that can be linked with the same operator.
Unlinking will stop your worker node from casting votes
Click on Unlink
menu on the left panel of the Dashboard
Click Unlink
to proceed or Cancel
Approve the transaction in your wallet
Wait for the transaction to finish execution
A successful message with transaction URL will be displayed when unlinking is successful
Congratulations, your worker account is successfully created
There are 2 types of tokens being used in Marketplace namely EWX and EWC tokens. Listed below are the differences between them:
Used for marketplace transactions such as subscriptions and transaction fees
Associated with operator account
Used for funding operator account (lifting and lowering)
Multiple EWC accounts can be added to Marketplace and will be summed together
Create EWC Account
Manage EWC Accounts
Lift
Lower
Before your worker node is able to cast votes, your worker account needs to be linked to an operator account first. This is a one-time step only and you will not be prompted to link again in the future (unless it's being unlinked).
Click Enable Solution Group
either from Dashboard or Manage Subscription page
Read through the important information regarding participating into a worker node network. Click Continue
to proceed or Dashboard
to cancel
Click Continue
to proceed
Approve the transaction in your wallet
Wait for the transaction to finish execution
Create a new account with seed phrase
Save the seed phrase somewhere safe and verify
Toggle Energy Web X and EWC network in Manage networks
Toggle EWT in Manage tokens
Search for EWC in App Catalog, since EWC requires Ethereum, you'll have to install it as well
Search for Polkadot in App Catalog and install
solution group
Once you see the transaction successful message, your worker account and operator account are now linked
To create an EWC account, first choose your preferred wallet by either downloading the app or using Ledger (via ). Alternatively, you also may refer to our interactive guide .
Before using Ledger on the Marketplace App, the Polkadot app needs to be installed in the hardware wallet device. To do so, open the Ledger Live application in your computer and go to "My Ledger" section of the sidebar. Make sure your Ledger device is connected to the computer and unlocked when doing this.
In the "App Catalog" section, search for the Polkadot app and install it.
Confirm that the Polkadot app is correctly installed.
Now the device is ready to interact with the Polkadot chain, including the EWX chain.
Ledger Live app does not display EWX account and its balance as it is not yet supported. EWF is already including this in the roadmap.
The Marketplace App directly communicates with your Ledger device without the need to use Ledger Live as long as Polkadot is installed.
The first step to use Ledger with the EWX Marketplace application is to connect your hardware wallet. In this case, the process is very similar to connecting any other browser or mobile-based wallet. The user needs to click on the “Connect” button that appears both in the top-right corner of the screen.
A dialog will pop up, and the user can choose its preferred method to connect the wallet - in this case, choose Ledger.
The user will be prompted to continue the connection process in the hardware device.
By default, the Ledger device will look like this when unlocked:
After starting the connection process, the user needs to open the Polkadot application on the Ledger device.
After opening the Polkadot app (pressing both buttons at the same time), this will appear on the device:
That means there is an ongoing operation that needs to approve. To do that, press the right button until the “Approve” screen is displayed.
After approval, below shows the confirmation that the user is connected to the Ledger account successfully.
After successful connection, the EWX Account will be displayed on the upper right corner of the screen.
A new EWX address will be generated for first time users. The connected address is derived from the account which seed phrase is automatically generated and stored in the Ledger device.
One Ledger device can only represent a single EWX operator account.
The process is very similar to the browser-based wallet, and applies to all the different transactions available on the app: lowering, sign up as operator, subscribe, link worker account, unsubscribe, top-up stake and claim rewards. After initiating a transaction, for example - lowering, the user will see a ‘Pending confirmation’ screen. The user needs to confirm the operation using the same method used to connect to the wallet.
When this screen appears, open the Polkadot account on the Ledger device, just like before.
After opening the app, review and approve the operation.
The details of the transaction are displayed on the device just like on the next sample screens.
Proceed to approve the operation.
The progress screen on the app immediately changes, displaying the “Executing transaction” title. At this point, the transaction has been sent and is being processed on the blockchain.
If the transaction finished successfully, the success screen and the corresponding tx hash are displayed. This concludes the entire transaction process.
Click on Add EWC Account +
button that is available on the left panel
Enter a valid EWC account address and press +
. You may add multiple accounts and they will appear as a list
Click on ⋮
icon next to the EWC account balance, and choose Manage Accounts
There's a -
icon right next to each of the added accounts. Click on it to remove
To fund an EWX Account, the user can lift tokens from their existing EWC account or by creating a new one. EWC accounts can easily be created and funded using exchanges offering EWT such as or .
Find the Lower
menu in the account popover menu on top-right of the screen. You may also click on ⋮
icon located next to your EWX balance then click Lower Tokens
Enter lowering amount and click Approve
You may also use the slider or pre-defined buttons that will calculate based on your account balance
The minimum amount for lowering is 1 EWT
Enter an EWC address and/or select an EWC account for which the lowering amount will go to. Make sure that the chosen account is highlighted before clicking Next
Review the transaction and click Confirm
Approve the transaction in your wallet
Wait for the transaction being executed
You will see a "Transaction scheduled" message along with the transaction URL to Polkadot explorer
Lowering operation will take approximately 24 hours to succeed
Find the Lift
menu in the account popover menu on top-right of the screen. Or, if you have added an EWC account previously you may also click on ⋮
icon then Lift Tokens
Select your preferred EWC Wallet (WalletConnect/Ledger)
Check your wallet and select an account to connect
Enter lifting amount, click Approve
You may also use the slider or pre-defined buttons that will calculate based on your account balance
The minimum amount for lifting is 10 EWT
Review the transaction and click Confirm
Approve the transaction in your wallet & wait for the transaction being executed
You will see a "Transaction scheduled" message along with the transaction URL to Polkadot explorer
Lifting operation will take approximately 30 minutes to succeed
Your total EWT balance of currently connected EWX account and added EWC account(s) are available on left panel of the Marketplace app. You may Lift, Lower and Manage tokens by clicking the ⋮
icon located next to each of the account balance.
All of your lifting and lowering transactions can be tracked in the Transactions list. Its menu is located at the top of the page, next to notifications.
There are 3 tabs for viewing namely All, Lifting and Lowering. You may search for a specific transaction by using the search feature. Some useful transaction information available are:
Date and time
Type (Lifting/Lowering)
From and to addresses with EWX and EWC indicators
Token amount lifted/lowered
Status
Transaction hash
Explorer url
It might take some time for the transactions to appear on the list after you performed lifting and/or lowering
Find the Top-up
button either in Dashboard or Manage subscription
A pop-up will appear, enter your top-up amount in the text field
You may also use the slider or pre-defined buttons that will calculate based on your account balance
Review your top-up amount before clicking on Confirm
Approve the transaction in your wallet
Wait for the transaction being executed
You will see a success message along with the transaction URL to Polkadot explorer
Your subscription amount will be displayed as + <value>
as an indicator that the top-up amount will be added to the total subscription in the next reward period
Start earning rewards by subscribing to any of the solution group available on Marketplace. Browse through the solution group list on the Discover page, and pick on a solution group of your interest to see its details such as minimum/maximum subscription amount, base reward, active solution group reward and more.
Subscribe
Top-up
Manage
Unsubscribe
Click Opt-in
to subscribe to a solution group
If no operator account is connected then "Connect" button will be displayed instead
A pop-up will appear for you to enter your subscription amount. Once you're satisfied with the value, click Continue
You may also use the slider, click on the percentage buttons or "Max" where the app will calculate the amount based on your account balance
Subscription amount must be within min/max subscription amount
Review your subscription amount and click Confirm
Approve the transaction in your wallet
Wait for the transaction being executed
You will see a success message along with the transaction URL to Polkadot explorer
For new subscriptions, the worker nodes will only start voting in the next reward period
Go to the Dashboard page to view or
Some of the solution groups have Unsubscription Delay
enabled. This means that unsubscription will only take place after a certain number of blocks are processed. As an example, assuming that 1 block takes around 12 seconds and the delay requires 100 blocks, we can approximate that the unsubscription will take place around 20 minutes later.
You will see the information related to unsubscription delay when you click Opt-in
.
Click on Unsubscribe
button in the Manage Subscription page
A pop-up will appear, click Continue
to proceed
Click Confirm
to submit a transaction
Approve the transaction in your wallet and wait for the transaction to be executed
You will see a success message along with the transaction URL to Polkadot explorer
Click Set Worker Account
in the Dashboard's left panel
Choose Remote Server
Enter a valid worker node address and click Accept
Click Continue
to link the remote worker with operator account
Approve the transaction in your wallet
Wait for the transaction being executed
You will see a success message along with the transaction URL to Polkadot explorer followed by another message indicating that remote worker is successfully set
There are 2 locations which you can choose to run your worker node: in your local machine or remotely. As the name suggests, remote worker will not download and run the worker node logic in your local machine. Since logs and votes history are being stored locally, these information won't be available when you are using the remote worker option.
In Dashboard page, look for Select Where to Run Worker Node
that is located on the left panel of the screen and click on the switch button to change worker node location from In this machine
to a remote location
Click Continue
to proceed with switching worker node location
Confirm your currently linked worker account address, click Accept
If you have not link your operator account yet, then you will have to enter the remote worker address
A success message will be displayed
Votes count per period will be displayed on Dashboard and in manage subscription pages.
In manage subscription page, there are list of both active and inactive solution group nodes that allow you to access their respective transactions and logs across reward periods. There are also status (Active/Inactive) and health status indicators for each of the solution group nodes.
Logs and transactions are not available for remote worker node and they will be disabled
Transactions
will list all of the transaction records grouped by reward period. You may change the reward period number to view past data or search the logs and even filter the log type (All/Info/Success/Error)
For graphical representation of votes per reward period, you may switch to Graph
tab. Hover on any of the reward periods to view the infos displayed at the top of the graph.
Similarly, worker node logs can also be searched, filtered by status and switched to historical data based on their reward period.
Go to Dashboard, choose any of the subscribed solution group and click on Enable Solution Group.
You can also find the same menu in Manage Subscription page
A prompt will appear. Click Continue
to proceed or Dashboard
to cancel
System will check if you have linked the accounts. If yes, you'll be prompted to download the solution group node logic. Click Download
to proceed
Check download and installation progress displayed next to the solution group name
For a newly subscribed solution group, Auto-Installation Scheduled
will be displayed since node will start voting in the next reward period
Once the status changed to Running, node will start voting. You may pause and resume the solution group and the status will update accordingly
You can manage your subscriptions from Marketplace app's Dashboard. Here you are able to view list of solution groups that you've subscribed and unsubscribed (with unclaimed rewards only).
Enable/pause/resume solution group
The features in Manage Subscription page are pretty much the same as Dashboard except for Unsubscribe
and infos related to voting. Read more:
Check subscription amount, , current reward period and at a glance
subscription amount
Configure Remote Worker
Switch to Remote Worker
Participate to Worker Node Network
Votes Casted per Period
Reward Period
Check Rewards
Claim Rewards
A Worker Node is a lightweight off-chain processing unit with an ability to execute business logic in a form of NodeRed flow file.
Worker Nodes functionalities and EWX blockchain connection enable transparency and verification capabilities for your system. Additionally, thanks to its lightweight architecture, worker nodes are perfectly suitable and a good fit for applications that require decentralized execution components.
Worker Node, apart from its initial set-up, is entirely controlled by Blockchain based actions. That means that after your initial Worker set-up is completed, no additional changes will be needed.
Blockchain based action controlling Worker Node behavior could be applied via the Marketplace App - an EW built Blockchain Operator UI, or by directly interacting with blockchain.
Below you can find a High Level Architecture to understand how worker node fit into the wider EWX ecosystem.
Server based Worker Node main differentiation is visible when you compare it to the Marketplace Desktop App.
The Marketplace Desktop App contains both Worker Node running engine as well as Blockchain Interaction UI.
For Server based Worker Nodes, the Blockchain Interaction UI was de-coupled from Worker Engine to achieve the best from both sides.
You want to have a reliable PROD-level set-up for your Worker Node
You don't want/can't use desktop application for blockchain set-up management/worker engine (e.g. because you don't want to keep your desktop running 24/7)
You anticipate heavier loads to be run on top of your Worker Node
A Worker Node executing logic can actively contribute in meaningful way to range of use cases. Examples can be found here: .
To understand more about how Worker Nodes can be used, please go to the section.
There are two options on how to deploy your Worker Node:
If you would like to run Worker Node in fully managed (SaaS) or in Bring your own cloud (BYOC) mode, please our Worker Node offering. Please refer toDocumentation for full details.
Alternatively If you would like to use open-sourced version, please follow instructions covered in .
Pending rewards can be found in Dashboard and manage subscription page.
If the value of pending rewards is small, we'll display it as < 0.0001
instead
Click Claim Rewards
button either in Dashboard or manage subscription page
Claim rewards button will be disabled if there is no reward earned yet
Click Confirm
to proceed
Confirm the transaction in your wallet
Wait for the transaction to be executed
You will see a success message along with the transaction URL to Polkadot explorer
Your pending rewards will be reset to 0. Please bear in mind that similar to lifting/lowering, your account balance will take some time to reflect the claimed rewards
Lifting is the process of migrating EWTs from Energy Web Chain (EWC) to Energy Web X (EWX).
Lifted tokens take approximately 30 minutes to reflect in your EWX account after successful transaction from the Marketplace app.
Lowering is the process of migrating EWTs from Energy Web X (EWX) to Energy Web Chain (EWC).
Lowered tokens take approximately 24 hours to reflect in your EWC account after successful transaction from the Marketplace app.
Yes, follow these steps to manually create an operator account:
Select MAINNET EWX, depending on your use case.
As the operator, call the extrinsic workerNodePallet.signupWorkerNodeOperator
.
As the operator, call the extrinsic workerNodePallet.registerWorker
, passing the address of your worker.
Finally, as the operator, call the extrinsic workerNodePallet.subscribeOperatorToSolutionGroup
. To obtain the group, go to Developer -> Chain state -> workerNodePallet
-> solutionsGroups
.
For now, single Operator to Worker account assignment is supported. You can always disconnect previously connected Worker Account and replace it with different one.
Yes, you can switch and move to new Worker any moment. If you dont want to tamper with blockchain-setup you just need to use the same Worker Account Seed in your new Worker. Keep in mind that old Worker Node instance should be stopped right after new one is set up.
Yes, you can move to another type of worker any time you want. The only thing you need is to use the same Worker Account Seed for configuration of your new worker.
Once new worker is set-up turned on on desired platform , please always remember to turn-off previous instance to omit double-voting which can potentially lead to unintended behaviour.
When you subscribe to any Solution Group using your Operator Account linked to Worker Account configured for your Worker, there is a max-24-hours period before any votes from your Worker will be accepted by EWX.
After that time, your worker will start executing Solutions WorkLogic from Solutions that are in Active state in non-expired Solution Groups that your Operator Account is subscribed to.
You should be able to view votes being submitted from your Worker
In Worker Node logs
There is no limit on amount of Worker single user can set-up, but keep in mind that single Operator Account can have only single Worker Account linked
You can set-up multiple Worker Nodes on the same machine if resources are allowing for that.
Single Worker can handle multiple Solution Group subscription and therefore run multiple solutions simultaneously.
While there is no official EW-built dashboard, there are several community/partner built dashboards that you can check.
Q: For one solution I see 50 votes while for other only 5 votes that are being casted by my Worker Node per reward period (24-hours), is that normal?
Each solution represent unique logic therefore different quantities of votes could be perfectly normal behaviour to expect.
As business process captured within solution logic is different, therefore also schedules and triggers can be also totally different.
E.g one solution can demand a steady voting every 30 min, while other can have an asynchronous triggers coming from real us of a given app.
Please keep in mind, that system does not reward quantity of voting itself, but rather quantity of votes when votes were needed - meaning it incentives your worker to run 24/7 instead of casting large amount of votes at random times.
Visit .
Go to .
You can use or explorer.
In after checking details of Solution Groups you subscribed to
By querying as shown in Picture (Use Operator Address here)
By querying as shown in Screenshot (Use Worker Address here)
Current reward period is being displayed in Dashboard and manage subscription page.
Read about Reward Period
This page is intended for MacOS users only
Some worker node solutions require location services to work properly. You will see this message when you start the app when the permission is not enabled.
Go to System Settings
> Location Services
Find EnergyWeb Marketplace
from the list and toggle the switch to on. There is no need to restart the app
Below are some examples of how a Worker Nodes are being used within Projects that EW is conducting with various of partners.
Learn more about our live use-cases:
The Operating Envelopes Partitioning is the most crucial step in the overall operating envelope passthrough process.
An "operating envelope passthrough" refers to a mechanism that allows for adjustments in the operational limits or envelopes of generating units or electrical systems. These envelopes define the safe operating conditions for various generation assets and network elements, helping ensure reliability and stability in the energy supply.
When unforeseen circumstances arise, such as significant changes in demand, generation availability, or system disturbances, the operating envelope can be exceeded. The passthrough mechanism enables market operators to make necessary adjustments to account for these situations, ensuring that the operation of the market remains secure and efficient. This process is vital for managing risks and maintaining grid reliability amidst changing conditions.
The process starts when the DNSP/DSO sends their operating envelope which needs to be partitioned accordingly, and forwarded to their respective aggregators. The partitioning process needs to take place in a fully trust-less and secured environment where data are pseudo-anonymized to protect aggregators' business interests.
The OEP solution aims to test the above business case. Below are the steps which constitute the OEP solution flow:
Fetch OEP request from the operating envelope sender every 30 minutes
Parse the operating envelope into JSON Object
Partition the operating envelope according to the aggregator using the NMI to aggregator mapping
Submit the root hash to EWX as a vote by initiating the EWX Marketplace App Integration node
Fetch to aggregator mapping from the NMI Registry. The NMI Registry is a backend API service which simply contains the mapping between NMI and aggregator.
Generate the of the partitioned data
A ZEL Request refers to a "Zero Export Limit" request. This request is made by generators or dispatchable assets to set their output to zero, often indicating that they are not able to inject power into the grid for a specific reason.
ZEL Requests can be relevant in several scenarios, such as:
Maintenance: When maintenance is being conducted on a generator, it may need to curtail its output temporarily.
Technical Issues: If there are technical problems that prevent a generator from operating safely or effectively, a ZEL Request signals that they will not produce energy.
Market Conditions: During high levels of generation leading to potential oversupply in the grid, generators might reduce output to maintain stability.
Market operators use these requests to manage the overall balance of the electricity supply and demand, ensuring system security and reliability.
The process starts when a retailer sends their ZEL request which needs to be partitioned accordingly, and forwarded to their respective aggregators. The partitioning process needs to take place in a fully trust-less and secured environment where data are pseudo-anonymized to protect aggregators' business interests.
The ZEL Request Partitioning solution aims to test the above business case. Below are the steps which constitute its solution flow:
Fetch ZEL request from the request sender every 30 minutes
Parse the request into JSON Object
Partition the ZEL request according to the aggregator using the NMI to aggregator mapping
Submit the root hash to EWX as a vote by initiating the EWX Marketplace App Integration node
Before you start using your Worker Node and be able to control blockchain set-up fully using Marketplace app, there is a set-of one-time actions that needs to be done as a prerequisite.
Worker Node Account - an EWX account with the sole purpose of casting votes on behalf of the operator (interacting with blockchain).
Please be informed that below actions can be conducted using both:
Please follow below steps to sign-up as an operator.
Connect your operator account
Approve the connection request in your wallet
Once connected, you will be redirected to the Discover page and you will see your "operator" public address in the upper right corner of the screen as highlighted below
Browse through any solution group and click on it. You will be redirected to its details page. Then, click on the "Opt-in" button
The sign-up operator dialog gets displayed. Input your details accordingly and approve the transaction in your wallet.
After the signing-up as an operator, you will be prompted to stake tokens to your selected solution group from the Discover page. Stake your desired amount and approve the transaction in your wallet.
After subscribing to the solution group, you will be prompted whether to participate in a worker node network.
After setting your worker node public address above, you will be prompted to link your worker node account to your operator account.
Once done, your basic set-up is ready and you can continue with further Marketplace App Operator console exploration OR get back to your Server-based Worker Node set-up if it wasn't finished already.
Fetch to aggregator mapping from the NMI Registry. The NMI Registry is a backend API service which simply contains the mapping between NMI and aggregator.
Generate the of the partitioned data
Account - an EWX account which serves as the main account of the operator to be used in EWT management (lifting/lowering), subscriptions, rewards, etc
Public Address of the Worker Node Account - the worker node account must already be created using any of .* *Disclaimer -> If you use Launchpad Managed Worker Node offer, there is an option to automatically generate Worker Account along with Worker set-up.
Operator Account with enough EWT balance - create an account from and make sure to enough EWT for signing-up as operator, linking worker account to operator, , etc
Marketplace Desktop App - download the latest version from
Marketplace Web App (Recommended) -
To sign-up as an operator, you must prepare your "operator" EWX account. This account is just a normal account created on EWX network via any supported Polkadot wallet. For now, we suggest to use or Nova Wallet. Make sure to always keep your seedphrase copied and secured elsewhere. In addition, please ensure that your operator account has sufficient EWT balance to proceed with any on-chain transaction.
Similarly as for blockchain or DLT (Decentralized Ledger Technology) application, Worker Node technology should mainly be considered for specific use-cases.
You can consider utilizing Worker Nodes for either Active or Reactive use case types.
Active use cases describes a situation when system relies on Worker Nodes as a primary executors of business logic. In such a case, Worker Nodes plays a non-removable role from the system and biggest advantage is their flexibility, lightweight architecture and decentralized nature. Example - Oracle Network ------------------------------
Reactive use cases describe a situation when system rely on Worker Nodes as a verification layer that ensures that result of the logic execution is done in tamper-proof and trustless manner. The decentralized nature additionally participates to the overall system security and ensures verification possibilities. Example - verification of 24/7 energy matching algorithm
Main roles that Worker Nodes play in above use case type:
Application runs the business logic itself along with Worker Nodes
Worker Nodes executed functionality is part of a "bigger" system
Reactive way of using Worker Nodes offers a balance between Speed & Security
There are four types of problems that Worker Nodes along with their capabilities coming from EWX Ecosystem are best equipped to solve.
Need for trustless execution (decentralized)
(Public) Verifiability of results e.g. for auditing needs
Need for system participants incentivisation
Need for blockchain use with strong security, advanced governance and data privacy care
Each use case type is presented below.
Trustless execution - Worker Nodes use ensures that multi-party consensus can be achieved.
Verifiability - Worker Nodes EWX integration allows for auditability and verifiability of execution results
Participants incentivisation - Worker Nodes EWX integration allows for incentivisation of active, well-behaving system contributors
Need for Blockchain use with maintained privacy - Use of Worker Node and EWX ecosystem integration allows for various of features that are often looked for when there is a need for Blockchain use. E.g.
Strict governance with options like Operators Whitelisting
Fully private set-up and isolation of Worker Nodes execution within private network
Not exposing private data on public blockchain
Learn about Energy Web's different Green Proofs solutions in our devoted section on .
SAFc is an innovative system designed to promote the adoption of Sustainable Aviation Fuel (SAF) by issuing and managing SAF certificates. These certificates serve as verifiable proof that a specific volume of SAF has been produced or utilized, ensuring transparency and accountability in the aviation industry's transition to greener fuels.
The Green Proofs for Bitcoin (GP4BTC) platform is a solution to bring consistent metrics and much-needed transparency into the climate impacts of individual Bitcoin mining companies so industry stakeholders can make better decisions to align with a net-zero future.
The Green Proofs system ensures that energy usage is verified as green by managing and validating green certificates for various energy operations. All data sent to workers originates from the Green Proofs application, which transforms it into operations like issuing, transferring, or retiring certificates.
EW Green Proofs is a customizable solution for registering and tracking low-carbon products and their attributes throughout complex supply chains.
The Green Proofs for EVs (GP4EV) system plays a crucial role in ensuring that electric vehicle (EV) charging is green by managing and verifying green certificates for each charging session. All the data sent to workers in this process originates from the Green Proofs application, which transforms this data into operations like issuing, transferring, or retiring certificates.
EW Green Proofs is a customizable solution for registering and tracking the environmental attributes of commodities, including renewable energy certificates (guarantees of origin), the carbon content of sustainable jet fuel or maritime shipping fuel, or green hydrogen.
Today it’s challenging to create standard procurement tools and establish mature markets for emerging clean commodities and products that span multiple geographies and jurisdictions because it's really difficult to establish a unifying framework, and deploy a common software solution, to measure, verify, and track energy attributes and sustainability claims throughout supply chains. This especially applies for products that have complex, global supply chains like aviation fuel, or steel, or even finished products, but also applies to electricity in many contexts (particularly deregulated markets and e-mobility).
In these settings (and to an extent, even in situations where established registries exist), it’s challenging for external stakeholders to independently verify anything about the process by which sustainability reporting and clean energy tracking is done. This makes it costly to audit, difficult to get buy-in from the general public, and challenging to grow markets.
Markets need a simple way for everyone involved to be able to verify that the data processing and the business logic and the data itself is all being handled in a proper way. This can help build trust and credibility, so that clean commodities can be truly differentiated and marketed as a value-added solution.
At a macro level, the goal of Green Proofs is to help energy markets and supply chains accelerate decarbonization by following the playbook that electricity markets used over the last decade to advance renewables: using voluntary purchasing of renewable electricity from large electricity buyers through various instruments like PPAs, RECs, and other procurement instruments that are widely recognized, easily implemented, and trusted. The main problem that we aim to solve is that in markets and commodities and supply chains where it's not practical for one single entity to be the sole administrator (or registry operator, or authority to govern the entire market) Green Proofs provide a solution that allows many different participants to mutually authenticate and engage in transactions while knowing that a set of rules and business logic that defines how the clean commodities will work is being executed correctly and securely and transparently.
In 2023 Energy Web is focusing Green Proofs development on three specific use cases:
24x7 Clean Energy Matching for independent power producers, energy retailers / suppliers, e-mobility providers, and distribution utilities.
Sustainable Aviation Fuel tracking for fuel producers, airlines, and institutional aviation buyers.
Green Proofs for Bitcoin, an initiative to bring an independent, standardized energy measurement system to the Bitcoin mining industry.
Looking ahead to 2024 and beyond, there are many other emerging sectors like green steel, green hydrogen, some other heavy industries in the hard-to-decarbonize sectors that could leverage Green Proofs.
Green Proofs addresses two challenges currently facing clean energy supply chains:
In complex, multi-stakeholder environmental commodity markets, central administrators create bottlenecks. Well-intentioned regulators and standards bodies understandably want to increase their oversight of commodity markets to ensure that sustainability claims are accurate. However, given the inherent complexity and geographic scope of the supply chains targeted in this proposal, it is very costly and cumbersome if not impossible for a single entity to take on the responsibility of qualifying producers, administering transactions, and accounting for all market activity. For environmental commodity markets to scale and accommodate thousands of producers and facilities meeting demand from millions of buyers, methods to trace and verify data associated with these products need to evolve.
Because data is siloed across multiple participants, markets are opaque and commodities are difficult to differentiate. The supply chain for many emerging environmental products is inherently complex from an accounting and data reconciliation perspective. Data needed to establish that something is true about each of these products is fractured across multiple market participants, each of whom has limited information that is narrowly related to their specific role in the supply chain. This approach makes it difficult for interested buyers to trace products from cradle to grave, trust associated attributes, and as a result dampens demand. This problem is largely by design; historically, commodity markets have been optimized to produce interchangeable, identical products, so there was no need for full transparency. Yet differentiating sustainable vs. conventional aviation fuel, renewably produced vs. fossil fuel-produced cryptocurrencies, or hydrogen made from renewables vs. natural gas requires harmonizing multiple datasets across multiple organizations. These entities need a way to jointly share and process trusted data without revealing trade secrets or other confidential information; legacy technologies such as centralized databases offered as-a-service by large technology companies are not capable of meeting these requirements.
Green Proofs provides the simple user experience of a traditional book-and-claim registry platform, but leverages decentralized, open-source technology to unlock advantages over conventional alternatives in three key ways:
Streamlined auditing and verification capabilities enhance transparency and trust: In Green Proofs, user identities (and their associated credentials, roles, and permissions), low-carbon commodities, and the business logic that defines their various interactions and lifecycles are anchored as unique digital assets on a blockchain. No single party can unilaterally delete or tamper with these data. At the same time, many parties can quickly and independently verify the data, eliminating complex and costly data reconciliation processes. This enables a robust and transparent tracking system that improves confidence among stakeholders that emissions claims associated with registry activity are legitimate and unique.
Shared ownership and governance creates incentives for industry adoption: Green Proofs offers a unique commercial and governance model in which producers and buyers not only own the IP underpinning the registry (and capture value from its adoption) but also have the ability to jointly make decisions about its operation, as well as the creation and assignment of roles and permissions for users within the system. This supports traditional models of standards creation and administration (i.e., a single entity writes the standard and updates it from time to time) as well as decentralized models in which several organizations collaborate on this task. It can also support multiple companies serving as issuing bodies (while remaining subject to oversight and audits rights from other stakeholders), and a multilateral governance approach to transaction and other fees (where a consortium of relevant stakeholders can set and update fees on an ongoing basis).
Scalable and secure identity and access management: Green Proofs streamlines enrollment processes for users by leveraging a self-sovereign approach to identity and access management. In this approach, every participant manages their own identity, but acquires roles and permissions through credentialing processes that are jointly established by relevant stakeholders. Embedding identity and access management logic in this way obviates the need for a central administrator to review and approve users and improves security by eliminating a central repository of user data and credentials.
Green Proofs is built to provide maximum customizability while maintaining the simple user experience of traditional registry platforms. As an open-source solution, Green Proofs benefits from continual improvements and enhancements contributed to its codebase by Energy Web’s global community of members and customers.