Prune contract data

post/contract/{id}/prune

Path parameters

idstring required

A unique identifier for a file contract

Request body

timeoutinteger

A duration in milliseconds

Example request

{
  "timeout": 30000
}

Response

Contract pruned successfully

sizeinteger

The size of the pruned contract in bytes

prunedinteger

The number of bytes pruned

remaininginteger

The number of prunable bytes remaining

errorstring

An error message if the prune failed

Changes