> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iso20022js.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ISO20022

> Core class of iso20022.js

# ISO20022

The `ISO20022` class is a core message creator for generating ISO20022 compliant messages. It requires an `ISO20022Config` object during instantiation, which includes the `initiatingParty` of type `Party`.

## Constructor

```typescript theme={null}
export interface ISO20022Config {
    initiatingParty: Party;
}

// Example Usage
const iso20022 = new ISO20022({
    initiatingParty: {
        name: 'Acme Corporation',
        id: 'ACMECORP',
        account: {
            accountNumber: '123456789012',
        },
        agent: {
            bic: 'CHASUS33',
            bankAddress: {
                country: 'US',
            }
        }
    }
});
```

Initializes a new `ISO20022` instance with the provided configuration.

In this case, `ACMECORP` is a unique ID given by the bank to identify the initiating party, given to by the bank.
