stellar / soroban-rpc

RPC server for Soroban contracts.
18 stars 19 forks source link

public go package for soroban rpc model #37

Open sreuland opened 1 year ago

sreuland commented 1 year ago

What problem does your feature solve?

typeseafe programmatic reference to the rpc interface

What would you like to see?

public package like github.com/stellar/soroban-tools/rpc for the structs/enums for rpc request/response models.

What alternatives are there?

clients copy the internal package code in rpc to paste the same models into their project.

sreuland commented 2 months ago

the scope of this may need to be expanded to provide a go sdk package that wraps the RPC entity model and also provides wrappers/abstraction for invoking the json-rpc endpoints on the rpc server given a url.

leighmcculloch commented 2 months ago

@2opremio pointed out that there is an OpenRPC specification for Stellar RPC published here:

It may be worth experimenting with generating clients and models from that specification using: