subscan
Runtime Modules / BTCRelay
Spec Version:
Events
Name
Lookup
Attributes
Initialized3200["u32","H256Le","AccountId"]
StoreMainChainHeader3201["u32","H256Le","AccountId"]
StoreForkHeader3202["u32","u32","H256Le","AccountId"]
ChainReorg3203["H256Le","u32","u32"]
ForkAheadOfMainChain3204["u32","u32","u32"]
Storage Functions
Name
Type
BlockHeaders{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["[U8; 32]"],"value":"btc_relay:types:RichBlockHeader","keys_id":76,"value_id":372}}
Chains{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"U32","keys_id":4,"value_id":4}}
ChainsIndex{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"bitcoin:types:BlockChain","keys_id":4,"value_id":377}}
ChainsHashes{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","U32"],"value":"[U8; 32]","keys_id":34,"value_id":76}}
BestBlock{"origin":"PlainType","plain_type":"[U8; 32]","PlainTypeValue":76}
BestBlockHeight{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
StartBlockHeight{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
ChainCounter{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
StableBitcoinConfirmations{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
StableParachainConfirmations{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
DisableDifficultyCheck{"origin":"PlainType","plain_type":"Bool","PlainTypeValue":87}
DisableInclusionCheck{"origin":"PlainType","plain_type":"Bool","PlainTypeValue":87}
Constants
Name
Type
Value
ParachainBlocksPerBitcoinBlockU3232000000
Error Types
Name
Docs
AlreadyInitializedAlready initialized
InvalidStartHeightStart height must be start of difficulty period
MissingBlockHeightMissing the block at this height
InvalidHeaderSizeInvalid block header size
DuplicateBlockBlock already stored
PrevBlockPrevious block hash not found
InvalidChainIDInvalid chain ID
LowDiffPoW hash does not meet difficulty target of header
DiffTargetHeaderIncorrect difficulty target specified in block header
MalformedTxidMalformed transaction identifier
BitcoinConfirmationsTransaction has less confirmations of Bitcoin blocks than required
ParachainConfirmationsTransaction has less confirmations of Parachain blocks than required
OngoingForkCurrent fork ongoing
MalformedMerkleProofMerkle proof is malformed
InvalidMerkleProofInvalid merkle proof
ShutdownBTC Parachain has shut down
InvalidTxidTransaction hash does not match given txid
InvalidPaymentAmountInvalid payment amount
MalformedTransactionTransaction has incorrect format
InvalidPaymentIncorrect recipient Bitcoin address
InvalidOutputFormatIncorrect transaction output format
InvalidOpReturnIncorrect identifier in OP_RETURN field
InvalidTxVersionInvalid transaction version
UnknownErrorcodeError code not applicable to blocks
ForkIdNotFoundBlockchain with requested ID not found
BlockNotFoundBlock header not found for given hash
AlreadyReportedError code already reported
UnauthorizedRelayerUnauthorized staked relayer
ChainCounterOverflowOverflow of chain counter
BlockHeightOverflowOverflow of block height
ChainsUnderflowUnderflow of stored blockchains counter
EndOfFileEndOfFile reached while parsing
MalformedHeaderFormat of the header is invalid
InvalidBlockVersionInvalid block header version
MalformedWitnessOutputFormat of the BIP141 witness transaction output is invalid
MalformedP2PKHOutput
MalformedP2SHOutput
MalformedOpReturnOutputFormat of the OP_RETURN transaction output is invalid
UnsupportedOutputFormat
UnsupportedInputFormat
InvalidBtcHashUser supplied an invalid address
InvalidScriptUser supplied an invalid script
InvalidBtcAddressSpecified invalid Bitcoin address
ArithmeticOverflowArithmetic overflow
ArithmeticUnderflowArithmetic underflow
TryIntoIntErrorTryInto failed on integer
InvalidTransactionTransaction does meet the requirements to be considered valid
InvalidOpReturnTransactionTransaction does meet the requirements to be a valid op-return payment
InvalidCompactInvalid compact value in header