Xooa Blockchain Smart Contract (Preview)

Xooa makes it easy to use blockchain by eliminating common barriers. A blockchain platform as a service (PaaS) provides an enterprise blockchain. The connector provides an immutable ledger and a private blockchain infrastructure. You control who can view and participate in the ledger, and you can shift your data to your own network at any time.

This connector is available in the following products and regions:

Service Class Regions
Logic Apps Standard All Logic Apps regions except the following:
     -   Azure Government regions
     -   Azure China regions
Flow Premium All Flow regions except the following:
     -   US Government (GCC)
PowerApps Premium All PowerApps regions except the following:
     -   US Government (GCC)

Creating a connection

To connect your account, you will need the following information:

Name Type Description
API Key securestring

The API Key for this api

Throttling Limits

Name Calls Renewal Period
API calls per connection10060 seconds

Actions

Invoke a function

Invoke a given custom smart contract function to write to the ledger.Such operations create transactions in the ledger.

Perform a query function

Query the ledger using a given smart contract function. The query end-point is used to perform read operations. Such operations do not create transactions in the ledger.

Xooa DEL [DEPRECATED]

This action is used to perform a 'del' operation on the Xooa App. This operation invokes the del function in the Smart Contract to delete the key from the Blockchain. This operation generates a transaction in the blockchain and stores it in the ledger.

Xooa GET [DEPRECATED]

This action is used to perform a 'get' operation on the Xooa App. This operation invokes the get function in the Smart Contract to give the latest state from the Blockchain.

Xooa SET [DEPRECATED]

This action is used to perform a 'set' operation on the Xooa App. This operation invokes the set function in the Smart Contract to store the key value pairs in the Blockchain. This operation generates a transaction in the blockchain and stores it in the ledger.

Invoke a function

Invoke a given custom smart contract function to write to the ledger.Such operations create transactions in the ledger.

Parameters

Name Key Required Type Description
Function name
fcn True string

The name of the function.

Asynchronous call indicator (Boolean)
async boolean

Specifies whether to perform the call asynchronously (default is false).

Timeout (synchronous calls only)
timeout integer

Timeout waiting on a response from a synchronous call (async false). A 202 Pending Transaction Response with the URL to retrieve appears if the timeout value is exceeded. Default timeout value is 5000ms.

string

The name of the function.

Perform a query function

Query the ledger using a given smart contract function. The query end-point is used to perform read operations. Such operations do not create transactions in the ledger.

Parameters

Name Key Required Type Description
Function name
fcn True string

The name of the function.

Asynchronous call indicator (Boolean)
async boolean

Specifies whether to perform the call asynchronously (default is false).

Timeout (synchronous calls only)
timeout integer

Timeout waiting on a response from a synchronous call (async false). A 202 Pending Transaction Response with the URL to retrieve appears if the timeout value is exceeded. Default timeout value is 5000ms.

string

The name of the function.

Xooa DEL [DEPRECATED]

This action is used to perform a 'del' operation on the Xooa App. This operation invokes the del function in the Smart Contract to delete the key from the Blockchain. This operation generates a transaction in the blockchain and stores it in the ledger.

Parameters

Name Key Required Type Description
Async call indicator
async boolean

This parameter is used to define if the call to Xooa is to be made in synchronous or asynchronous mode. Its default value is false, i.e. synchronous mode.

Amount of time to wait before turning a synchronous call to asynchronous.
timeout integer

If a call to Xooa is made in synchronous mode then the call waits for the time passed in timeout to receive a response. If a response is not generated within the given timeout a pending response is generated. Default timeout value is 3000ms.

string

This parameter is used to define if the call to Xooa is to be made in synchronous or asynchronous mode. Its default value is false, i.e. synchronous mode.

Xooa GET [DEPRECATED]

This action is used to perform a 'get' operation on the Xooa App. This operation invokes the get function in the Smart Contract to give the latest state from the Blockchain.

Parameters

Name Key Required Type Description
Async call indicator
async boolean

This parameter is used to define if the call to Xooa is to be made in synchronous or asynchronous mode. Its default value is false, i.e. synchronous mode.

Amount of time to wait before turning a synchronous call to asynchronous.
timeout integer

If a call to Xooa is made in synchronous mode then the call waits for the time passed in timeout to receive a response. If a response is not generated within the given timeout a pending response is generated. Default timeout value is 3000ms.

string

This parameter is used to define if the call to Xooa is to be made in synchronous or asynchronous mode. Its default value is false, i.e. synchronous mode.

Xooa SET [DEPRECATED]

This action is used to perform a 'set' operation on the Xooa App. This operation invokes the set function in the Smart Contract to store the key value pairs in the Blockchain. This operation generates a transaction in the blockchain and stores it in the ledger.

Parameters

Name Key Required Type Description
Async call indicator
async boolean

This parameter is used to define if the call to Xooa is to be made in synchronous or asynchronous mode. Its default value is false, i.e. synchronous mode.

Amount of time to wait before turning a synchronous call to asynchronous.
timeout integer

If a call to Xooa is made in synchronous mode then the call waits for the time passed in timeout to receive a response. If a response is not generated within the given timeout a pending response is generated. Default timeout value is 3000ms.

string

This parameter is used to define if the call to Xooa is to be made in synchronous or asynchronous mode. Its default value is false, i.e. synchronous mode.