# @integraledger/profile-facilitator

> The exports of @integraledger/profile-facilitator.

Source: https://connectors.integraledger.com/reference/api/profile-facilitator

## Interfaces

### ProfileFacilitatorConfig

#### Properties

| Property        | Type        | Description                                                                                   |
| --------------- | ----------- | --------------------------------------------------------------------------------------------- |
|  `listen`       | `string`    | "host:port"                                                                                   |
|  `polkadot?`    | `object`\[] | An RPC node that serves `state_call` and `author_submitExtrinsic`.                            |
|  `settleWaitMs` | `number`    | How long `/settle` waits for inclusion before answering `settlement_pending`; default 30 000. |
|  `store`        | `object`    | Postgres, for deduplication only.                                                             |
| `store.url`     | `string`    | -                                                                                             |
|  `tron?`        | `object`\[] | -                                                                                             |

## Type Aliases

### SettleAnswer

> **SettleAnswer** = \{ `network`: `string`; `payer`: `string`; `success`: `true`; `transaction`: `string`; } | \{ `errorReason`: `string`; `network`: `string`; `success`: `false`; `transaction`: `string`; }

***

### VerifyAnswer

> **VerifyAnswer** = \{ `isValid`: `true`; `payer`: `string`; } | \{ `invalidReason`: `InvalidReason`; `isValid`: `false`; `payer?`: `string`; }

## Functions

### serveProfileFacilitator()

> **serveProfileFacilitator**(`c`): `Promise`\<\{ `close`: `Promise`\<`void`>; }>

#### Parameters

| Parameter | Type                                                    |
| --------- | ------------------------------------------------------- |
| `c`       | [`ProfileFacilitatorConfig`](#profilefacilitatorconfig) |

#### Returns

`Promise`\<\{ `close`: `Promise`\<`void`>; }>
