# PayerAvmSigner

> Client-side signer (`ClientAvmSigner`) for a single Algorand account.

```python
from x402_algorand import PayerAvmSigner
```

```python
class PayerAvmSigner(private_key: str)
```

Client-side signer (`ClientAvmSigner`) for a single Algorand account.

**Example**

```python
signer = PayerAvmSigner.from_mnemonic(os.environ["PAYER_MNEMONIC"])
register_exact_avm_client(client, signer)
```

## Constructor parameters

- `private_key` (`str`, required):

## Methods

### `from_private_key`

```python
@classmethod
def from_private_key(private_key: str) -> PayerAvmSigner
```

Create a signer from a base64 private key (as returned by `algosdk`).

**Parameters**

- `private_key` (`str`, required):

### `from_mnemonic`

```python
@classmethod
def from_mnemonic(mnemonic_phrase: str) -> PayerAvmSigner
```

Create a signer from a 25-word Algorand mnemonic.

**Parameters**

- `mnemonic_phrase` (`str`, required):

### `sign_transactions`

```python
def sign_transactions(
    unsigned_txns: list[bytes],
    indexes_to_sign: list[int],
) -> list[bytes | None]
```

Sign the transactions at `indexes_to_sign`; `None` elsewhere.

**Parameters**

- `unsigned_txns` (`list[bytes]`, required):

- `indexes_to_sign` (`list[int]`, required):

**Raises**

- `SigningError`: If a transaction to sign is not sent by this account.

Source: [x402_algorand/signer.py](https://github.com/x402-avm/x402-algorand/blob/main/x402_algorand/signer.py#L298)

Source: https://x402-avm.github.io/reference/python/x402-algorand/payer-avm-signer
