Streaming Payment
Pay a series of requests with a stream of ERC777 Super Tokens from Superfluid.
Last updated
Pay a series of requests with a stream of ERC777 Super Tokens from Superfluid.
Last updated
The first request of a series is very similar to payment-network-erc20-fee-proxy, it defines the salt
, paymentAddress
and requestId
to compute the paymentReference
used for the whole series.
Other requests must define a previousRequestId
and cannot redefine any of the payment properties (paymentAddress
, feeAddress
or salt
).
Multiple requests can be paid with the same stream, typically recurring requests of fixed amounts paid continuously. A group of requests payable with the same stream are called a request series, they must all have the same currency.
For additional details, see the payment-network-erc777-stream-0.1.0 specification
To create a streaming request, like normal, but set the paymentNetwork
parameter to the ERC777_STREAM
payment network.
See Github for tests showing usage.