What actions can a Smart Clause perform?
We are adding Apps and connectors at a rapid rate, so this list is not exhaustive! Here is a flavour of the types of things you can do from your Smart Legal Contracts.
Connectors allow your contract to perform Actions, or side-effects in the world via an outbound integration. Like the triggers, connectors work at a clause level; any events emitted by the clause can be mapped to outbound actions. For example, the payment-upon-delivery template emits a Payment Obligation. The data in the Payment Obligation can then be mapped to a integration model and handled by the Clause outbound connectors. You provide the platform with a configuration description that describes how to convert the response from your Smart Clause® to one of the integration models.
This layer of indirection between logical types (like Payment Obligation) and physical types (like StellarTransfer) allows the contract author to specify how they would like to fulfill their obligations: user Fred can decide to send an email to Bob when a payment needs to be made, while user Janice can make a Stellar payment.
Clause currently supports the following connectors:
- Stripe. To make credit card charges automatically.
- Slack. To notify your team of something important via your Slack bot.
- Ether Transfer. To make a payment in Ether automatically. Currently only for transactions on the Rinkeby test network.
- Stellar Transfer. To make a payment in any supported Stellar currency on the Stellar network.
- Ethereum Transaction. To submit a transaction to the Ethereum blockchain. Currently only for transactions on the Rinkeby test network.
- Zapier. Connect to 100s of other online services such as Clio, Xero and Google Sheets. Via the HTTP connector.
- HTTP. To make requests to online web services.
- MQTT. To publish messages to interested IoT devices.