Drips docs

Drips docs

    ›Splitting

    Intro and Basics

    • What's a Drip?
    • Drips v2 Features
    • Accessing Drips
    • FAQ

    The Drips App

    • Getting Started
    • Manage funds

      • Add funds
      • Withdraw funds
      • Collect earnings

      Streams

      • Create a stream
      • Edit, pause or delete a stream

      Splits

      • Set up & manage splits

      Explore the network

      • Drips profiles

      Advanced

      • Connecting to a Safe

    The Protocol

    • Overview
    • User Identities In Drips
    • Smart Contract and Subgraph Details
    • Security

    For Developers

    • The Drips JS SDK
    • Installing the SDK and Running the Example App
    • Initializing the SDK
    • Accounts

      • Intro to Accounts
      • Create an Account
      • List Sub-Accounts
      • Add Funds

      Streams

      • Start a Stream
      • Update a Stream
      • Scheduling

      Splitting

      • Create User Splits
      • Edit User Splits
      • List User Splits
      • Immutable Splits

      Collecting

      • How to Collect
      • Squeezing Drips

      Advanced Topics

      • Caller
      • Account Metadata
      • Dripping Fractional Amounts
      • Drips inner workings

    Get Involved

    • Join the Drips Community

    Immutable Splits

    The Drips Protocol enables the creation of immutable Splits using the ImmutableSplitsDriver. Immutable Splits are different from the Splits configurations for user accounts created by NFTDriver and AddressDriver in that once an immutable Split is created, it can never be changed.

    To create an immutable Split using the SDK, you will need to instantiate an ImmutableSplitsDriverClient:

    const immutableSplitsDriverClient = ImmutableSplitsDriverClient.create(provider);
    

    You can then call ImmutableSplitsDriverClient.createSplits to create an immutable Split:

    createSplits(
        receivers: SplitsReceiverStruct[],
        userMetadata: UserMetadataStruct[])
    : Promise<string>
    

    Take a look at this method's documentation to understand what each parameter represents.

    You can optionally use the UserMetadataStruct array to define metadata for the Split configuration. See the account metadata section of the docs for further discussion of account metadata and how to use it.

    ← List User SplitsHow to Collect →