v1

latestOpenAPI 3.0.02026-07-17120114186.8 KB
bus

Record contract spending

Records the spending of a contract. This is used to keep track of how much was spent on sector deletions, funding ephemeral accounts, listing sector roots, and storing sectors.

post/bus/contracts/spending

Request body

deletionsstring

Total amount spent on sector deletions

fundAccountstring

Total amount spent on funding ephemeral accounts

sectorRootsstring

Total amount spent on listing sector roots

uploadsstring

Total amount spent on storing sectors

contractIDstring

A unique identifier for a file contract

revisionNumberinteger

The revision number of the contract

sizeinteger

The size of the contract in bytes

missedHostPayoutstring

The amount of siacoins that the host will receive if the contract resolves missed

validRenterPayoutstring

The amount of siacoins that the renter will receive if the contract resolves valid.

Example request

[
  {
    "revisionNumber": 246
  }
]

Response

Spending recorded successfully