# Getting Started

**URL:** https://heroiclabs.com/docs/hiro/dart/getting-started/
**Keywords:** getting started, hiro
**Categories:** hiro, dart, getting-started

---


## Client

The Dart client is available from Heroic Labs. [Contact us](mailto:contact@heroiclabs.com) to request access.

Once you have received the client:

1. Add it into your Dart project's `lib` folder.
2. Import it into your project `import 'hiro-client.dart';`

{{< note "important" "Import Nakama" >}}
Don't forget to also import Nakama using `import 'package:nakama/nakama.dart';`{{< / note >}}

## Setting up your initial script to run Hiro

Define the global variables:

```dart
late final NakamaRestApiClient _nakamaAPIClient;
late final HiroClient hiro;
Session? session;
```

Initialize the Nakama RestAPI Client 

```dart
const String host = "127.0.0.1";
const String serverKey = "defaultkey";

_nakamaAPIClient = NakamaRestApiClient.init(host: host, serverKey: serverKey, ssl: false);


hiro = HiroClient(_nakamaAPIClient);
```

To start making RPC calls, authenticate the client:

```dart
session = await _nakamaAPIClient.authenticateEmail(
        email: 'test@example.com',
        password: 'password123',
        create: true
      );
```

You are now able to use the Hiro Client, for example, to make an Economy Grant:

```dart
var request = EconomyGrantRequest();
      request.currencies = {
          "coins": "100"
      };

var grant = await hiro.economyGrant(session!, request);
```


