Skip to content

Codius Contract Service

wilsonianb edited this page Feb 10, 2015 · 3 revisions

The primary public interface for uploading contracts and retrieving contract meta data

Upload Contract Manifest

POST /contracts

Request Parameters:

  • manifest

Response Body:

  • token
  • payment_uris (Array)
  • balance
  • minimum
  • state
  • manifest_hash
  • signature

Retrieve Contract Meta Data

GET /contracts/:token

Response Body:

  • payment_uris (Array)
  • balance
  • minimum
  • state
  • manifest
  • manifest_hash
  • signature

Upload a Contract Container

POST /contracts/:token/containers

Request Parameters:

  • container (multipart binary upload)

Response Body:

  • success (Boolean)
  • hash
  • signature

Response Errors:

  • insufficient_funds
  • invalid_hash