POST /file

Save a file in the data store.

Parameters

Name Type Description
input string A hash value of data to be saved in DataObject A JSON character string of transaction contents
input.cnsAddress string The contract address of the CNS registering the contract that defined transaction
input.contractName string Name of contract defining transaction
input.functionName string Contract function name
input.objectId string DataObject ID
input.dataHash string Hash value of the file name to be stored in the data store
input.fileHash string Hash value of the file to be stored in the data store
input.params array Parameters to pass to transaction excluding sign of first argument
data string File name data to be stored in the data store
file File File to be saved in the data store
sign string Signed to guarantee the input contents

Response Example

{
  "code": 0,
  "message": "",
  "txHash": "0x8b8bb6a0fd2635624255d546fdde8c89c5b354840af74bcf1b9a0174be1fd291"
}

results matching ""

    No results matching ""