Accept iExec RLC payments
RLC is the token of iExec, a decentralized confidential computing network: apps run on rented worker machines, and RLC pays the app provider, the data provider and the worker for each task. easyway accepts the ERC-20 RLC on Ethereum through the same checkout and API as ETH and the stablecoins. This page lists the exact contract, the RLC balances that cannot pay an invoice, what a payment costs and how to integrate it.
Token, network and limits
| Token | Network | Contract | Confirmations | Min. withdrawal | Withdrawal fee |
|---|---|---|---|---|---|
| RLC (iExec RLC) | Ethereum · ERC-20 | 0x607F4C5BB672230e8672085532f7e901544a7375 | 12 | 1.7 RLC | 5.5 RLC (flat) |
iExec publishes this address in its own rlc-token repository, and Trust Wallet's token list and CoinGecko have the same one. RLC dates from 2017 and is a plain token contract, not an upgradeable proxy. Transfers have no fee, so the amount the customer sends is the amount that arrives. A transfer to a new address costs about 57,000 gas, and the flat withdrawal fee covers it.
One detail matters for developers: RLC has 9 decimals, not the 18 most ERC-20 tokens use. One RLC is 1,000,000,000 base units. easyway handles this for you: invoice amounts, webhooks and balances are decimal strings in whole RLC (for example "12.5"), so you never convert base units yourself. If you also read RLC balances on-chain with your own code, divide by 10^9.
sRLC and Arbitrum RLC can't pay an invoice
To run a task on iExec, a user locks RLC in the protocol and receives sRLC (staked RLC) for the duration of the task. sRLC is the protocol's internal record, not the RLC token, so it cannot be sent to a checkout; the unused RLC is recovered after the task, and only then can it pay. RLC can also be bridged to Arbitrum, where it is a different contract on a different network.
The checkout gives an Ethereum address, and only RLC sent on Ethereum from the contract above is credited. When paying from an exchange, the customer chooses RLC on Ethereum (ERC-20) in the withdrawal form; the guide to paying from an exchange shows the steps.
Amounts and fees
For a USD invoice the RLC amount is fixed from the exchange rate at the moment the customer picks the coin, and the checkout shows the exact figure. A single transfer below 0.03 RLC is ignored as dust, and the invoice is paid after 12 Ethereum confirmations, usually a few minutes. Short or late payments are handled as in the underpaid and late payments guide.
RLC is volatile, and it stays RLC: it is credited and withdrawn in RLC, so any price move after the payment is yours. The platform fee is a flat 0.5% of each confirmed payment, so 1,000 RLC received leaves 995 RLC on your balance. A withdrawal costs a fixed 5.5 RLC to cover the Ethereum gas of one token transfer, and the smallest withdrawal is 1.7 RLC. All coins are compared on the pricing page.
Integrating
There is no RLC-specific code. Create an invoice with the API (or a payment link without code), redirect the customer to the hosted checkout and fulfil the order when the signed invoice.paid webhook arrives. To price the invoice in RLC, pass currency = "RLC_ERC20"; to offer only RLC, pass allowed_assets with "RLC_ERC20" (see limiting the checkout to some coins). The quickstart has runnable examples.
Common questions
Is easyway part of iExec? No. easyway is independent of iExec; it only receives the ERC-20 RLC token on Ethereum as payment for your own goods or services. It does not run iExec tasks or workers, and it does not convert payments into other coins.
Where is the RLC kept after a payment? On your easyway balance until you withdraw it, and live withdrawals only go to addresses you whitelisted with two-factor authentication (see security). Other compute tokens you can accept are Golem (GLM), Aethir (ATH) and Render (RENDER).