Smart Contracts

This section lists the four different smart contracts that you can execute in your Docker SDK container against your TBSP on the Google Cloud Platform.

About smart contracts

This section describes the steps involved with 

All smart contracts on TBSP on Google Cloud Platform are based on smart contract templates

Once a template is published, a smart contract instance is created and posted to the blockchain.

The four contracts below illustrate different implementations of smart contracts.

Execute a simple smart contract - Hello World Part 1

In Hello World Part 1, publish a smart contract and obtain the message found in the smart contract.

Change the message of the smart contract - Hello World Part 2

In Hello World Part 2, change the message found within the smart contract from above.

Get the permission to change the message of the smart contract - Hello World Part 3

In Hello World Part 3, learn about the permissions required for changing the message found within the smart contract.

Run a smart contract with a specific condition - Vehicle Transfer

In Vehicle Transfer, create a digital asset definition and a digital asset. In addition, a specific condition for executing the smart contract will be set.

You can also use the Smart Contract explorer to run the vehicle transfer smart contract flow.

Run an escrow smart contract 

In the escrow smart contract, create a smart contract that locks the assets of the parties involved and releases assets once specific conditions are met.

You can also run an escrow smart contract with divisible assets

In addition, you can use the smart contract explorer to view information about the escrow smart contract you executed using the Smart Contract CLI.


You can also use the smart contract explorer to execute all smart contracts, except the escrow smart contract flow.

Return to the main sample applications page.

Alternatively, navigate to advanced functions to learn more about the advanced functions available for TBSP on Google Cloud.