# fromHumanReadableString()

```
function fromHumanReadableString(amount, token): bigint;
```

Defined in: [atomiq-sdk/src/utils/TokenUtils.ts:26](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/utils/TokenUtils.ts#L26)

Parses a human-readable decimal string to a raw bigint amount

## Parameters

| Parameter | Type                                                                                           | Description          |
| --------- | ---------------------------------------------------------------------------------------------- | -------------------- |
| `amount`  | `string`                                                                                       | Amount in base units |
| `token`   | [`Token`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/type-aliases/Token.md) | Token                |

## Returns

`bigint`
