# `Cartouche.Erc20.CallData`
[🔗](https://github.com/zenhive/cartouche/blob/main/lib/cartouche/erc_20.ex#L50)

Module to encode `calldata` for given adaptor operations.

# `balance_of`

```elixir
@spec balance_of(Cartouche.address()) :: binary()
```

Encodes the call data for a `balanceOf` operation.

## Examples

    iex> Cartouche.Erc20.CallData.balance_of(<<0xDD>>) |> Cartouche.Hex.encode_hex()
    "0x"

# `transfer`

```elixir
@spec transfer(Cartouche.address(), non_neg_integer()) :: binary()
```

Encodes the call data for a `transfer` operation.

## Examples

    iex> Cartouche.Erc20.CallData.transfer(<<0xDD>>, 100_000)
    ...> |> Cartouche.Hex.encode_hex()
    "0x8035f0ce"

---

*Consult [api-reference.md](api-reference.md) for complete listing*
