ECP Funding Operations Guide
Last updated
Last updated
ECP (Edge Computing Provider) is a crucial component in the Swan Chain ecosystem and is responsible for executing Zero-Knowledge (ZK) computation tasks. The Sequencer is an optimization component aggregating proofs submitted by multiple ECPs, processing them in batches to reduce gas fees and improve overall efficiency.
CP Account (Computing Provider Account): An independent on-chain contract account for CP operations and fund management. FCP and ECP have the same account structure.
Owner Address: Hold the highest authority to manage the CP account.
Beneficiary Address: Receives rewards for ZK tasks.
Worker Address: Used for submitting proofs.
Collateral Account: ECP's collateral account in the collateral contract (SwanC).
Escrow Account: A account for storing ECP's collateral in collateral contarct, ensuring that ECP can receive ZK tasks.
Sequencer Account: ECP's account in the sequencer contract, used to pay for gas fees required when submitting ZK proofs.
ETH is required for transaction gas fees. Follow these steps:
Cross-chain your ETH to Swan Chain to obtain ETH
Prepare sufficient ETH to account for potential fluctuations in network gas fees
ECP requires SWAN as collateral. You can purchase SWAN from centralized exchanges (CEXs).
Contract Address: 0xBb4eC1b56cB624863298740Fd264ef2f910d5564
Collateral amounts dynamically adjust based on network computing power.
Maintain sufficient collateral to ensure continuous task eligibility
Depositing SWANU to the Collateral Account: Use the following command:
In the ECP configuration file, set EnableSequencer = true
and autoChainProof = true
When autoChainProof
is true, ECP will prioritize submitting proofs via the sequencer. If the sequencer lacks sufficient gas, it will automatically submit proofs on-chain. If set to false, ECP won't submit tasks when the sequencer lacks gas.
Note: The sequencer periodically processes tasks and deducts from the sequencer account. If the balance is insufficient during settlement, it may become negative. ECPs need to refund to receive new tasks.
Read Computing Provider Income to learn more.
Alternatively, you can use the CP command to view UBI tasks:
The result will look like this:
To maintain network performance and accountability, CPs are subject to a precise slashing mechanism that penalizes inefficient or unreliable computing services. For each failed task, CPs face graduated penalties:
Edge Computing Providers (ECP) lose 0.025% of their current full collateral amount per failed task (approximately 0.88 SWAN for a 3080 GPU), with around 48 tasks processed daily.
If a CP's collateral amount falls below the required threshold, they become ineligible to receive Universal Basic Income (UBI) tasks. To mitigate the risk of unexpected task exclusion, CPs are advised to maintain a buffer in their collateral amount.
Backup the CP_PATH directory (default: ~/.swan/computing)
a) Withdraw from collateral account:
b) Withdraw from sequencer account:
c) Withdraw from escrow account:
Initiate withdrawal request:
Confirm withdrawal after 7 days:
Note: Escrow account balance may fluctuate due to periodic settlements. It's advisable to wait 24 hours after changing taskTypes
before requesting the withdrawal. Confirmation can only be made 7 days after the initial request. Funds will be withdrawn to the CP's ownerAddress
upon confirmation.
Visit Swan Chain's official bridge website:
SWAN is currently listed on , , and .
Review our for detailed information
Monitor the for computing units and base collateral trends(upcoming feature)
When using the sequencer, pre-fund the CP's sequencer account with ETH on Swan Chain. Currently, the gas is decided by the . For more detailed information, see .
Rewards are distributed during the next settlement cycle after 24 hours following the event rules, typically within 48 hours of task proof submission, to the beneficiary account.
Check the transaction list of the beneficiary account on the blockchain explorer: .
More details about Slash Collateral, check here: