Skip to content

ErwanLent/CoPost-Smart-Contracts-API

Repository files navigation

CoPost-Smart-Contracts-API

Made at BCG DV blockchain dAppathon

Delivery Contract

Endpoints

POST /api/makePackageContract

Required params:

  • package_hash
  • shipper_phone
  • recipient_phone
  • amount_to_pay_in_ether

POST /api/payForPackage

Required params:

  • package_hash
  • amount_to_pay_in_ether

POST /api/updateCarrierInformation

Required params:

  • package_hash
  • carrier_phone

Optional params:

  • carrier_address
  • insured_value
  • insurance_premium
  • expiration_unix

The carrier_address is a ethereum address. expiration_unix defaults to 1 month.


POST /api/finalizeDelivery

Required params:

  • package_hash
  • recipient_phone

About

Made at BCG DV blockchain dAppathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published