the sidechain withdraw transaction receipt IF called with sendToMainnet=false, ELSE the message hash IF called with payForTransport=false and waitUntilTransportIsComplete=false, ELSE the mainnet AMB signature execution transaction receipt IF we did the transport ourselves, ELSE null IF transport to mainnet was done by someone else (in which case the receipt is lost)
Add given Ethereum addresses as data union members
Add a new data union secret
Get data union admin fee fraction (between 0.0 and 1.0) that admin gets from each revenue event Version 2.2: admin fee is collected in DataUnionSidechain Version 2.0: admin fee was collected in DataUnionMainnet
Get stats of a single data union member
Get stats for the Data Union (version 2). Most of the interface has remained stable, but getStats has been implemented in functions that return a different number of stats, hence the need for the more complex and very manually decoded query.
Admin: get the tx promise for withdrawing all earnings on behalf of a member
the other member who gets their tokens out of the Data Union
await on call .wait to actually send the tx
Admin: Withdraw a member's earnings to another address, signed by the member
the member whose earnings are sent out
the address to receive the tokens in mainnet
from member, produced using signWithdrawAllTo
false = send to sidechain address
await on call .wait to actually send the tx
Withdraw earnings and "donate" them to the given address
the address to receive the tokens
await on call .wait to actually send the tx
Get the tx promise for withdrawing all your earnings
await on call .wait to actually send the tx
Admin: Withdraw a member's earnings to another address, signed by the member
the member whose earnings are sent out
the address to receive the tokens in mainnet
in "token wei" to withdraw
from member, produced using signWithdrawAllTo
await on call .wait to actually send the tx
Get the amount of tokens the member would get from a successful withdraw
Send a joinRequest, or get into data union instantly with a data union secret
Voluntarily leave the Data Union
side-chain transaction receipt
Remove given members from data union
Admin: set admin fee (between 0.0 and 1.0) for the data union Version 2.2: admin fee is collected in DataUnionSidechain Version 2.0: admin fee was collected in DataUnionMainnet
Member can sign off to "donate" all earnings to another address such that someone else
can submit the transaction (and pay for the gas)
This signature is only valid until next withdrawal takes place (using this signature or otherwise).
Note that while it's a "blank cheque" for withdrawing all earnings at the moment it's used, it's
invalidated by the first withdraw after signing it. In other words, any signature can be invalidated
by making a "normal" withdraw e.g. await streamrClient.withdrawAll()
Admin can execute the withdraw using this signature: ```
await adminStreamrClient.withdrawAllToSigned(memberAddress, recipientAddress, signature)
``` @param recipientAddress - the address authorized to receive the tokens @returns signature authorizing withdrawing all earnings to given recipientAddress
Member can sign off to "donate" specific amount of earnings to another address such that someone else can submit the transaction (and pay for the gas) This signature is only valid until next withdrawal takes place (using this signature or otherwise).
the address authorized to receive the tokens
that the signature is for (can't be used for less or for more)
signature authorizing withdrawing all earnings to given recipientAddress
Transfer amount to specific member in DataunionSidechain
target member who gets the tokens added to their earnings in the the Data Union
the amount that want to add to the member
receipt once transfer transaction is confirmed
Transfer an amount of earnings to another member in DataunionSidechain
the other member who gets their tokens out of the Data Union
the amount that want to add to the member
receipt once transfer transaction is confirmed
null if message was already transported, ELSE the mainnet AMB signature execution transaction receipt
Withdraw all your earnings
the sidechain withdraw transaction receipt IF called with sendToMainnet=false, ELSE the message hash IF called with payForTransport=false and waitUntilTransportIsComplete=false, ELSE the mainnet AMB signature execution transaction receipt IF we did the transport ourselves, ELSE null IF transport to mainnet was done by someone else (in which case the receipt is lost)
Withdraw earnings and "donate" them to the given address
the sidechain withdraw transaction receipt IF called with sendToMainnet=false, ELSE the message hash IF called with payForTransport=false and waitUntilTransportIsComplete=false, ELSE the mainnet AMB signature execution transaction receipt IF we did the transport ourselves, ELSE null IF transport to mainnet was done by someone else (in which case the receipt is lost)
Admin: withdraw earnings (pay gas) on behalf of a member TODO: add test
the other member who gets their tokens out of the Data Union
the sidechain withdraw transaction receipt IF called with sendToMainnet=false, ELSE the message hash IF called with payForTransport=false and waitUntilTransportIsComplete=false, ELSE the mainnet AMB signature execution transaction receipt IF we did the transport ourselves, ELSE null IF transport to mainnet was done by someone else (in which case the receipt is lost)
Admin: Withdraw a member's earnings to another address, signed by the member
the member whose earnings are sent out
the address to receive the tokens in mainnet
from member, produced using signWithdrawAllTo
the sidechain withdraw transaction receipt IF called with sendToMainnet=false, ELSE the message hash IF called with payForTransport=false and waitUntilTransportIsComplete=false, ELSE the mainnet AMB signature execution transaction receipt IF we did the transport ourselves, ELSE null IF transport to mainnet was done by someone else (in which case the receipt is lost)
Admin: Withdraw a specific amount member's earnings to another address, signed by the member
the member whose earnings are sent out
the address to receive the tokens in mainnet
from member, produced using signWithdrawAllTo
the sidechain withdraw transaction receipt IF called with sendToMainnet=false, ELSE the message hash IF called with payForTransport=false and waitUntilTransportIsComplete=false, ELSE the mainnet AMB signature execution transaction receipt IF we did the transport ourselves, ELSE null IF transport to mainnet was done by someone else (in which case the receipt is lost)
Figure out if given mainnet address is old DataUnion (v 1.0) or current 2.0 NOTE: Current version of streamr-client-javascript can only handle current version!
Generated using TypeDoc
Template for withdraw functions