getByBlock method

Future<HeliumResponse<HeliumOraclePrice>> getByBlock(
  1. int block
)

Gets the Oracle Price at a specific block and at which block it initially took effect.

Implementation

Future<HeliumResponse<HeliumOraclePrice>> getByBlock(int block) async {
  return _client._doRequest(HeliumRequest(
    path: '/v1/oracle/prices/$block',
    extractResponse: (json) => HeliumOraclePrice.fromJson(json['data']),
  ));
}