Components overview¶
HTTP Headers¶
Response Headers¶
200 OK¶
Headers | Type | Description |
---|---|---|
RDN-Gateway-Path | bytes | Path root of the channel management app |
RDN-Receiver-Address | address | Address of the Merchant |
RDN-Contract-Address | address | Address of RaidenMicroTransferChannels contract |
RDN-Token-Address | address | Address of the Token contract |
RDN-Price | uint | Resource price |
RDN-Sender-Address | address | Address of the Client |
RDN-Sender-Balance | uint | Balance of the Channel |
402 Payment Required¶
Headers | Type | Description |
---|---|---|
RDN-Gateway-Path | bytes | Path root of the channel management app |
RDN-Receiver-Address | address | Address of the Merchant |
RDN-Contract-Address | address | Address of RaidenMicroTransferChannels contract |
RDN-Token-Address | address | Address of the Token contract |
RDN-Price | uint | Resource price |
RDN-Sender-Address | address | Address of the Client |
RDN-Sender-Balance | uint | Balance of the Channel |
RDN-Balance-Signature | bytes | Optional. Last saved balance proof from the sender. |
+ one of the following: | ||
RDN-Insufficient-Conf irmations | uint | Failure - not enough confirmations after the channel creation. Client should wait and retry. |
RDN-Nonexisting-Channel | string | Failure - channel does not exist or was closed. |
RDN-Invalid-Balance- Proof | uint | Failure - Balance must not be greater than deposit or The balance must not decrease. |
RDN-Invalid-Amount | uint | Failure - wrong payment value |
409¶
- ValueError
502¶
- Ethereum node is not responding
- Channel manager ETH balance is below limit
Request Headers¶
Headers | Type | Description |
---|---|---|
RDN-Contract-Address | address | Address of MicroTransferChannels contract |
RDN-Receiver-Address | address | Address of the Merchant |
RDN-Sender-Address | address | Address of the Client |
RDN-Payment | uint | Amount of the payment |
RDN-Sender-Balance | uint | Balance of the Channel |
RDN-Balance-Signature | bytes | Signature from the Sender, signing the balance (post payment) |
RDN-Open-Block | uint | Opening block number of the channel required for unique identification |
Off-Chain Micropayment Sequence¶
(not-so-standard sequence diagram) For a better overview, also check out how the smart contract does a balance-proof validation.
µRaiden Server¶
Non-detailed components overview. For function arguments and types, please check source code and docstrings.
Channel manager¶
Proxy¶
Python Client¶
Web Client¶
For an overview of the web client, please refer to the JavaScript client library documentation.
Smart Contract¶
For an overview of the RaidenMicroTransferChannels smart contract, please refer to the Smart Contract API documentation.