Bank Accounts
Last updated
Last updated
Bill contracts can also be used by Banks to interface with their clients and enable them to deposit/withdraw money into/from their accounts.
Read this guide to understand how to deploy your own Bill contract and add accounts to it.
The first step is to deploy a Bill contract (with the Is Payable parameter set to Yes since accounts can make withdrawals)
Here is a step by step guide to depositing money into your account in a Bill contract:
Go to your Bill contract and click on the Details button to expose its panel
Click on the ID of your account to select it
Now click on the Control Panel button and then on the Deposit button in the control panel's menu
Fill in the fields with your account ID and the amount you wish to deposit in your account and validate the transaction
Congratualtions! You have succesfully deposited funds into your account. In our use bank use case, all funds deposited should be available for withdrawal at any time.
Here is a step by step guide to withdrawing money from your account in a Bill contract:
Go to your Bill contract and click on the Details button to expose its panel
Click on the ID of your account to select it
Now click on the Control Panel button and then on the Withdraw button in the control panel's menu
Fill in the fields with your account ID and the amount you wish to deposit in your account and validate the transaction