SOL Pay
  • SOL Pay
  • Quick Start
  • Streams
  • Stake Pools
  • Reference
    • SDK Reference
      • connectNetwork
      • connectWallet
      • sendSolanaLamports
      • sendSolana
      • sendTokens
      • sendTokensDecimal
      • signTransaction
      • broadcastSerializedTransaction
      • streamLamports
      • backupStreamWallet
      • getStreamDetails
      • refillStream
      • pauseStream
      • resumeStream
      • closeStream
      • signMessage
      • getBalance
      • getTokenBalances
      • getAccountInfo
      • getAssociatedTokenAddress
      • getTokenBalance
      • tokens.getData
      • tokens.getTags
      • tokens.getToken
      • tokens.search
      • tokens.getRawUnvalidatedList
      • adapters
      • networks
    • API Reference
      • transaction.php
      • token_transaction.php
      • signature.php
  • Website
  • Source Code
Powered by GitBook
On this page
  • Parameters:
  • Returns:
  • Throws:
  1. Reference
  2. SDK Reference

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

PreviousgetStreamDetailsNextpauseStream

Last updated 3 years ago