# Solidity

#### **SuperTokenV1Library Contract**

{% embed url="<https://github.com/superfluid-finance/protocol-monorepo/blob/dev/packages/ethereum-contracts/contracts/apps/SuperTokenV1Library.sol>" %}

#### **Quickstart Guide**

{% embed url="<https://ethglobal.com/guides/introduction-to-superfluid-protocol-be10i#1-introduction>" %}
Make a contract that streams money in under 10 minutes!
{% endembed %}

#### **Example Code**

{% embed url="<https://github.com/superfluid-finance/super-examples/blob/main/projects/money-streaming-intro/money-streaming-intro-hardhat/contracts/MoneyRouter.sol>" %}

## Getting Set To Start Streams

Initialize the SuperTokenV1Library in your constructor with the below code.

### Initializing the Library

```solidity
// initializing the CFA Library
pragma solidity 0.8.14;

import { 
    ISuperfluid 
} from "@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluid.sol";

import { 
    ISuperToken 
} from "@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperToken.sol";

import {
    SuperTokenV1Library
} from "@superfluid-finance/ethereum-contracts/contracts/apps/SuperTokenV1Library.sol";

contract SomeContractWithSuperTokenV1Library {

    using SuperTokenV1Library for ISuperToken;
    ISuperToken public token;
    
    constructor(ISuperToken _token) {
        token = _token;
    }
    
    // your contract code here...
    
}
```

## Interacting With The CFA

{% content-ref url="/pages/6TH52mjVbbrPPKYFR7Rr" %}
[Read Methods](/superfluid/developers/constant-flow-agreement-cfa/cfav1-library/read-methods.md)
{% endcontent-ref %}

{% content-ref url="/pages/OqeNDcxxiFCEvSnGNRlE" %}
[Write Methods](/superfluid/developers/constant-flow-agreement-cfa/cfav1-library/write-methods.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://superfluid.gitbook.io/superfluid/developers/constant-flow-agreement-cfa/cfav1-library.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
