µRaiden components overview.
- HTTP Request and Response Headers
- Exceptions
- Off-Chain Messages
- Proxy
- Python Client
- Web Client
- Smart Contract
Encoding:
address
0x
prefixed hex encodeduint
[0-9]
bytes
0x
prefixed hex encoded
Headers | Type | Description |
---|---|---|
RDN-Gateway-Path | bytes | Path root of the channel management app |
RDN-Cost | uint | Cost of the payment |
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-Sender-Balance | uint | Balance of the Channel |
Headers | Type | Description |
---|---|---|
RDN-Gateway-Path | bytes | Path root of the channel management app |
RDN-Price | uint | The price of answering the request |
RDN-Contract-Address | address | Address of MicroTransferChannels contract |
RDN-Receiver-Address | address | Address of the Merchant |
Headers | Type | Description |
---|---|---|
RDN-Gateway-Path | bytes | Path root of the channel management app |
RDN-Price | uint | The price of answering the request |
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-Sender-Balance | uint | Balance of the Channel |
RDN-Insufficient-Funds | uint | Failure - either Payment value too low or balance exceeds deposit |
RDN-Insufficient-Confirmations | uint | Failure - not enough confirmations after the channel creation. Client should wait and retry. |
Refund.
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 |
InvalidBalanceAmount
InvalidBalanceProof
NoOpenChannel
InsufficientConfirmations
NoBalanceProofReceived
StateContractAddrMismatch
StateReceiverAddrMismatch
(not-so-standard sequence diagram) For a better overview, also check out how the smart contract does a transfer validation: /contracts/README.md#generating-and-validating-a-transfer
For a better overview, also check out how the smart contract does a closing signature validation: /contracts/README.md#generating-and-validating-a-closing-agreement