getByIndex method

Future<Cip150MetadataEntry> getByIndex(
  1. BigInt index, {
  2. BlockNum? atBlock,
})

Implementation

Future<Cip150MetadataEntry> getByIndex(
  BigInt index, {
  BlockNum? atBlock,
}) async {
  final result = await read(self.function('getMetadataByIndex'), [
    index,
  ], atBlock);
  return Cip150MetadataEntry(
    key: result[0] as String,
    value: result[1] as String,
  );
}