Payroll Management

Overview

Payroll

Payroll is an entity to escrow payment from a sender to a recipient in realtime. With Payroll. Senders do not need to worry about setting up a separate time just to transfer payment to workers, and workers as recipients do not need to wait for payment to arrive in a certain period. They all just need to interact with streaming vault for their transaction.

Architecture

Usage

To use bulk transfer in other systems using Parallel, Developers must installParallel.js, aJavascript frontend library to interact with Parallel parachain.

createStream

ParameterTypeDescription

api

APIPromise

Initialized Parallel API

sender

Keyring

Account to send funds from

recipient

string

Address of recipient

deposit

string

Amount of currency to deposit

currency

number

ID of depositing currency

startTime

number

Timestamp to start streaming payment

stopTime

number

Timestamp to stop streaming payment

Example Code

cancelStream

ParameterTypeDescription

api

APIPromise

Initialized Parallel API

sender

Keyring

Account to send funds from

streamId

streamId

ID of an existing stream

Example Code

withdrawFromStream

ParameterTypeDescription

api

APIPromise

Initialized Parallel API

sender

Keyring

Account to send funds from

streamId

number

ID of an existing stream

amount

string

amount of currency to withdraw

Example Code

Last updated