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

# getCallingFunctionMetadata

> **getCallingFunctionMetadata**(`config`, `rulesEngineComponentContract`, `policyId`, `callingFunctionId`): `Promise`\<[`CallingFunctionHashMapping`](../../types/type-aliases/CallingFunctionHashMapping)>

retrieves the metadata for a calling function from the rules engine component contract.

## Parameters

| Parameter                              | Type                                  | Description                                                         |
| -------------------------------------- | ------------------------------------- | ------------------------------------------------------------------- |
| `config`                               | `Config`                              | The configuration object containing network and wallet information. |
| `rulesEngineComponentContract`         | `object`                              | The contract instance containing the address and ABI                |
| `rulesEngineComponentContract.abi`     | (`object` \| `object` \| `object`)\[] | -                                                                   |
| `rulesEngineComponentContract.address` | \`0x\$\{string}\`                     | -                                                                   |
| `policyId`                             | `number`                              | The ID of the policy which the calling function belongs to.         |
| `callingFunctionId`                    | `number`                              | The calling function ID.                                            |

## Returns

`Promise`\<[`CallingFunctionHashMapping`](../../types/type-aliases/CallingFunctionHashMapping)>

A promise that resolves to CallingFunctionHashMapping.

## Defined in

[src/modules/calling-functions.ts:158](https://github.com/forte-service-company-ltd/forte-rules-engine-sdk/blob/5aad4d7c3c8cc91280e4449c17ac8ea31219fbed/src/modules/calling-functions.ts#L158)
