How to serialize a transaction from mempool and sign it into a bundle
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 15/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript, typescript
- Domain
- backend-api-design, blockchain
Research direction
Start with the ethers.utils.serializeTransaction call and the signBundle usage shown in the issue, then compare them with the repository's bundle examples and serialization requirements. Done means there is a documented, reproducible answer for handling the supplied mempool transaction, including the required fields and signing constraints.
Written by the indexing model from the issue text.
Description
i just test signBundle via flashbots, i feel confused. there is the code
// the transaction is get from geth mempool
const transaction = {
"blockHash": null,
"blockNumber": null,
"from": "0x0160ea15d2125dd9c211f23169c4e4f4fb7957a8",
"gas": "0x4c4b40",
"gasPrice": "0x1ca10",
"hash": "0x696968e15c7174609adca25769c4e7c0e2c18d1eedbca8e4b71e3a0f59c52797",
"input": "0xc652885f0000000000000000000000009bd2aa38429c356be17c8c7bb07dab299200eeb84178ca8820c1a8dae966f1fdd132a2a874394233000000000000000000000054000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000010000000000000000000000004178ca8820c1a8dae966f1fdd132a2a8743942330000000000000000000000000000000000000000000000000000000000000320",
"nonce": "0x163",
"to": "0x7ede79ed0d3acf3d4843c919975fb7bd97ecccba",
"transactionIndex": null,
"value": "0x0",
"type": "0x0",
"chainId": "0x5",
"v": "0x2e",
"r": "0xf4556687cb3df0f345ab903a2c9c46bb1a9fb413a0f498e8dba3b74253caa313",
"s": "0x281adb2e3f2b73c685aaaec10120b9ade46d6c2cd069d1106ae5093833d0bbf1"
};
const signedBundle = await flashbotsProvider.signBundle([
{
signer: transactionFromSigner.connect(provider),
transaction: {
...baseTransaction,
gasPrice: '',
data: '0x'
},
},
{
// there, i don't know how to serialize transaction from mempool
signedTransaction: ethers.utils.serializeTransaction(transaction)
}
]);
- Dominant language
- TypeScript
- Stars
- 567
- Forks
- 211
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flashbots/ethers-provider-flashbots-bundle
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
flashbots/ethers-provider-flashbots-bundle#131 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
flashbots/ethers-provider-flashbots-bundle#128 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
flashbots/ethers-provider-flashbots-bundle#127 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
flashbots/ethers-provider-flashbots-bundle#124 · 1 comment ·
All issues in flashbots/ethers-provider-flashbots-bundle
Similar issues
-
bot:ai-assisted status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
midnightntwrk/midnight-js#1424 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mksglu/context-mode#1268 ·
Maintainers usually reply within 5 days
-
[bug] Setup fails with "Cannot find matching keyid" when an older Node's corepack is on PATHPossibly taken @EyalPoly claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
MystenLabs/MemWal#1124 · 2 comments ·
Maintainers usually reply within 1 day
-
Edit:Opencheck:failed streams:edit
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
iptv-org/iptv#54352 · 1 comment ·
Maintainers usually reply within 1 day