8000 GitHub - lyh169/go-bundler-client: ERC-4337 bundler client for Golang
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lyh169/go-bundler-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-bundler-client

Golang client for ERC-4337-spec bundlers. Uses types from Stackup's bundler.

Example

package main

import (
	"context"
	"fmt"
	"log"

	"github.com/mdehoog/go-bundler-client"
)

func main() {
	ctx := context.Background()
	c, err := bundler_client.DialContext(ctx, "http://localhost:4337")
	if err != nil {
		log.Fatalf("Failed to connect to bundler: %v", err)
	}

	chainId, err := c.ChainId(ctx)
	if err != nil {
		log.Fatalf("Failed to retrieve chainId from bundler: %v", err)
	}
	fmt.Printf("ChainId: %d\n", chainId.Uint64())
}

About

ERC-4337 bundler client for Golang

Resources

License

3DB0

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%
0