builder icon indicating copy to clipboard operation
builder copied to clipboard

What should I do for block builder to send a block to relay/relays?

Open yanikitat opened this issue 1 year ago • 11 comments

Hello guys! I'm investigating your projects a couple days and I have some problems/questions.

  1. Why when I call eth_sendBundle rpc call of my flashbots block builder I'm getting empty response? Or, if to be more precise, I'm getting an empty BundleHash. This is how response looks like: {BundleHash:} But! When I send exactly the same request to the public https://boost-relay-goerli.flashbots.net I'm getting the BundleHash
  2. I have some trouble with documentation of builder in general. I can't find the list of the supported rpc call (I have found this, but i'm not sure that this is about block builder).
  3. And the main point that I don't understand -- what should I do for block builder to send a block to relay/relays? Maybe even empty block or block with one tx. Now I just want to test it, make sure that my block builder is working and look how it works.

This is how I run my block builder: ./build/bin/geth --goerli --builder --builder.remote_relay_endpoint https://boost-relay-goerli.flashbots.net --log.debug I'm also add BUILDER_TX_SIGNING_KEY env var

I will glad if somebody will be able to help me and explain how it works:) Also if you need more info please let me know

yanikitat avatar Jun 05 '23 17:06 yanikitat

Okay, I have ran prysm consensus client, but I can't understand does block builder gets trigger from prysm for block building or not. Can block builder build block while syncing?

yanikitat avatar Jun 06 '23 12:06 yanikitat

any updates?

zh0glikk avatar Jun 21 '23 17:06 zh0glikk

No, but I have figured out it by myself. I can write my solution and close this issue if necessary

yanikitat avatar Jun 21 '23 17:06 yanikitat

Yes Please

aaroua5 avatar Jun 26 '23 12:06 aaroua5

@yanikitat can you explain please ?

aaroua5 avatar Jul 13 '23 16:07 aaroua5

@yanikitat can you provide details here please?

manishparanjape avatar Aug 17 '23 18:08 manishparanjape

https://github.com/flashbots/builder/blob/03ee71cf0a344397204f65ff6d3a917ee8e06724/internal/ethapi/api.go#L2142 should be something more like:

func (s *PrivateTxBundleAPI) SendBundle(ctx context.Context, args SendBundleArgs) (map[string]interface{}, error)

And the body should be:

map[string]interface{}{"bundleHash": bundleHash}

bundleHash needs to be return from all the subcalls made by this top level method.

ezynda3 avatar Nov 09 '23 14:11 ezynda3

I've modified this on my own personal instance and can make a PR if that's something people want.

ezynda3 avatar Nov 09 '23 14:11 ezynda3

@yanikitat @ezynda3 I am actually struggling with the same thing, I am discussing my issue on the flashbots discord without yet success: https://discord.com/channels/755466764501909692/1172625715632549980

Basically, I eth_sendBundle a transaction through the geth console, this bundle gets recognized, the payload gets updated sucessfully but is never sent to the Relay. Operating on my private devnet.

I would immensely appreciate ANY help on this matter

dewindtk avatar Nov 11 '23 03:11 dewindtk

@ezynda3 Can you share your PR please?

manishparanjape avatar Nov 18 '23 01:11 manishparanjape

hello, I'm having the same problem, I can't get the BundleHash, what should I if solve it?

forencen avatar Dec 12 '23 14:12 forencen