Creating a promise
How to create a promise?
Go to the dashboard from the menu.
Click "New promise" to create a promise.
There are two ways of creating a promise:
- using the App ;
- from the contract.
Using the App to create a promise will allow its content to get verified, and spare you the trouble of sending it to IPFS, and eventually to Arweave.
The 'Create promise' drawer on the App.
The process is rather straightforward:
- 1.Enter a name for your promise (max 70 characters).
- 2.Input data for at least one participant:
- Name (min 2 - max 30 characters) ;
- Ethereum address (a valid Ethereum address) ;
- Twitter username (optional ; a valid Twitter handle).
- 3.Add as many participants as needed.
- 5.Upload as many files as needed (max 10 MB).
You must be included as a participant, so you won't be able to delete the row that includes your address.
You cannot add duplicate Ethereum addresses.
You need to upload file by file ; you can't upload a folder directly.
Files won't be uploaded to IPFS or Arweave until you click the Create button.
Once you click Create, the process of "uploading" to IPFS / Arweave and submitting the transaction will start.
If you chose not to send the content to Arweave, you will only need to confirm one transaction, which will create the promise contract holding all its information.
If you chose to send the content to Arweave, there are a few additional steps:
- 1.Funding your Bundlr wallet: you will be prompted to confirm a transaction, that will transfer the required amount in MATIC to your Bundlr wallet ; it will be used for sending the files to the Arweave blockchain.
- 2.Authorizing Bundlr: you will be asked to sign a message to authorize Bundlr to send the files on Arweave.
Once you have completed these steps, the promise will be created, and available both in the Explore promises and the Dashboard pages.
The promise creation window provides a link to create the promise by directly interacting with the contract.
If you create a promise from the contract, without using the App, we won't be able to verify that the files have indeed been uploaded to IPFS & Arweave.
Therefore, the promise will be displayed with the tag "
Not verified" on the App UI.
Navigating to the contract to create a promise.
Once in the
createPromiseContractfunction, you will need to provide the following parameters:
You must put your address as the first one in the array, otherwise the transaction will be reverted.
All fields need to be filled up in order to submit the transaction.
_partyAddressesneed to have the same length.
When all the fields have been filled correctly, you can submit the transaction, and refresh the App to see your promise displayed.