Payroll Management
Last updated
Last updated
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.
To use bulk transfer in other systems using Parallel, Developers must installParallel.js, a
Javascript frontend library to interact with Parallel parachain.
createStream
Parameter | Type | Description |
---|---|---|
cancelStream
withdrawFromStream
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
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
api
APIPromise
Initialized Parallel API
sender
Keyring
Account to send funds from
streamId
streamId
ID of an existing stream
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