# Blockchain and JavaScript

**URL:** <https://forum.algorand.co/t/blockchain-and-javascript/1749>\
**Category:** Uncategorized\
**Created:** [June 10, 2020, 1:59pm UTC](https://forum.algorand.co/t/blockchain-and-javascript/1749 "2020-06-10T13:59:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mister\_Enzo](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Mister\_Enzo](https://forum.algorand.co/u/Mister_Enzo)\
**Post date:** [June 10, 2020, 1:59pm UTC](https://forum.algorand.co/t/blockchain-and-javascript/1749/1 "2020-06-10T13:59:52Z")

</div>

Hi everyone,  
I’m trying to locate a transaction on the Algorand Blockchain with a script in JavaScript. When i run it from terminal i receive the transaction, but when i run it inside an .php file i have this error: require ReferenceError: require is not defined. The require is this: require(‘algosdk’);.

Thank you, 🙂

---

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.algorand.co/u/fabrice)\
**Post date:** [June 10, 2020, 3:39pm UTC](https://forum.algorand.co/t/blockchain-and-javascript/1749/2 "2020-06-10T15:39:46Z")

</div>

Can you send us the command line you used to run the script and the script (write it inside triple backquotes ``` to allow good formatting)?
