The id of the transaction you would like to get the application logs for
network?: string
Network to submit this request to. If omitted, will default to network the wallet is currently set to. If omitted, will default the network which the wallet is set to
Success Response
The wallet will return the direct response from the RPC node.
Error Response
Parameter
Description
type: string
The type of error which has occured
description: string
A description of the error which has occured
data: string
Any raw data associated with the error
Example
Request
neoline.getApplicationLog({ txid:'7e049fd7c253dabf38e4156df30c78b30d49f307196aa89b99a47d2330789bf2', network:'TestNet'}).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; }});