Relayers
Last updated
Last updated
Since initiating transactions from your wallet would isn’t private we’d need to utilize relayers. The help send transactions on your behalf so the transactions aren’t linked to your wallet. This is also another added means to make sure your transactions are private.
Relayers act as intermediaries, ensuring your transactions are seamlessly broadcasted to the network without requiring direct initiation from your wallet. They perform this service on your behalf and are compensated in the token being transacted.
To participate, relayer owners must maintain a minimum balance as specified in the Arcane Contract, which is a prerequisite for their creation and activation in the relaying process.
Relayers form the backbone of the 0x0 ecosystem, serving as essential guardians of the network’s security. Operated by 0x0 token holders, these relayers are tasked with ensuring the seamless execution of transactions while covering their operational expenses and earning incentives.
Upon the successful completion of a transaction, fees are allocated to the relayer responsible for its initiation, rewarding their contribution to the network’s efficiency.
At the heart of this process is the calculation of the relayer fee for a given transaction Tx
relayerFee=gasCost(TX)+0.1%×transaction amount
This formula ensures that relayers are fairly compensated for both the computational resources expended and the value of the transaction processed.
The Relayer Manager is a critical component of the Arcane ecosystem, designed to facilitate and manage the operations of relayers within the network. Relayers play a vital role in ensuring the smooth execution of transactions.
The Relayer Manager contract provides a robust framework for registering, activating, and managing relayers, ensuring that they meet specific requirements and adhere to the network’s security protocols.
Relayer Registration and Management: The contract allows for the registration of new relayers, ensuring that each relayer is associated with an owner and meets the necessary token balance requirements. This ensures that only qualified entities can act as relayers, maintaining the integrity of the network.
Activation and Deactivation: Relayers can be activated or deactivated by their owners, providing flexibility in managing relayer availability. This feature is crucial for maintaining control over who can relay transactions and ensuring that inactive or compromised relayers are promptly deactivated.
Security and Compliance: The contract includes several security checks, such as verifying relayer ownership and ensuring that relayers have sufficient token balances. These checks help prevent unauthorized access and ensure that relayers operate within the network’s guidelines.
Event-Driven Architecture: The Relayer Manager emits various events, such as RelayerRegistered, RelayerActivated, and RelayerDeactivated, to provide transparency and traceability of relayer activities. These events help network participants monitor relayer status and ensure compliance with expected behaviors.
Fee Management: The contract handles the collection and distribution of relayer fees, ensuring that relayers are compensated for their services. This includes support for fee swaps, allowing fees to be converted into different tokens if necessary.