Zebec Network
  • 💰Zebec Network
  • ➡️ZBC to ZBCN Migration Guide
  • 🗞️Zebec Network white Paper
  • 📈ZBCN Tokemonics
  • 🥳Getting Started
    • How to get started?
    • Benefits of Using Zebec Protocol
    • Deposit
    • Start Streaming
    • Withdraw Funds
  • 👾Safe
    • Create Safe
    • Deposit in Safe
    • Sending a Transaction
    • Zapps
    • Signing a Transaction
  • ZEBEC SOLANA
    • 🖥️Zebec Solana Sdk
      • 🖱️Streaming
        • Initialize Zebec Stream
        • Create Fee Vault
        • Update Fee Vault
        • Collect Fees
        • Deposit
        • Withdraw Deposited Token
        • Start Streaming
        • Pause Stream
        • Resume Stream
        • Cancel Stream
        • Withdraw Streamed Token
  • ZEBEC SILVER CARD
    • 💳Silver Card Sdk
      • 🔧Installation
      • 👨‍🚀Quick Start
      • ✉️Fetch Quote
      • ⚖️Configuration Parameters
      • 📦Recipient Fields
      • 🔁Responses
      • 🔢Environment Variables
      • 🌎Supported Countries
  • Zebec Bridge
    • Bridge Sdk
      • Creating clients
      • Initialize Proxy Account
      • Initialize Token Account
      • Deposit
        • Token Transfer
        • Deposit to Zebec
      • Withdraw Deposited
        • Withdraw From Zebec
        • Token Transfer
      • Init Stream
      • Pause/Resume Stream
      • Cancel Stream
      • Update Stream
  • Zebec Near
    • Zebec Near Sdk
      • Normal Stream
        • Initialize Near Stream
        • Initialize Token Stream
        • Pause/Resume Stream
        • Withdraw Stream
        • Update Stream
        • Cancel Stream
        • Claim Stream
        • View methods
      • Multisig Factory
        • Create Multisig Account
      • Multisig Stream
        • Initialize Near Stream
        • Initialize Token Stream
        • Pause/Resume Stream
        • Withdraw Stream
        • Update Stream
        • Cancel Stream
        • Claim Stream
        • View methods
  • ZEBEC EVM
    • Zebec Evm Sdk
      • Zebec Stream Client
        • Creating Clients
        • Whitelisting Tokens
        • Deposit into Zebec Wallet
        • Withdraw from Zebec Wallet
        • Initiating a Stream
        • Pause/Resume/Cancel Stream
        • Updating a Stream
        • Withdraw Streamed Tokens
        • Getting Stream Details
        • Whitelisted Tokens on BSC and Nautilus
      • Zebec Bulk Client
        • Bulk Instant Transfer
      • Zebec Multisig Stream
        • NFT
    • Zapps Compatible
Powered by GitBook
On this page
  1. Zebec Near
  2. Zebec Near Sdk
  3. Normal Stream

View methods

getStreamId gets parsed result of stream an object with given id.

const result = await streamService.getStreamById({ streamId: "0" });

getIncomingStreamsCount gets the parsed result of incoming streams of the given userId.

const params = { 
    userId: "",
    limit: 10;
    fromIndex: "0"
}
const result = await streamService.getIncomingStreamsCount(params);

getOutgoingStreamsCount gets the parsed result of outgoing streams of the given userId.

const params = { 
    userId: "",
    limit: 10;
    fromIndex: "0"
}
const result = await streamService.getOutgoingStreamsCount()

getStreamsByUser gets the parsed result of both incoming and outgoing streams of the given userId.

const params = { 
    userId: "",
    limit: 10;
    fromIndex: "0"
}
const result = await streamService.getStreamsByUser()

getOutgoingStreamsCount gets the count of outgoing streams of the given userId.

const result = await streamService.getOutgoingStreamsCount({userId: ""});                                 

getIncomingStreamsCount gets the count of incoming streams of the given userId.

const result = await streamService.getIncomingStreamsCount({userId: ""});

getOutgoingOngoingTotalAmount gets the parsed result of both incoming and outgoing streams of the given userId and tokenId.

const params = {
    userId: "",
    contractId: "",
    fromIndex: "100",
    limit: 0,
};
const result = await streamService.getStreamsForToken(params )

getStreamsTotalAmount gets the total amount of balance from outgoing and incoming streams for a given token.

const params = {
    userId: "",
    contractId: "",
    fromIndex: "100",
    limit: 0,
};
const totalAmount = await streamService.getStreamsTotalAmount();
PreviousClaim StreamNextMultisig Factory

Last updated 1 year ago