Newer
Older
format: unsignedInteger
description: >-
Note: `partialFee` does not include any tips that you may add to increase a transaction's
priority. See [compute_fee](https://crates.parity.io/pallet_transaction_payment/struct.Module.html#method.compute_fee).
TransactionFeeEstimateFailure:
type: object
properties:
code:
type: number
at:
type: object
properties:
hash:
type: string
error:
description: Error description.
transaction:
type: string
format: hex
block:
type: string
description: Block hash of the block fee estimation was attempted at.
cause:
type: string
description: Error message from the client.
stack:
type: string
TransactionMaterial:
type: object
properties:
at:
$ref: '#/components/schemas/BlockIdentifiers'
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
genesisHash:
type: string
description: The hash of the chain's genesis block.
format: blockHash
chainName:
type: string
description: The chain's name.
specName:
type: string
description: The chain's spec.
specVersion:
type: string
description: The spec version. Always increased in a runtime upgrade.
txVersion:
type: string
description: The transaction version. Common `txVersion` numbers indicate
that the transaction encoding format and method indices are the same.
Needed for decoding in an offline environment. Adding new transactions
does not change `txVersion`.
metadata:
type: string
description: The chain's metadata. It's default return value is hex, but may be returned in
format: hex
description: >-
Note: `chainName`, `specName`, and `specVersion` are used to define a type registry with a set
of signed extensions and types. For Polkadot and Kusama, `chainName` is not used in defining
this registry, but in other Substrate-based chains that re-launch their network without
changing the `specName`, the `chainName` would be needed to create the correct registry.
Substrate Reference:
- `RuntimeVersion`: https://crates.parity.io/sp_version/struct.RuntimeVersion.html
- `SignedExtension`: https://crates.parity.io/sp_runtime/traits/trait.SignedExtension.html
- FRAME Support: https://crates.parity.io/frame_support/metadata/index.html
TransactionPool:
type: object
properties:
pool:
type: array
items:
type: object
properties:
hash:
type: string
format: hex
description: H256 hash of the extrinsic.
encodedExtrinsic:
type: string
format: hex
description: Scale encoded extrinsic.
tip:
type: string
format: unsignedInteger
description: The tip included in the extrinsic. Only included if the query param `includeFee` is set to true.
priority:
type: string
format: unsignedInteger
description: Computed priority of an extrinsic. Only included if the query param `includeFee` is set to true.
partialFee:
type: string
format: unsignedInteger
description: Provided `partialFee` of an extrinsic. Only included if the query param `includeFee` is set to true.
type: object
properties:
type: string
description: The hash of the encoded transaction.
UnappliedSlash:
type: object
properties:
validator:
type: string
description: Stash account ID of the offending validator.
format: ss58
own:
type: string
description: The amount the validator will be slashed.
format: unsignedInteger
others:
type: array
description: Array of tuples(`[accountId, amount]`) representing all the
stashes of other slashed stakers and the amount they will be slashed.
items:
type: string
format: tuple[ss58, unsignedInteger]
reporters:
type: array
description: Array of account IDs of the reporters of the offense.
items:
type: string
format: ss58
payout:
type: string
description: Amount of bounty payout to reporters.
format: unsignedInteger
VestingSchedule:
type: object
properties:
locked:
type: string
description: Number of tokens locked at start.
format: unsignedInteger
perBlock:
type: string
description: Number of tokens that gets unlocked every block after `startingBlock`.
format: unsignedInteger
startingBlock:
type: string
description: Starting block for unlocking (vesting).
format: unsignedInteger
description: Vesting schedule for an account.
WeightsV2:
type: object
properties:
refTime:
type: string
description: The weight of computational time used based on some reference hardware.
proofSize:
type: string
description: The weight of storage space used by proof of validity.
WinningData:
type: object
properties:
bid:
type: object
properties:
accountId:
type: string
paraId:
type: string
format: unsignedInteger
amount:
type: string
format: unsignedInteger
leaseSet:
type: array
items:
type: string
format: unsignedInteger
description: |
A currently winning bid and the set of lease periods the bid is for. The
`amount` of the bid is per lease period. The `bid` property will be `null`
if no bid has been made for the corresponding `leaseSet`.
requestBodies:
Transaction:
content:
application/json:
schema:
$ref: '#/components/schemas/Transaction'
required: true