Sketch what chain api integration looks like.

This hasn't been tested.
Merge pull request #1 from chain-engineering/chain-api

Chain API Integration