We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TronWeb: 6.0.0
properties ret, signature are missing in Transaction interface
Transaction Interface: export interface Transaction<T = ContractParamter> { visible: boolean; txID: string; raw_data: { contract: TransactionContract<T>[]; ref_block_bytes: string; ref_block_hash: string; expiration: number; timestamp: number; data?: unknown; fee_limit?: unknown; }; raw_data_hex: string; }
Request: tronWeb.trx.getTransaction('broadcast tx hash').then((tx) => {console.log(tx)}); getTransaction implementation: async getTransaction(transactionID: string): Promise<Transaction> { const transaction = await this.tronWeb.fullNode.request<Transaction>( 'wallet/gettransactionbyid', { value: transactionID, }, 'post' ); if (!Object.keys(transaction).length) { throw new Error('Transaction not found'); } return transaction; } Response: { ret: [ { contractRet: 'SUCCESS' } ], signature: [ --- ], txID: '---', raw_data: { contract: [ [Object] ], ref_block_bytes: '---', ref_block_hash: '---', expiration: ---, fee_limit: ---, timestamp: --- }, raw_data_hex: '---' }
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
Thanks for your feedback. We'll fix it in the next version.
No branches or pull requests
TronWeb: 6.0.0
properties ret, signature are missing in Transaction interface
The text was updated successfully, but these errors were encountered: