Skip to content

Event block hash #19

@peerchemist

Description

@peerchemist

Hello,

I am getting started with this package. I am following the https://github.com/devopsdao/webthree/blob/master/example/contracts.dart example.

  // listen for the Transfer event when it's emitted by the contract above
  final subscription = token.transferEvents().take(1).listen((event) {
    print('${event.from} sent ${event.value} MetaCoins to ${event.to}!');
  });

How can I obtain block height or block hash out of the event object?

print(event.blockHash);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions