LogoLogo
  • 🚀getting started
    • Intro to Data Unions
    • Build a Data Union
      • 1️Installation And Deployment
      • 2️Integration
    • Build a Data Union with Streamr
      • 1️Create A Data Stream
      • 2️Deploy A Data Union With Streamr Core
      • 3️Integrate Data Union & Stream
      • 4️Publish to Streamr Marketplace
    • Glossary of Terms
  • 📚Main Concepts
    • Roles and Responsibilities
      • 🧑‍💻Admin
      • 🤵JoinPart Agents
      • 🙋Member
      • 🧑‍🔧Protocol Beneficiary
    • Join Server
    • Contract Functions
    • Manage Wallets And Earnings
    • Data Union Observation
    • Add Your Own Token
    • Custom Modules
  • 🧐Resources
    • Existing Data Unions
    • Framework Governance
    • Data Unions UX Best Practices
  • ❓Questions?
    • Ask us on Discord
Powered by GitBook
On this page
  • Member Stats
  • Inactive And Active Members
  • Member Joins
  • Member Parts/Leaves

Was this helpful?

  1. Main Concepts
  2. Roles and Responsibilities

Member

A data union can scale to thousands or even millions of data-producing members.

Members are the people and/or devices that produce and share data.

After joining, they start receiving a share of the revenue that accumulates in the data union contract.

Member Stats

Get useful information about a specific member address:

const memberStats = await dataUnion.getMemberStats('0x1234');
// returns:
{
    earningsBeforeLastJoin: BigNumber {_hex: '0x00', _isBigNumber: true},
    status: "ACTIVE",
    totalEarnings: BigNumber {_hex: '0x00', _isBigNumber: true},
    withdrawableEarnings: BigNumber {_hex: '0x00', _isBigNumber: true}
}

Check if member is part of the data union:

await dataUnion.isMember();

Inactive And Active Members

The data union smart contract does not delete members when they leave or get removed from the data union. Instead they are set as inactive. This prevents them from earning more tokens. When they (re)join the data union they get set as active. That way members that got removed or left are still able to withdraw their earnings from the contract.

Member Joins

To automate member joins, read more here:

Member Parts/Leaves

Every member is able to leave the data union at any time:

const tx = await dataUnion.part();
PreviousJoinPart AgentsNextProtocol Beneficiary

Last updated 2 years ago

Was this helpful?

Members cannot join your data union without the help of a - The smart contract prevents that.

📚
🙋
joinPart agent
Join Server