> For the complete documentation index, see [llms.txt](https://tutorial.neoline.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tutorial.neoline.io/reference/neo3-provider-api/getapplicationlog.md).

# getApplicationLog

Gets the application log for the specified transaction.

## Parameters

#### 1. txid *(required)*

`UInt256`

The transaction hash to inspect.

## Returns

`Promise<ApplicationLog>`

```ts
type ApplicationLog = {
  txid: UInt256;
  executions: {
    trigger: TriggerType;
    vmstate: VMState;
    exception?: string;
    gasconsumed: Integer;
    stack: StackItem[];
    notifications: Notification[];
  }[];
};
```

## Errors

| Code    | Name        | Description                       |
| ------- | ----------- | --------------------------------- |
| `10002` | `INVALID`   | The transaction hash is invalid.  |
| `10008` | `RPC_ERROR` | The RPC server returned an error. |

## Example

### Request

```js
const log = await provider.getApplicationLog(
  "0x28b47996fa62690e85ec54399a745eb1bd5c17c11a8b37c1cf83a1ee6f7bf5e7",
);
```

### Response

```js
{
  txid: '0x28b47996fa62690e85ec54399a745eb1bd5c17c11a8b37c1cf83a1ee6f7bf5e7',
  executions: [
    {
      trigger: 'Application',
      vmstate: 'HALT',
      exception: null,
      gasconsumed: '284442',
      stack: [
        {
          type: 'Any'
        }
      ],
      notifications: [
        {
          contract: '0x9bea75cf702f6afc09125aa6d22f082bfd2ee064',
          eventname: 'FeedUpdated',
          state: {
            type: 'Array',
            value: [
              {
                type: 'ByteString',
                value: 'VFdFTFZFREFUQTpTT0wtVVNE'
              },
              {
                type: 'Integer',
                value: '1773432438'
              },
              {
                type: 'Integer',
                value: '83370000'
              },
              {
                type: 'Integer',
                value: '1775813652'
              },
              {
                type: 'ByteString',
                value: 'C2At7Fcp1GNBp+k3xZ3pGWsmdDwUsxoFfuNWBXNS9q8='
              },
              {
                type: 'Integer',
                value: '1'
              }
            ]
          }
        }
      ]
    }
  ]
}
```
