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

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
ryanwinchester
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted” Version...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
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
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
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

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews