joaquinalcerro

joaquinalcerro

Integration with cryptocurrency platforms

Are there any libraries to integrate your Elixir/Phoenix applications to cryptocurrency platforms like Etherium, Cardano, etc?

How are you integrating your Elixir/Phoenix application to this platforms?

Thanks for your comments,

Best regards,

Most Liked

joaquinalcerro

joaquinalcerro

Thanks for your responses,

@CinderellaMan thanks for the trading bot video/series I will definitely have a blast with it.

And yes, you are right… I was asking for a library to interact with the Blockchain… I assume our application
should generate transactions and send it to a miner/validator who will do its magic against the rest of the Blockchain… please correct me if I am wrong.

I assume wallets come into play in some place but not sure where.

@AstonJ @CinderellaMan any additional information is very welcome.

Thanks.

CinderellaMan

CinderellaMan

Thanks @AstonJ :heart:, but I’m afraid that this is not what @joaquinalcerro is after🤔
As far as I understand his post correctly, he’s looking for a way to read data from blockchain. My work on the other hand is geared towards exchanges (which at the end of the day are just REST apis).

I don’t know much about inspecting the blockchain but it looks like there are already some packages to do that: GitHub - mana-ethereum/ethereumex: Elixir JSON-RPC client for the Ethereum blockchain

I hope that helps :slightly_smiling_face:

Wojciech

Wojciech

I think you are looking for this library:
https://hexdocs.pm/ethers/readme.html

You can use it to interact with EVM compatible blockchains such as ethereum or binance smart chain.

AstonJ

AstonJ

@CinderellaMan might know :003:

dominicletz

dominicletz

Creator of Elixir Desktop

Yeah, really heavily depends on what you want. There are IMHO basically two views:

  1. The external requestable via jsonrpc. E.g. from a full node as a service provider such as alchemy Ethereum API - Alchemy Documentation

I’ve not used any existing wrappers but the APIs are easy to use from Hackney and other HTTP libs. And there are libsecp256k1 libraries you can use for signing your transactions. We haven’t “libarized” our code but you can browse the repo of our full node to see how to sign and submit a transaction for example diode_server/transaction.ex at master · diodechain/diode_server · GitHub
Exthereum might have something similar as a library already.

  1. The internal view on the complete Blockchain state. That one is usually only available from within a full node implementation and you have to query it’s native data stores in it’s native language. I’m aware of three node implementations in our space:
  • Exthereum - in Elixir but seems dead. I’ve never tried it.
  • Aeternity - actually Erlang and quite different from Ethereum but seems to be maintained
  • Diodechain - our own, a Constantinople level Ethereum fork. You can’t mirror mainline Ethereum state with it because it’s made for our fork, but it has all the encoders/decoders and data structure modules needed to inspect Ethereum.

Hope this helps in some ways.
Cheers!

Where Next?

Popular in Questions Top

belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
Fl4m3Ph03n1x
Background Let’s assume I have a typical GenServer that receives messages as requests, does some operation in a DB and returns responses....
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

Other popular topics Top

chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30048 115
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 49522 488
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> someth...
New
Nvim
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

We're in Beta

About us Mission Statement