refillStream

Requests that a stream be refilled if the Stream Wallet balance is not healthy

Note:

The stream will not be refilled if the balance of the Stream Wallet is healthy. Once the Stream Wallet balance is no longer healthy, a refill request is automatically sent every 45 seconds, so this method should only be used to override the 45 second delay.

(async() => {
    let refillRequested = await SOLPay.refillStream("..."); // true
})();

Parameters:

  • stream: string - the stream for requesting a refill

Returns:

boolean (true) - the confirmation for requesting a refill for a stream

Throws:

  • SOL Pay SDK Fatal Error: Invalid stream ${stream}. - an invalid stream was used

Last updated