Class TransactionsService

Hierarchy

Index

Methods

createStreamTransactionPayload

  • createStreamTransactionPayload(account: string, receiver: string, amount: BigNumber, tokenAddress: string, userData: string, skipBalanceCheck: boolean): Promise<StreamTransactionPayload>
  • Parameters

    • account: string
    • receiver: string
    • amount: BigNumber
    • tokenAddress: string
    • userData: string
    • skipBalanceCheck: boolean

    Returns Promise<StreamTransactionPayload>

createSuperERC20WrapperTransactionPayload

  • createSuperERC20WrapperTransactionPayload(underlyingToken: string, underlyingDecimals: number, name: string, symbol: string): Promise<StreamTransactionPayload>
  • Parameters

    • underlyingToken: string
    • underlyingDecimals: number
    • name: string
    • symbol: string

    Returns Promise<StreamTransactionPayload>

deleteStreamTransactionPayload

  • deleteStreamTransactionPayload(account: string, receiver: string, tokenAddress: string, userData: string): Promise<StreamTransactionPayload>
  • Parameters

    • account: string
    • receiver: string
    • tokenAddress: string
    • userData: string

    Returns Promise<StreamTransactionPayload>

destroy

  • destroy(): void

findSuperERC20WrapperOnChain

  • findSuperERC20WrapperOnChain(underlyingToken: string, chainId: number, underlyingDecimals: number, name: string, symbol: string): Promise<string>
  • Parameters

    • underlyingToken: string
    • chainId: number
    • underlyingDecimals: number
    • name: string
    • symbol: string

    Returns Promise<string>

getNftList

  • getNftList(account: string): Promise<NftList>
  • Parameters

    • account: string

    Returns Promise<NftList>

getRegisteredERC20WrapperTokens

getStreamList

  • getStreamList(account: string): Promise<StreamList>
  • Parameters

    • account: string

    Returns Promise<StreamList>

getTransaction

getTransactions

init

modifyStreamTransactionPayload

  • modifyStreamTransactionPayload(account: string, receiver: string, amount: BigNumber, tokenAddress: string, userData?: string, skipBalanceCheck?: boolean): Promise<StreamTransactionPayload>
  • Parameters

    • account: string
    • receiver: string
    • amount: BigNumber
    • tokenAddress: string
    • Optional userData: string
    • Optional skipBalanceCheck: boolean

    Returns Promise<StreamTransactionPayload>

registerERC20WrapperToken

  • registerERC20WrapperToken(wrapperAddress: string, chainId?: number): Promise<KnownContract | null>
  • Parameters

    • wrapperAddress: string
    • Optional chainId: number

    Returns Promise<KnownContract | null>