Learn how to add a contract and sign it under 5 minutes.



You need your API key to perform the actions on this page.
You also need the SealerAdmin Role.

If you don't have an API key, please refer to this section to get your API key.

To add a contract and sign it, you will need:

  • A contract file
  • A signature file
  • A signer email, any email of your choice in this example

Download the following files:
Contract file: https://www.docracy.com/3152/designer-sample-contract
Signature file: https://upload.wikimedia.org/wikipedia/commons/2/2d/Sample_SVG_file%2C_signature.svg

Let's add a contract and sign it!

Replace the following parameters:

{{PRODUCT_ID}}: Your Product id
{{YOUR_API_KEY}}: Your own API key
{{CONTRACT_FILE}}: The contract file you want to upload, use the contract file you've downloaded before
{{CONTRACT_DISPLAY_NAME}}: The display name of the new contract
{{SIGNER_EMAIL}}: An email, you can choose whatever you want
{{SIGNATURE_FILE}}: The signature of the signer, use the signature file you've downloaded before

curl -X POST \
  https://api.mantleblockchain.com/sealer/{{PRODUCT_ID}}/contracts \
  -H 'Accept: text/plain, application/json, text/json' \
  -H 'Content-Type: multipart/form-data' \
  -H 'x-api-key: {{YOUR_API_KEY}}' \
  -F 'file={{CONTRACT_FILE}}' \
  -F 'displayName={{CONTRACT_DISPLAY_NAME}}' \
  -F 'signerEmails={{SIGNER_EMAIL}}' \
  -F 'signatures={{SIGNATURE_FILE}}'



You've added a contract and signed it with a signature!