<p>You can get most of the nxt objects using NRS.sendRequest(""</p>

<p>The following code gets the asset object of whats in question.</p>

<p><strong>NRS.sendRequest("getAsset", {"asset": asset}, function(response) { //do stuff with response}, false)</strong></p>

<pre><code>NRS.sendRequest("getAsset", {   
  "asset": &lt;*Your Asset ID here*&gt;
}, function(response) {         
  if (response &amp;&amp; response.asset) {
    console.log(response);        
  }, false                          
});                             
</code></pre>

<p>You would get the following response from chrome's console log like this:</p>

<p><a href="http://prntscr.com/7zm5fh" rel="nofollow noreferrer">http://prntscr.com/7zm5fh</a></p>

<p><a href="https://i.sstatic.net/lrwQV.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/lrwQV.png" alt="enter image description here"></a></p>

CC BY-SA 3.0
2015-08-01T14:43:28.727Z
2015-08-01T16:09:59.270Z
2015-08-01T16:09:59.270Z
Patoshi パトシ
<p>I want to get an object and its variables of a NXT asset. What is the function to retrieve an object of an nxt asset? </p>

<nxt>
What is the function to get the object of a NXT asset in javascript?
Patoshi パトシ
# What is the function to get the object of a NXT asset in javascript?

(Asked by: username_0 on 2015-07-31)

I want to get an object and its variables of a NXT asset. What is the function to retrieve an object of an nxt asset?

**Tags:** nxt


---

## 1 answers

### Answer by username_0 on 2015-08-01. Score: 1 | Accepted answer

You can get most of the nxt objects using NRS.sendRequest(""

The following code gets the asset object of whats in question.

**NRS.sendRequest("getAsset", {"asset": asset}, function(response) { //do stuff with response}, false)**

```
NRS.sendRequest("getAsset", {   
  "asset": <*Your Asset ID here*>
}, function(response) {         
  if (response && response.asset) {
    console.log(response);        
  }, false                          
});                             

```

You would get the following response from chrome's console log like this:

<http://prntscr.com/7zm5fh>

[![enter image description here](https://i.sstatic.net/lrwQV.png)](https://i.sstatic.net/lrwQV.png)


---

