transactionStorage
checkProof(proof: SpTransactionStorageProofTransactionStorageProof)
interface:
transactionStorage.checkProofsummary: Check storage proof for block number
block_number() - StoragePeriod. If such block does not exist the proof is expected to beNone. # ComplexityLinear w.r.t the number of indexed transactions in the proved block for random probing. There’s a DB read for each transaction.
renew(block: u32, index: u32)
interface:
transactionStorage.renewsummary: Renew previously stored data. Parameters are the block number that contains previous
storeorrenewcall and transaction index within that block. Transaction index is emitted in theStoredorRenewedevent. Applies same fees asstore. # ComplexityO(1).
store(data: Bytes)
interface:
transactionStorage.storesummary: Index and store data off chain. Minimum data size is 1 bytes, maximum is
MaxTransactionSize. Data will be removed afterSTORAGE_PERIODblocks, unlessrenewis called. # ComplexityO(n*log(n)) of data size, as all data is pushed to an in-memory trie.