Skip to content

Commit

Permalink
feat(tx): add valid_contract
Browse files Browse the repository at this point in the history
  • Loading branch information
sorki committed Oct 12, 2021
1 parent 70e3078 commit 9690160
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -55,6 +55,8 @@ and this project will adhere to [Semantic Versioning](https://semver.org/spec/v2
- `script` property to `/addresses/{hash}`, which is `true` when
the address is a script address.
- `redeemer_count` property to `/txs/{hash}` endpoint
- `valid_contract` property to `/txs/{hash}` endpoint, `true` when attached
script passed validation, `false` if it failed phase 2 validation
- Boolean `collateral` property to `inputs` object
of `/txs/{hash}/utxos` endpoint
- `data_hash` property to both `inputs` and `outputs` objects of
Expand Down
5 changes: 5 additions & 0 deletions swagger.yaml
Expand Up @@ -4845,6 +4845,10 @@ components:
type: integer
example: 0
description: Count of redeemers within the transaction
valid_contract:
type: boolean
example: true
description: True if contract script passed validation
required:
- hash
- block
Expand All @@ -4866,6 +4870,7 @@ components:
- pool_retire_count
- asset_mint_or_burn_count
- redeemer_count
- valid_contract
tx_content_utxo:
type: object
properties:
Expand Down

0 comments on commit 9690160

Please sign in to comment.