# Communicating with grin-wallet API (Tutorial)

**URL:** <https://forum.grin.mw/t/communicating-with-grin-wallet-api-tutorial/9925>\
**Category:** Tech Support\
**Created:** [July 12, 2022, 2:59pm UTC](https://forum.grin.mw/t/communicating-with-grin-wallet-api-tutorial/9925 "2022-07-12T14:59:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidtavarez](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@davidtavarez](https://forum.grin.mw/u/davidtavarez)\
**Post date:** [July 12, 2022, 2:59pm UTC](https://forum.grin.mw/t/communicating-with-grin-wallet-api-tutorial/9925/1 "2022-07-12T14:59:39Z")

</div>

For a while now on the grin-wallet API I’ve been collecting notes and script, especially lately as I’ve been supporting a developer working for an Exchange. I managed to put everything together in a tutorial type document. The document takes you from installing grin to communicating with the API.

> **[GitHub - grincc/grin-wallet-api-tutorial: Grin wallet API Tutorial](https://github.com/grincc/grin-wallet-api-tutorial)**
>
> Grin wallet API Tutorial. Contribute to grincc/grin-wallet-api-tutorial development by creating an account on GitHub.

You will also find a folder named `scripts`. There are **+20 bash scripts** to query the API using cURL. Feel free of adding more content.

---

<div class="post-metadata">

**Author:** ![Trinitron](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/trinitron/32/4990_2.png) [@Trinitron](https://forum.grin.mw/u/Trinitron)\
**Post date:** [July 12, 2022, 3:53pm UTC](https://forum.grin.mw/t/communicating-with-grin-wallet-api-tutorial/9925/2 "2022-07-12T15:53:08Z")

</div>

> Also if you want to run your node in a separate server from the wallet which is recommended, please change `api_http_addr` to run on your server IP, example:  
> api\_http\_addr = “192.168.0.10:3413”  
> NOTE: Make sure you are using your own IP.

This isn’t necessary for most users. 0.0.0.0 will listen on all interfaces by default.

Maybe you’d prefer comments like this on github but I don’t really know how to use it if that’s supposed to be PR or Issue or what.

I appreciate the documenting of these tutorials, it was your previous comment on the forum that I used to get mine running as a service.

---

<div class="post-metadata">

**Author:** ![davidtavarez](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@davidtavarez](https://forum.grin.mw/u/davidtavarez)\
**Post date:** [July 12, 2022, 5:52pm UTC](https://forum.grin.mw/t/communicating-with-grin-wallet-api-tutorial/9925/3 "2022-07-12T17:52:05Z")

</div>

> [@Trinitron](#):
>
> This isn’t necessary for most users. 0.0.0.0 will listen on all interfaces by default.

Did you test it on `api_http_addr = “0.0.0.0:3413”`? Let me know if it works I will update it.

> [@Trinitron](#):
>
> I appreciate the documenting of these tutorials, it was your previous comment on the forum that I used to get mine running as a service.

Thank you.

---

<div class="post-metadata">

**Author:** ![Trinitron](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/trinitron/32/4990_2.png) [@Trinitron](https://forum.grin.mw/u/Trinitron)\
**Post date:** [July 12, 2022, 6:00pm UTC](https://forum.grin.mw/t/communicating-with-grin-wallet-api-tutorial/9925/4 "2022-07-12T18:00:25Z")

</div>

Yes I run mine that way and my Ironbelly can reach it.

---

<div class="post-metadata">

**Author:** ![davidtavarez](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@davidtavarez](https://forum.grin.mw/u/davidtavarez)\
**Post date:** [July 12, 2022, 6:21pm UTC](https://forum.grin.mw/t/communicating-with-grin-wallet-api-tutorial/9925/5 "2022-07-12T18:21:56Z")

</div>

I am aware that the document has many typos. If anyone wants to help and open a PR please do so.

---

<div class="post-metadata">

**Author:** ![satoshocrat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/satoshocrat/32/3985_2.png) [@satoshocrat](https://forum.grin.mw/u/satoshocrat)\
**Post date:** [July 12, 2022, 9:35pm UTC](https://forum.grin.mw/t/communicating-with-grin-wallet-api-tutorial/9925/6 "2022-07-12T21:35:31Z")

</div>

This is something I can work on. Will get it updated in the next few days

---

<div class="post-metadata">

**Author:** ![satoshocrat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/satoshocrat/32/3985_2.png) [@satoshocrat](https://forum.grin.mw/u/satoshocrat)\
**Post date:** [July 13, 2022, 6:46pm UTC](https://forum.grin.mw/t/communicating-with-grin-wallet-api-tutorial/9925/7 "2022-07-13T18:46:22Z")

</div>

Done!

I went through line-by-line and did my best to address any instances regarding:

-Grammar  
-Inconsistent capitalizations e.g. Slatepack  
-Spelling  
-Syntax

Not sure how to intitate the pull request for review, but the revised document can be found here:

> <https://github.com/jaw709/tutorial/blob/master/readme.md>

---

<div class="post-metadata">

**Author:** ![davidtavarez](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@davidtavarez](https://forum.grin.mw/u/davidtavarez)\
**Post date:** [July 13, 2022, 7:04pm UTC](https://forum.grin.mw/t/communicating-with-grin-wallet-api-tutorial/9925/8 "2022-07-13T19:04:45Z")

</div>

> [@satoshocrat](#):
>
> Not sure how to intitate the pull request for review, but the revised document can be found here:

I opened the PR for you. Thank you so much!

Merged 😃

---

<div class="post-metadata">

**Author:** ![davidtavarez](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@davidtavarez](https://forum.grin.mw/u/davidtavarez)\
**Post date:** [July 14, 2022, 11:16am UTC](https://forum.grin.mw/t/communicating-with-grin-wallet-api-tutorial/9925/9 "2022-07-14T11:16:36Z")

</div>

The tutorial can be found here:

> **[Tutorial](https://grincc.github.io/grin-wallet-api-tutorial/)**
>
> A basic introduction on how to properly communicate with the grin-wallet API

---

<div class="post-metadata">

**Author:** ![satoshocrat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/satoshocrat/32/3985_2.png) [@satoshocrat](https://forum.grin.mw/u/satoshocrat)\
**Post date:** [July 14, 2022, 2:47pm UTC](https://forum.grin.mw/t/communicating-with-grin-wallet-api-tutorial/9925/10 "2022-07-14T14:47:46Z")

</div>

Nice! Just two quick revisions under “Running grin as a service”

“NOTE: Be aware that you probably will need to properly configure your firewall” should be “NOTE: Be aware that you will probably need to properly configure your firewall.”

And

“You see will now the status:” should be “You will now see the status:”

---

<div class="post-metadata">

**Author:** ![davidtavarez](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@davidtavarez](https://forum.grin.mw/u/davidtavarez)\
**Post date:** [July 15, 2022, 8:24am UTC](https://forum.grin.mw/t/communicating-with-grin-wallet-api-tutorial/9925/11 "2022-07-15T08:24:46Z")

</div>

Fixed, sorry about that. Thank you.
