joaquinalcerro

joaquinalcerro

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,

Showing Posts 1 to 8

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
water
I’m aware of 2 such projects, are there others? git: GitHub - team-alembic/realworld: A fullstack Phoenix LiveView application with back...
New
itzmidinesh
Hi all, I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison....
New
peck
Hi everyone. My team and I have been working on a fairly modest app based around video streaming and chat, but we’ve landed a customer t...
New
leoschweizer
Hi, we run different LLM models across a cluster, with each node loading a configurable subset. Model-specific queues let nodes consume ...
New
csmr
Hi all, I’m new here and would like to hear peoples views on my Elixir/Phoenix based game-engine! :smiley: Mutonex gamedesign was finish...
New
Stef-Verniers
Hello I’ve been coding in Elixir for almost two years now because of my current job where we implemented Elixir in our application. But ...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
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
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews