Add a comment for MethodOpts

This commit is contained in:
Leonid Logvinov
2017-09-08 14:02:03 +02:00
parent fdf54668ae
commit be0b9a1d7c

View File

@@ -421,6 +421,12 @@ export interface Artifact {
}};
}
/*
* defaultBlock: The block up to which to query the blockchain state. Setting this to a historical block number
* let's the user query the blockchain's state at an arbitrary point in time. In order for this to work, the
* backing Ethereum node must keep the entire historical state of the chain (e.g setting `--pruning=archive`
* flag when running Parity).
*/
export interface MethodOpts {
defaultBlock?: Web3.BlockParam;
}