> 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-legacy/read-methods/getapplicationlog.md).

# getApplicationLog

Get the application log for a given transaction.

## **Input Arguments**

<table><thead><tr><th width="286">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><code>txid: string</code></td><td>The id of the transaction you would like to get the application logs for</td></tr></tbody></table>

## **Success Response**

The wallet will return the direct response from the RPC node.

## **Error Response**

<table><thead><tr><th width="298">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><code>type: string</code></td><td>The type of error which has occured</td></tr><tr><td><code>description: string</code></td><td>A description of the error which has occured</td></tr><tr><td><code>data: string</code></td><td>Any raw data associated with the error</td></tr></tbody></table>

## Example

### Request

```js
neolineN3.getApplicationLog({
    txid: '0xe5a5fdacad0ba4e8d34d2fa0638357adb0f05e7fc902ec150739616320870f50',
})
.then(result => {
    console.log('Application log of transaction execution: ' + JSON.stringify(result));
})
.catch((error) => {
    const {type, description, data} = error;
    switch(type) {
        case 'NO_PROVIDER':
            console.log('No provider available.');
            break;
        case 'RPC_ERROR':
            console.log('There was an error when broadcasting this transaction to the network.');
            break;
        default:
            // Not an expected error object.  Just write the error to the console.
            console.error(error);
            break;
    }
});
```

### Response

```js
{
    "blockhash": "0xa8184d1fb08199ca8926f992b6253962c4a8047f7d4cfc5ac420e346fa761b03",
    "executions": [
        {
            "trigger": "OnPersist",
            "vmstate": "HALT",
            "gasconsumed": "0",
            "stack": [],
            "notifications": []
        },
        {
            "trigger": "PostPersist",
            "vmstate": "HALT",
            "gasconsumed": "0",
            "stack": [],
            "notifications": [
                {
                    "contract": "0xd2a4cff31913016155e38e474a2c06d08be276cf",
                    "eventname": "Transfer",
                    "state": {
                        "type": "Array",
                        "value": [
                            {
                                "type": "Any"
                            },
                            {
                                "type": "ByteString",
                                "value": "iQwOXsDt//2me0sNlRpUdBcVOg4="
                            },
                            {
                                "type": "Integer",
                                "value": "50000000"
                            }
                        ]
                    }
                }
            ]
        }
    ]
}
```
