toBlockParam method
Generates the block parameter as it is accepted by the Bifrost client.
Implementation
String toBlockParam() {
if (useAbsolute) return blockNum.toString();
switch (blockNum) {
case 0:
return 'earliest';
case 1:
return 'latest';
case 2:
return 'pending';
default:
return 'latest'; //Can't happen, though
}
}