Skip to content

Commit 674907f

Browse files
committed
Add examples to payload yaml
1 parent 2f72b98 commit 674907f

File tree

1 file changed

+107
-0
lines changed

1 file changed

+107
-0
lines changed

src/engine/openrpc/methods/payload.yaml

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,55 @@
921921
message: Invalid params
922922
- code: -38005
923923
message: Unsupported fork
924+
examples:
925+
- name: engine_newPayloadV5 example
926+
params:
927+
- name: Execution payload
928+
value:
929+
parentHash: '0x3b8fb240d288781d4aac94d3fd16809ee413bc99294a085798a589dae51ddd4a'
930+
feeRecipient: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b'
931+
stateRoot: '0xca3149fa9e37db08d1cd49c9061db1002ef1cd58db2210f2115c8c989b2bdf45'
932+
receiptsRoot: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421'
933+
logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
934+
prevRandao: '0xc130d5e63c61c935f6089e61140ca9136172677cf6aa5800dcc1cf0a02152a14'
935+
blockNumber: '0x112720f'
936+
gasLimit: '0x1c9c380'
937+
gasUsed: '0xbad2e8'
938+
timestamp: '0x673b0a3b'
939+
extraData: 0x
940+
baseFeePerGas: '0x7'
941+
blockHash: '0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858'
942+
transactions:
943+
- '0x03f88f0780843b9aca008506fc23ac00830186a09400000000000000000000000000000000000001008080c001e1a0010657f37554c781402a22917dee2f75def7ab966d7b770905398eba3c44401401a0840650aa8f74d2b07f40067dc33b715078d73422f01da17abdbd11e02bbdfda9a04b2260f6022bf53eadb337b3e59514936f7317d872defb891a708ee279bdca90'
944+
- '0x03f88f0701843b9aca008506fc23ac00830186a09400000000000000000000000000000000000001008080c001e1a001521d528ad0c760354a4f0496776cf14a92fe1fb5d50e959dcea1a489c7c83101a0a86c1fd8c2e74820686937f5c1bfe836e2fb622ac9fcbebdc4ab4357f2dbbc61a05c3b2b44ff8252f78d70aeb33f8ba09beaeadad1b376a57d34fa720bbc4a18ee'
945+
- '0x03f88f0702843b9aca008506fc23ac00830186a09400000000000000000000000000000000000001008080c001e1a001453362c360fdd8832e3539d463e6d64b2ee320ac6a08885df6083644a063e701a037a728aec08aefffa702a2ca620db89caf3e46ab7f25f7646fc951510991badca065d846f046357af39bb739b161233fce73ddfe0bb87f2d28ef60dfe6dbb0128d'
946+
withdrawals:
947+
- index: '0xf0'
948+
validatorIndex: '0xf0'
949+
address: '0x00000000000000000000000000000000000010f0'
950+
amount: '0x1'
951+
- index: '0xf1'
952+
validatorIndex: '0xf1'
953+
address: '0x00000000000000000000000000000000000010f1'
954+
amount: '0x1'
955+
blobGasUsed: '0x20000'
956+
excessBlobGas: '0x0'
957+
blockAccessList: '0xf90244f90241f8f79400000000000000000000000000000000000001f8e8f843a00000000000000000000000000000000000000000000000000000000000000000f838c22080a00000000000000000000000000000000000000000000000000000000000000000c22180a00000000000000000000000000000000000000000000000000000000000000001f843a00000000000000000000000000000000000000000000000000000000000000001f838c22080a00000000000000000000000000000000000000000000000000000000000000100c22180a00000000000000000000000000000000000000000000000000000000000000200c780c22180c680c221890056bc75e2d63100000c080c22180f90145f90142f8f794a94f5374fce5edbc8e2a8697c15331677e6ebf0bf8e8f843a00000000000000000000000000000000000000000000000000000000000000000f838c22080a00000000000000000000000000000000000000000000000000000000000000000c22180a00000000000000000000000000000000000000000000000000000000000000100f843a00000000000000000000000000000000000000000000000000000000000000001f838c22080a00000000000000000000000000000000000000000000000000000000000000200c22180a00000000000000000000000000000000000000000000000000000000000000300c780c22180c680c2218901152d02c7e14af680c080c22180'
958+
- name: Expected blob versioned hashes
959+
value:
960+
- '0x000657f37554c781402a22917dee2f75def7ab966d7b770905398eba3c444014'
961+
- name: Parent beacon block root
962+
value: '0x169630f535b4a41330164c6e5c92b1224c0c407f582d407d0ac3d206cd32fd52'
963+
- name: Execution requests
964+
value:
965+
- '0x96a96086cff07df17668f35f7418ef8798079167e3f4f9b72ecde17b28226137cf454ab1dd20ef5d924786ab3483c2f9003f5102dabe0a27b1746098d1dc17a5d3fbd478759fea9287e4e419b3c3cef20100000000000000b1acdb2c4d3df3f1b8d3bfd33421660df358d84d78d16c4603551935f4b67643373e7eb63dcb16ec359be0ec41fee33b03a16e80745f2374ff1d3c352508ac5d857c6476d3c3bcf7e6ca37427c9209f17be3af5264c0e2132b3dd1156c28b4e9f000000000000000a5c85a60ba2905c215f6a12872e62b1ee037051364244043a5f639aa81b04a204c55e7cc851f29c7c183be253ea1510b001db70c485b6264692f26b8aeaab5b0c384180df8e2184a21a808a3ec8e86ca01000000000000009561731785b48cf1886412234531e4940064584463e96ac63a1a154320227e333fb51addc4a89b7e0d3f862d7c1fd4ea03bd8eb3d8806f1e7daf591cbbbb92b0beb74d13c01617f22c5026b4f9f9f294a8a7c32db895de3b01bee0132c9209e1f100000000000000'
966+
- '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b85103a5617937691dfeeb89b86a80d5dc9e3c9d3a1a0e7ce311e26e0bb732eabaa47ffa288f0d54de28209a62a7d29d0000000000000000000000000000000000000000000000000000010f698daeed734da114470da559bd4b4c7259e1f7952555241dcbc90cf194a2ef676fc6005f3672fada2a3645edb297a75530100000000000000'
967+
result:
968+
name: Payload status
969+
value:
970+
status: VALID
971+
latestValidHash: '0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858'
972+
validationError: null
924973
- name: engine_getPayloadV6
925974
summary: Obtains execution payload from payload build process
926975
externalDocs:
@@ -959,3 +1008,61 @@
9591008
message: Unknown payload
9601009
- code: -38005
9611010
message: Unsupported fork
1011+
examples:
1012+
- name: engine_getPayloadV6 example
1013+
params:
1014+
- name: Payload id
1015+
value: '0x0000000038fa5dd'
1016+
result:
1017+
name: Response object
1018+
value:
1019+
executionPayload:
1020+
parentHash: '0x3b8fb240d288781d4aac94d3fd16809ee413bc99294a085798a589dae51ddd4a'
1021+
feeRecipient: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b'
1022+
stateRoot: '0xca3149fa9e37db08d1cd49c9061db1002ef1cd58db2210f2115c8c989b2bdf45'
1023+
receiptsRoot: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421'
1024+
logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
1025+
prevRandao: '0xc130d5e63c61c935f6089e61140ca9136172677cf6aa5800dcc1cf0a02152a14'
1026+
blockNumber: '0x112720f'
1027+
gasLimit: '0x1c9c380'
1028+
gasUsed: '0xbad2e8'
1029+
timestamp: '0x673b0a3b'
1030+
extraData: 0x
1031+
baseFeePerGas: '0x7'
1032+
blockHash: '0x1256f99fb899c2de0aeac0c5aa6aad69de188b6a0f4ac29f2d075a53aa3ed0e4'
1033+
transactions:
1034+
- '0x03f88f0780843b9aca008506fc23ac00830186a09400000000000000000000000000000000000001008080c001e1a0010657f37554c781402a22917dee2f75def7ab966d7b770905398eba3c44401401a0840650aa8f74d2b07f40067dc33b715078d73422f01da17abdbd11e02bbdfda9a04b2260f6022bf53eadb337b3e59514936f7317d872defb891a708ee279bdca90'
1035+
- '0x03f88f0701843b9aca008506fc23ac00830186a09400000000000000000000000000000000000001008080c001e1a001521d528ad0c760354a4f0496776cf14a92fe1fb5d50e959dcea1a489c7c83101a0a86c1fd8c2e74820686937f5c1bfe836e2fb622ac9fcbebdc4ab4357f2dbbc61a05c3b2b44ff8252f78d70aeb33f8ba09beaeadad1b376a57d34fa720bbc4a18ee'
1036+
- '0x03f88f0702843b9aca008506fc23ac00830186a09400000000000000000000000000000000000001008080c001e1a001453362c360fdd8832e3539d463e6d64b2ee320ac6a08885df6083644a063e701a037a728aec08aefffa702a2ca620db89caf3e46ab7f25f7646fc951510991badca065d846f046357af39bb739b161233fce73ddfe0bb87f2d28ef60dfe6dbb0128d'
1037+
withdrawals:
1038+
- index: '0xf0'
1039+
validatorIndex: '0xf0'
1040+
address: '0x00000000000000000000000000000000000010f0'
1041+
amount: '0x1'
1042+
- index: '0xf1'
1043+
validatorIndex: '0xf1'
1044+
address: '0x00000000000000000000000000000000000010f1'
1045+
amount: '0x1'
1046+
- index: '0xf2'
1047+
validatorIndex: '0xf2'
1048+
address: '0x00000000000000000000000000000000000010f2'
1049+
amount: '0x1'
1050+
- index: '0xf3'
1051+
validatorIndex: '0xf3'
1052+
address: '0x00000000000000000000000000000000000010f3'
1053+
amount: '0x1'
1054+
blobGasUsed: '0x60000'
1055+
excessBlobGas: '0x0'
1056+
blockAccessList: '0xc0'
1057+
blockValue: '0x10a741a46278014d'
1058+
blobsBundle:
1059+
commitments:
1060+
- '0x85103a5617937691dfeeb89b86a80d5dc9e3c9d3a1a0e7ce311e26e0bb732eabaa47ffa288f0d54de28209a62a7d29d0'
1061+
proofs:
1062+
- '0x94f2118951a591531b0bb7b4ed5bd96ae41069e709afb8d3e64d27f2e2114e9b23c678ca876a50e2f77f53bb0ca518ef'
1063+
blobs:
1064+
- '0x00100008000000000000000000000000000000000000000000000000000000000000200000000000000000000000002000800000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000100000000000000000000000000010000000000000000000000000000000000000000000000000000000020000000000100000000000000000000000000000000000000000000000000001000800002000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000008000000000000000000000000001000480000000000000000000000000000000000000800000000000000000000000000000000002000000000000000000000000000000000000000000000100000100100000000800000000000000000000000000000000400000000000000000000000001000000000000000020000000000040000000000000000000000000000001000000000000000000000000040004000000000100000000000000000000000000000000000000020000010000000000020000000000000000000000020000080010000000000200001000000000000000000000000000000000000000000000000010000000000000000100000200400000000000000000000000000000000000000000000000000000000000010000000020000000000000000200000000000000800000000000000000000100000000040000000000000000000000000000000000000000000000000000200040000000001000400000000000080000000000000000000000000001000000001000002000000000400000000000000000000000000000020000008000000000020000000000000000000000000000000000000000000000000000000080000100000000400100000000008000000000000000000001000100000080000020000000000000008000080004000000000010000000000000000000000010000000800000000000000002000000000001000000000000000000000080000000000000800100800000000020002000000000080008000000010000000000040000002000000000000000000000000000000000400000000000008000000000000800000000000000000000000040000000000000000000000000000040000002000000000010000000000000000000200001000000000000000000000000080000000000000000400000001000000000000000000200000000010000000000000004000000000000020000200004100000010000000000000000000000000000100020000000000000000080000001000000080010000000010001000008000000000000001000000000000000000000000000000000000000000004000000000002000000000008000100000400000400000000000000000000010000000000010800000000000040000000002000000000000800100400000000000000400000001001000200000000000000000000000000000000000020000004000000008000000080000001000000000000020000000000000000000000000001000200400000004000002100000000040000800010000020000000000000000000200000002000000080000000000100000000800000000000002000000100000000020000008000000000020000000000000000100080000200002000000010000000000000008000000000000400000000000000000000200000000000000000002000004000000000000004040000000000000000000000100000000000020000000000000040000000010200008004000400000010000000000000002080000000000004400001000040002000000200000000000000000008000000000010200000000000000000000000000000000100100020000000040000000000000000002000800020000000020000000020001200100000000000000000000000000000000000002000010400000000000010010000000000000000004040001000001000000000000000000000000400000000000004000000000100000000100001000000000000000000040000000000800000000000020000000000002040000000000000000002010000020040040800000000001000000100020000040000000000000000000000800000800100000000200000000000000000000000000000001000000000800020080000000000000000002000000000010000000020000000000000000000000000002000000000000000002000000000000000000000000000000001000008100000000000000000000000002000040100200000010000000000000000100000000000000000000000000010000020000000400000000000000000000000000000008000001000000000040000000002000000000080000000002800000000000020000000000000000000001000000000000000000400000000000002000000000100000000000000002000001004000020400000000000000000004000000040000800020020000000000000000000000002000000400008000000000008001400000010000000010000002000020000040001000000000000000000004000200000000000000002000000000000000000000000000000000020000000040000000000200001000040000000004000000100020000000000000010000002000000000000002100000000000000000000010002000200000002000000000004000001000000000200000000000000000000004000020001020000040010000002001080040002001080400010000800004000000000020000008100002200000000000010020001004000000000002000080000000020000400008000000000000000000020000000000000000000000000002000000000000000001000000040004000000000000008200002002100000000000000000800000000400000000020002002008000000000004000000000000001002000000000002000000000000000800200000000000000001000000080000000000000040020000000040001000000000020400001000001200200800000002001000000020000000000000008000002000020200010000000001000000020000000000000020000100020100040012000000000000001000020001000020000000400002000000080000000000000000000000000000010001000000800000040000000000001010000000000000000000400000200000010000000020001000000002000000400000000000000000000000000002000000080000100000000210000012000020000040400000000000000002008004000000040000000100000000000002000020004000000000000100008000000004010000004000000004000400000000000000100001000000000000040000000001200000000002000000002000000004000000000000100000020000001080001000000002080000000000002000000000000080000000000000000101000004001800000020000000000000000000400000000004000020000000000000020000000080000000000401000000000000000000000004000400000001000000000000008000000001020020000004000000000000001000000000000000002000000800000000000080020000000800000010000000020000100000004100000000010000100000000002000000000000100000000080800000000000001000100000000080000000000000000020000000008000001000000000000000000001000100000000000000000002000002080000000000200000000004000000200000004002000000000000020000000000000000000000000080000002000200004008000400010000000000020010000000000000000000000000000000000000802001010000800000080000000100000000000002008002004000000000'
1065+
shouldOverrideBuilder: false
1066+
executionRequests:
1067+
- '0x96a96086cff07df17668f35f7418ef8798079167e3f4f9b72ecde17b28226137cf454ab1dd20ef5d924786ab3483c2f9003f5102dabe0a27b1746098d1dc17a5d3fbd478759fea9287e4e419b3c3cef20100000000000000b1acdb2c4d3df3f1b8d3bfd33421660df358d84d78d16c4603551935f4b67643373e7eb63dcb16ec359be0ec41fee33b03a16e80745f2374ff1d3c352508ac5d857c6476d3c3bcf7e6ca37427c9209f17be3af5264c0e2132b3dd1156c28b4e9f000000000000000a5c85a60ba2905c215f6a12872e62b1ee037051364244043a5f639aa81b04a204c55e7cc851f29c7c183be253ea1510b001db70c485b6264692f26b8aeaab5b0c384180df8e2184a21a808a3ec8e86ca01000000000000009561731785b48cf1886412234531e4940064584463e96ac63a1a154320227e333fb51addc4a89b7e0d3f862d7c1fd4ea03bd8eb3d8806f1e7daf591cbbbb92b0beb74d13c01617f22c5026b4f9f9f294a8a7c32db895de3b01bee0132c9209e1f100000000000000'
1068+
- '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b85103a5617937691dfeeb89b86a80d5dc9e3c9d3a1a0e7ce311e26e0bb732eabaa47ffa288f0d54de28209a62a7d29d0000000000000000000000000000000000000000000000000000010f698daeed734da114470da559bd4b4c7259e1f7952555241dcbc90cf194a2ef676fc6005f3672fada2a3645edb297a75530100000000000000'

0 commit comments

Comments
 (0)