Skip to content

Creating a Gig Pact

A gig pact is a representation of how usual employment agreements are made. So, in this article we will take the example of a web-design freelancer Bob working for a multinational company owned by Alice. We will create this employment agreement on blockchain as an automated workflow of the various steps of a typical contract.

Note: The validity of gig pact in a court is jurisdiction dependent and we don't intend to replace any part of law here.

Alice and Bob will create and manage the pact in the following steps:

  • Choose an account with enough native balance to pay for transactions
  • Alice drafts and enter the details of the pact
  • Sign the pact: both Alice and Bob have to put their signatures
  • Alice starts the pact, when it becomes Active
  • Alice approves payment that reaches Bob
  • Alice decides to terminate the pact
  • Bob acknolwdges the termination, and Alice reclaims staked amount

Wallets and balances

For the sake of this example we will be using Avalanche Fuji testnet. Other supported networks can be found in the Supported Networks section. Visit and click on "Connect Wallet". This will prompt you to approve connection from your Metamask wallet, or send you over to Metamask's install site.

connect metamask connect metamask approve

You can also use WalletConnect to sign in using a wallet app on your phone by scanning the QR code shown on clicking "WalletConnet".

connect metamask approve

If you don't have enough test balance for this example, you can go to Avalanche Fuji testnet faucet and get some free coins.

After having connected the wallet to the app, you will be greeted with the welcome dashboard. Feel free to rename it from Anonymous to "Alice"

alice dashboard

Creating the Pact

Click on Create a Gig Pact on the dashboard and you are presented with a form to enter the parameters. We enter the name "Web design by Bob", Bob's wallet address as employee wallet address, Alice's address as the employer's address.

For the pay amount we can choose a currency. Since Alice wants to make the payments of 10 USD with the USDC stable coin, we choose USDC from the dropdown. This payment will be made weekly, so we choose Pay Schedule as 7 days.

Drafting Gig pact

Further, Alice decides to add some textual information about the scope of this agreement. This is stored locally on Alice's browser and not synced with ChainPact, Blockchain or any other service.

Next, we are presented with a pre-flight check screen to verify the details before submitting it to the chain. We click on "Looks Good - Deploy" to submit and create the pact

Pre-flight Gig pact

Signing and locking funds

The pact is now created and Alice needs to sign it from her end. While signing the pact, the agreed upon pay amount needs to be locked in to the pact. Alice ensures that she has more than 10 USDC in her wallet by clicking on the balance indicator on the top right.

Drafting Gig pact

Alice proceeds to sign the pact by clicking on "Sign as Employer". The app presents a popup containing the core details of the pact. The hash of this transcript must be signed by both parties. This signifies clear acknowledgement of the pact. She verifies the details presented on the popup, and proceeds to sign, and the submit the signature.

Sign As employer popup


Alice then shares the url for the pact, that now lives on blockchain, to Bob for quick and easy access. Bob receives the latest status of the pact and proceeds to sign the pact as well.

Drafting Gig pact


On the course of the agreement between