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 .

post/file/get-upload-link

Request

  • Base URL
    https://api.zan.top/scr/v1
  • URL
    https://api.zan.top/scr/v1/file/get-upload-link
  • Auth
    none required

Headers

Authorizationstring required

Fill your access key after Bearer

Response

200

successboolean

Example response

{
  "data": {
    "accessId": "LTAI5t8xhqD2DSFHtoYodqh9",
    "policy": "eyJleHBpcmF0aW9uIjoiMjAyMy0wNi0wOFQwOTo0NjoyMi41NDhaIiwiY29uZGl0aW9ucyI6W1siY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsMTA0ODU3NjAwMF0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJkcnczL3dlYnRic3MvY3VzdG9tZXIvIl1dfQ==",
    "signature": "Qe06fJM33ji3K9cBbtNaxAq0cDU=",
    "dir": "drw3/webtbss/customer/",
    "host": "drw3-common-test.oss-ap-southeast-1.aliyuncs.com",
    "expires": "1686217582",
    "fileId": "f1aef60b5a5741f492cb04a002687d2b"
  },
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.