LogoLogo
Return to CozyDiscord
Main
Main
  • Get started
  • What is Cozy
    • Overview
    • Case study
    • FAQ
    • Security
  • For Developers
    • Guides
      • Set up your development environment
      • Create a protection market
      • Buy protection programmatically
      • Manage protection programmatically
      • Provide protection programmatically
      • Liquidate a vault
      • Create a protected investing opportunity
      • Create an invest/divest contract
    • Error codes
    • API reference
      • Cozy tokens
      • Comptroller
      • Full API reference
    • Contract deployments
  • Get In Touch
    • Twitter
    • Discord
Powered by GitBook
On this page

Was this helpful?

  1. For Developers

API reference

Reference information for the methods available in the Cozy protocol.

PreviousError codesNextCozy tokens

Last updated 3 years ago

Was this helpful?

The main two contracts you use to interact with the Cozy protocol are:

  • Cozy token contracts

  • Cozy Comptroller contract

There are dedicated API reference sections for these core contracts that explain the key concepts and how to use the methods they provide. In addition to the API reference sections for Cozy tokens and the Comptroller, there is a separate full API reference for all contracts that are part of the Cozy protocol. For details about using the Cozy API, see the following sections:

When reading the API references, note that any variable described as a mantissa is an 18 decimal number. For example, if a contract is storing the number 3.14 as a mantissa, the value in storage will be 3.14e18 = 3,140,000,000,000,000,000.

Cozy tokens API reference
Comptroller API Rrference
Full API reference