# BuildGroupResult

> Result of building an atomic transaction group for the exact AVM payment scheme.

```ts
import type { BuildGroupResult } from 'x402-avm-js';
```

```ts
export interface BuildGroupResult {
  txns: algosdk.Transaction[];
  paymentIndex: number;
  signIndexes: number[];
}
```

Result of building an atomic transaction group for the exact AVM payment scheme.

## Properties

- `txns` (`algosdk.Transaction[]`, required):
Unsigned transactions of the atomic group, in order.

- `paymentIndex` (`number`, required):
Index of the buyer's payment transaction in `txns` (1 with a fee payer, 0 without).

- `signIndexes` (`number[]`, required):
Indexes the buyer must sign (`[1]` with a fee payer, `[0]` without).

## Example

```ts
const { txns, paymentIndex, signIndexes }: BuildGroupResult = buildExactAvmGroup(
  requirement,
  payerAddress,
  suggestedParams
);
```

Source: [src/index.ts](https://github.com/x402-avm/x402-avm-js/blob/main/src/index.ts#L120)

Source: https://x402-avm.github.io/reference/js/build-group-result
