joaquinalcerro

joaquinalcerro OP

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,

First 8 of 8 Posts Switch mode

AstonJ

AstonJ

@CinderellaMan might know :003:

CinderellaMan

CinderellaMan

Thanks @AstonJ :heart:, but I’m afraid that this is not what @joaquinalcerro is after​:thinking:
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 · GitHub

I hope that helps :slightly_smiling_face:

AstonJ

AstonJ

Ah sorry Kamil - I saw cryptocurrency and immediately thought of you :see_no_evil:

Thanks for the link - I’m sure it will be of help to Joaquin :blush:

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 https://docs.alchemy.com/alchemy/apis/ethereum

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/lib/chain/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!

joaquinalcerro

joaquinalcerro OP

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.

NobSob

NobSob

Did you manage to find a solution?

joaquinalcerro

joaquinalcerro OP

Nop not really.

Wojciech

Wojciech

I think you are looking for this library:

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

— All posts loaded —

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
roeland
Kia ora, We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
rahultumpala
Hello, I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New

We're in Beta

About us Mission Statement