flashbots / suave-docs

https://suave.flashbots.net
Creative Commons Attribution 4.0 International
6 stars 6 forks source link

update curl example #75

Closed ababino closed 9 months ago

ababino commented 9 months ago

The transaction hash in the rpc call doesn't exist. Should we update it to something that do exists?

Before the change, executing the example yied:

curl -X POST \
  -H "Content-Type: application/json" \
  --data '{
    "jsonrpc": "2.0",
    "method": "eth_getTransactionByHash",
    "params": [
      "0x5aa009b8a3fdbb5b58943085692600fca19f0d4fe81dc7dc24bec350b9d5be1f"
    ],
    "id": 1
  }' \
  https://rpc.rigil.suave.flashbots.net

Response

{"jsonrpc":"2.0","result":null,"id":1}

After the change:

curl -X POST \
  -H "Content-Type: application/json" \
  --data '{
    "jsonrpc": "2.0",
    "method": "eth_getTransactionByHash",
    "params": [
      "0x294b510e4fd257dec3d27b051f157489446c38828ff5f6b8d8c194797c6ddaab"
    ],
    "id": 1
  }' \
  https://rpc.rigil.suave.flashbots.net

Response

{
  "jsonrpc": "2.0",
  "result": {
    "blockHash": "0x165444c40f3f963c91c0b8f30d40d2946c4264cb889e8254cf6668319d662fa9",
    "blockNumber": "0xb0d61",
    "chainId": "0x1008c45",
    "confidentialComputeResult": "0xee2cc364000000000000000000000000000000000000000000000000000000000000006039d118e4d92d41988043f41a0ae2412d5891812600c63b0dfba4cd7954e94b796e22ce51ae18ed57501f9df3a9f9cd6b1001239e5ff9033b051c2d79fda8decf0000000000000000000000000000000000000000000000000000000000000077000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000009bb9328f5d2b053258542785dfdfa722d6476400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c536f20457874726120e29ca80000000000000000000000000000000000000000",
    "from": "0xdacc37d00411381083d36864b9bfb06bc31a7aec",
    "gas": "0x989680",
    "gasPrice": "0x3b9aca00",
    "hash": "0x294b510e4fd257dec3d27b051f157489446c38828ff5f6b8d8c194797c6ddaab",
    "input": "0xee2cc364000000000000000000000000000000000000000000000000000000000000006039d118e4d92d41988043f41a0ae2412d5891812600c63b0dfba4cd7954e94b796e22ce51ae18ed57501f9df3a9f9cd6b1001239e5ff9033b051c2d79fda8decf0000000000000000000000000000000000000000000000000000000000000077000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000009bb9328f5d2b053258542785dfdfa722d6476400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c536f20457874726120e29ca80000000000000000000000000000000000000000",
    "nonce": "0x5",
    "r": "0xc9d97182f9cb70986e4096be9fb299a120f714aaf15897e1cd5c08a7281ac86f",
    "requestRecord": {
      ...
    },
    "s": "0x765917eb8554a00d43162f9b9fff8646e8a7ce1756855d84f7627ec9571689d1",
    "to": "0xa60f1b5cb70c0523a086bbcbe132c8679085ea0e",
    "transactionIndex": "0x0",
    "type": "0x50",
    "v": "0x1",
    "value": "0x0"
  },
  "id": 1
}
vercel[bot] commented 9 months ago

@ababino is attempting to deploy a commit to the Flashbots Team on Vercel.

To accomplish this, @ababino needs to request access to the Team.

Afterwards, an owner of the Team is required to accept their membership request.

If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account.