Upload files

This API is used to upload smart contract source code. It returns the upload link and access id. You can use the returned parameters to construct an upload request .

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

How to use the returned parameters to construct a upload request? Here is an example:

curl -X POST \
  -F "key=<returned_dir+/current_timestamp+/your_file_name>" \
  -F "policy=<returned_policy>" \
  -F "OSSAccessKeyId=<returned_accessId>" \
  -F "Signature=<returned_signature>" \
  -F "Expires=<returned_expires>" \
  -F "file=@your_file_path" \
  returned_host_url
Headers
string
required
Defaults to Bearer eyJhbGciOiJIUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6Ik5PUk1BTF9VU0VSIiwicHVycG9zZSI6IkFDQ0VTU19LRVkiLCJub25jZSI6ODksInN1YiI6ImRlbW8tYWsiLCJpYXQiOjE2ODc4NjA5NTl9.UiuLIXAagoAMN24lR0KXL7YSX7XHkH9NZaV-6U9aRgw

Fill your access key after Bearer

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json