v1

latestOpenAPI 3.0.02026-07-17120114186.8 KB
bus

Broadcast transaction

Broadcasts the specified transaction.

post/bus/txpool/broadcast

Request body

minerFeesCurrency[]

List of miner fees included in the transaction.

arbitraryDatastring[]

Arbitrary binary data included in the transaction.

Example request

{
  "siacoinInputs": [
    {
      "unlockConditions": {
        "timelock": 92813,
        "publicKeys": [
          {
            "algorithm": "ed25519"
          }
        ]
      }
    }
  ],
  "fileContracts": [
    {
      "windowStart": 92813,
      "windowEnd": 92813,
      "revisionNumber": 246
    }
  ],
  "fileContractRevisions": [
    {
      "unlockConditions": {
        "timelock": 92813,
        "publicKeys": [
          {
            "algorithm": "ed25519"
          }
        ]
      },
      "windowStart": 92813,
      "windowEnd": 92813,
      "revisionNumber": 246
    }
  ],
  "siafundInputs": [
    {
      "unlockConditions": {
        "timelock": 92813,
        "publicKeys": [
          {
            "algorithm": "ed25519"
          }
        ]
      }
    }
  ],
  "signatures": [
    {
      "timelock": 92813
    }
  ]
}

Response

Successfully broadcast transaction