Manage Escrow Smart Contract - Overview

Overview on how to manage an Escrow Smart Contract on the FlexSmart platform

Steps to Access Manage Escrow Page

  1. Go to the Escrow landing page from the main menu on the left and click on the Manage Your Escrows button.

  2. You will be redirected to the Your Escrows page where all your escrow smart contracts will be listed.

  3. Click on the card for the escrow smart contract that you want to manage.

In order to manage your Escrow Smart Contract, be sure that you are connected to the same blockchain wallet that was used during escrow creation.

  1. You will be redirected to the Manage Escrow page in which you will be presented with various tabs. Continue reading the Manage Escrow Page Overview section to learn more about those tabs.

Manage Escrow Page Overview

Escrow Details Tab

Within this tab, you will find all the essential escrow information such as the description, the data of the roles involved, the creation date, the amount, etc. Basically, all the information that was added when the contract was created.

Current Status Tab

Here you will find actions available depending on your role and the current step the contract is in, as well as valuable information about the status of the escrow.

  • Current Balance: Displays the balance of the escrow. When the buyer sends the funds, this field will show the total amount that was sent. When the seller withdraws, this field will automatically update to reflect the current balance.

  • Is Withdrawing?: This field reflects if the withdrawal of the funds has started. (Gray=NO / Blue=YES)

  • Amount for Withdrawal: Displays the amount available for withdrawal for the specific role

  • Buyer Released Funds?: This field reflects if the buyer has released funds to the seller (Gray=NO / Blue=YES)

  • Seller Released Funds?: This field reflects if the seller has released funds to the buyer (Gray=NO / Blue=YES)

  • In Dispute?: This field reflects if the contract is in dispute or not (Gray=NO / Blue=YES)

  • In Dispute Since: If the contract is in dispute, you will find the date and time the contract entered dispute status. If the contract is not in dispute, the field will display N/A.

Get Started: Head on over to FlexSmart and start building your own Escrow Smart Contract on the blockchain.

Actions Tab

Readable and Writable Actions are listed within this tab. Depending on your role in the contract, the following actions may be available.

Writable Actions:

  • Open a Dispute: Open a dispute if there is a disagreement during the transaction. This action puts the contract "in dispute" mode until the arbiter submits a resolution.

  • Release Funds: Release the available funds to be available by the buyer or seller for withdrawal. In some cases both parties will execute this action, then the funds will be available to both parties accordingly.

  • Resolves Dispute: Resolves the dispute by dividing up the funds accordingly

  • Withdraw Funds: Withdraw tokens to your own address

Readable Actions:

  • Amount for Withdraw: Calculates funds available for a given address when the funds are ready to be withdrawn

  • Arbiter’s Address: Displays the arbiter's address

  • Arbiter’s Percentage: Displays the percentage of cut to the arbiter if a dispute occurs (with 18 zeros)

  • Auto Release Days: Displays how many days the contract waits until auto-release occurs

  • Buyer’s Address: Displays the buyer's address

  • Buyer Released Funds?: Whether the buyer has released escrow funds to the seller

  • Created At: Reflects when the contract was created

  • Description: Description of the item for which this escrow contract is created

  • ERC20 Token Address: Token contract address

  • Is In Dispute?: Displays whether or not the contract is in dispute

  • In Dispute Since: Displays the time when the contract was first put into dispute

  • Seller’s Address: Displays the seller's address

  • Seller Released Funds?: Whether the seller has released escrow funds to the buyer

  • Withdrawing Has Begun: Displays whether the withdrawal of funds has already started. When true, no more changes can be made to the state of the contract.

Steps to Execute a Writable Action:

  1. Click on the action you want to execute in the Write section

  2. Fill the fields with valid data (if applies)

  3. Click on the Execute button

  4. Open MetaMask pop-up

  5. Confirm the transaction on MetaMask

  6. You will see a loading icon on the Execute button while the transaction is executed on the blockchain

  7. When the transaction is complete, you will see the transaction information in the output field. If the transaction fails, a red error message will be displayed.

Steps to Execute a Readable Action:

  1. Click on the action you want to execute in the Read section.

  2. Fill the fields with valid data (if applies)

  3. Click on the Run button

  4. When the transaction is complete, you will see the transaction information in the output field. If the transaction fails, a red error message will be displayed.

Code Tab

Under Construction: In the near future, this section will provide information on FlexSmart's SDKs.

ABI Tab

Under Construction: In the near future, this section will provide information on FlexSmart's ABIs.

Continue reading for step-by-step instructions on managing your Escrow Smart Contract.

Last updated