Skip to content
Sample smart contract apps for Xooa PaaS.
Branch: master
Clone or download
sandeepxooa Merge pull request #5 from Xooa/SampleZip
Sample Zip for SDLC API GW endpoint to be used for providing sample to user for deploying SC
Latest commit 3d71e1d May 3, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
ethereum swagger May 3, 2019
get-set swagger May 3, 2019
google-forms states->xldb Mar 1, 2019
images blurred screenshot Dec 5, 2018
marbles swagger May 3, 2019
smartthings states->xldb Mar 1, 2019
upload-samples Folder renamed Feb 25, 2019
zapier updated readme Dec 10, 2018
.gitattributes deleted smartthings smartapps, added gitattributes Nov 29, 2018
.gitignore updated readme Oct 30, 2018 utm_source added Jan 16, 2019
Xooa.yaml Swagger and Readme May 2, 2019

This page provides a step-by-step tutorial to deploy a sample app with Xooa's blockchain platform-as-a-service (PaaS).

Project documentation:


This repository contains a blockchain smart contract, also known as chaincode. Use the Xooa console to deploy it.

Xooa provides a permanent cloud end-point for the smart contract, enabling cloud-to-cloud integration, while retaining blockchain's peer-to-peer capabilities.

Deploy the smart contract

  1. Log in to the Xooa blockchain console at
  2. Go to Apps>Deploy New. If you didn't log in with your GitHub account, you will need to do it now.
  3. Find the Github repository with the smart contract you want to deploy. For example, use Xooa/samples to deploy one of the sample provided by Xooa. Tap Select, and then Next.

For accesing Private Git Repos, click or tap Authorize Private Github Access.


  1. Select the Smart Contract you want to deploy, and then click Deploy.

  2. Relax: Xooa is doing the blockchain heavy lifting. You will be redirected to app dashboard when the deployment completes.

  3. Navigate to Identities tab, click or tap Add New, enter name for Identity and set permissions to Read+Write.

  4. Copy and store the API Token value. You need it to authorize API requests. API Token cannot be dispalyed after you closed the window, but it may get regenerated.

The Xooa app dashboard

The dashboard consists of the following tabs:

Information about your app.
Create or delete an identity. You can also specify access rights to different identities, thus controlling the access of endpoints for your smart contract
History of your app's activities.
View smart contract events from the last 10 minutes.
Delete your app or update from github.

Explore the end-points for the smart Contract

  1. Go to the Details tab, click Explore API's.

  2. Enter API Token in the field in navigation pane. This is used to authenticate all API calls.

  3. Go to the Smart Contract > Invoke Smart Contract Function from the navigation pane.


  1. In the fcn field, enter the Smart Contract function name you wish to Invoke. For example, if using this repo get-set smart contract to store data in blockchain set should be entred as the fcn field value

  2. In the body field, enter the data in the format expected by the smart contract. For example, if using this repo get-set smart contract to store data in blockchain ledger using the set function, the body should be entered as:

    [ "<key>", "<value>" ]

  3. Click or tap try.

  • A response code of 200 indicates successful function call of the smart contract.
  • A response code of 202 indicates that your request is queued for processing. Final processing outcome may be obtained through Result end point by using resultId obtained in response body.
  • A response code of 400 indicates that you have a malformed request. Check the body and fcn fields.
  • A response code of 401 indicates that either you forgot to enter API Token you have entered invalid API token. While you cannot recover lost API Token you can always generate a new one from Xooa console - app dashboard - Identities tab - actions
  1. To view your transaction ain the blockchain Ledger, from your Xooa dashboard, go to Ledger.

  2. Go to the Transactions tab. You can expand the data field to see your transactions.

You can’t perform that action at this time.