ContractStateProvider
For the complete documentation index, see llms.txt
@midnight-ntwrk/compact-runtime v0.20.0
@midnight-ntwrk/compact-runtime / ContractStateProvider
Interface: ContractStateProvider
A user-provided fetch of a contract's public state at a block hash, used only for cross-contract
call targets. The state returned must be post-block-evaluation; blockHash is the
parentBlockHash from the circuit context.
Methods
getContractState()
getContractState(blockHash, address): Promise<ContractState | undefined>;
Parameters
blockHash
string
address
string
Returns
Promise<ContractState | undefined>