Skip to main content

入门指南

接口文档提供了Native ETH在Eigenlayer上Restake相关的API,目前针对Native ETH的再质押提供了查询和质押服务,方便您在系统中集成我们的API来完成Eigenlayer上相关的再质押操作。

EigenLayer API提供了以下接口:

  1. 创建 EigenPod 地址:构建一个序列化交易来生成一个 EigenPod 地址,你的验证者可以将其用作提款地址。
  2. 查询 EigenPod 地址:方便您查询生成的 EigenPod 地址或查询是否已创建 EigenPod 地址
  3. Restake:validator激活后,调用restake接口,执行Eigenlayer上的restake操作。
  4. RestakedBalance:查询restaked的数量。
  5. IsDelegate:查询是否还需要delegate,如果返回true,则restake后不需要再执行delegate。
  6. Delegate:将重新质押金额委托给节点运营商。
  7. Undelegate:取消委托交易,执行Undelegate操作。
  8. StartCheckpoint:启动检查点,开始证明 Pod 的活动验证器集的过程。
  9. VerifyCheckpointProofs:用于推进(或完成)pod的当前检查点。
  10. QueueWithdrawals:调用者将其存款份额排队以跨策略提取。
  11. QueuedWithdrawalsInfo:查询queuedWithdrawals相关数据。
  12. CompleteQueuedWithdrawals:调用此方法完成接收代币。
  13. AvsRewards(Get):获取AVS可以claim的奖励数据。
  14. AvsRewards(Post):获取AVS执行claim的交易数据。

步骤

1. 创建 EigenPod 地址

示例请求

curl --request POST \
--url http://api-test.ssv.ebunker.io/api/v1/eth/restake/eigenlayer/podAddress \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \

示例响应

{
"code": 200,
"message": "Success",
"result": {
"to": "0x30770d7E3e71112d7A6b7259542D1f680a70e315",
"gasLimit": "3511410",
"data": "0x84d81062",
"value": "0",
"chainId": 17000,
"type": 2,
"maxFeePerGas": "1000034",
"maxPriorityFeePerGas": "1000000",
"serializeTx": "0x02ec82426880830f4240830f4262833594729430770d7e3e71112d7a6b7259542d1f680a70e315808484d81062c0"
}
}
  • to — 此交易的接收地址。
  • gasLimit — 该区块的最大gas限制。
  • data — 交易数据。
  • value — 此交易发送的金额(单位:Wei)。
  • chainId — 按照EIP-155的规定,此交易在其上获得授权的链 ID 。
  • type —该交易信封的类型为EIP-2718 。
  • maxFeePerGas— 此交易将支付的EIP-1559区块基础费用和此交易的优先费用的每单位 gas 最高价格(单位:Wei)。
  • maxPriorityFeePerGas — 每单位 gas 的价格(单位为 Wei),该价格将添加到EIP-1559区块的基本费用中。这笔额外费用用于激励矿工优先处理此交易。
  • serializeTx — 序列化未签名交易。

2.获取Eigenpod地址

如果Eigenpod地址已创建,会返回podAddress,如果没有创建Eigenpod,会返回"code": 111130

示例请求

curl --request GET \
--url http://api-test.ssv.ebunker.io/api/v1/eth/restake/eigenlayer/podAddress?staker=0x9E8f8190fc5242AA48DB9eA363edE0f5FEd8a15D \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \

示例响应

{
"code": 200,
"message": "Success",
"result": {
"podAddress": "0x36B9F6A2E39082B3986B293cce2488D39a1261e0"
}
}
  • podAddress— staker的Pod Address。

3. Restake

根据每个经过验证的验证者的有效余额总和向 Pod 所有者授予股份,此方法要求验证者已经处于激活状态,或正在信标链上激活,验证器激活可能需要 16 到 24 小时,在restake进行之前,请等待验证者处于活动 active_ongoing 状态并开始执行验证者职责。查询Validator状态可以使用Validator—status来查询

示例请求

curl --request POST \
--url http://api-test.ssv.ebunker.io/api/v1/eth/restake/eigenlayer/restake \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \
--data '
{
"staker": "0x27AABeE07E0dbC8b0de20f42b1a1980871314Ef5",
"pubkeys": "0x822e4424d2b49dc85f4ac7a5c76866bcdcc8657a9d20be6450df8f47cf21880b4884308afeb70893360806083e782366,0x8612626f9b52a0c21da1b15d9edabfab8731393a66ee3517be8abe3d8586ac7cbf592a522a371535e6fbe3e51e179b55"
}
'
  • staker — EigenPod 地址的所有者。
  • pubkeys — 验证者的pubkey,多个验证者用逗号分割。

示例响应

{
"code": 200,
"message": "Success",
"result": {
"to": "0x30770d7E3e71112d7A6b7259542D1f680a70e315",
"gasLimit": "3511410",
"data": "0x3f65cf190000000000000000000000000000000000000000000000000000000067b0a554...",
"value": "0",
"chainId": 17000,
"type": 2,
"maxFeePerGas": "1000034",
"maxPriorityFeePerGas": "1000000",
"serializeTx": "0x02ec82426880830f4240830f4262833594729430770d7e3e71112d7a6b7259542d1f680a70e315808484d81062c0"
}
}
  • to — 此交易的接收地址。
  • gasLimit — 该区块的最大gas限制。
  • data — 交易数据。
  • value — 此交易发送的金额(单位:Wei)。
  • chainId — 按照EIP-155的规定,此交易在其上获得授权的链 ID 。
  • type —该交易信封的类型为EIP-2718 。
  • maxFeePerGas— 此交易将支付的EIP-1559区块基础费用和此交易的优先费用的每单位 gas 最高价格(单位:Wei)。
  • maxPriorityFeePerGas — 每单位 gas 的价格(单位为 Wei),该价格将添加到EIP-1559区块的基本费用中。这笔额外费用用于激励矿工优先处理此交易。
  • serializeTx — 序列化未签名交易。

4.查询restaked的数量

当您想获取挡墙在Restake的ETH数量时您可以调用此API查询已经Restake的ETH数量

示例请求

curl --request GET \
--url http://api-test.ssv.ebunker.io/api/v1/eth/restake/eigenlayer/restakedBalance?staker=0x9E8f8190fc5242AA48DB9eA363edE0f5FEd8a15D \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \

示例响应

{
"code": 200,
"message": "Success",
"result": {
"restakedBalance": "64007367213000000000"
}
}
  • restakedBalance—已经restake的数量。

5. IsDelegate

查询Staker是否已delegate给节点运营商,如果staker已delegate到节点运营商,则restake后无需要再执行delegate,如果未delegate,需要delegate来赚取AVS奖励

示例请求

curl --request GET \
--url http://api-test.ssv.ebunker.io/api/v1/eth/restake/eigenlayer/isDelegate?staker=0x9E8f8190fc5242AA48DB9eA363edE0f5FEd8a15D \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \

示例响应

{
"code": 200,
"message": "Success",
"result": {
"isDelegated": true
}
}
  • isDelegated— staker是否已delegate到节点运营商。

6. Delegate

允许质押者将其资产委托给运营商。委托是全有或全无的:当质押者委托给运营商时,他们会委托其所有资产。质押者一次只能委托给一位运营商。

示例请求

curl --request POST \
--url http://api-test.ssv.ebunker.io/api/v1/eth/restake/eigenlayer/delegate \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \
--data '
{
"operator": "0x3e31908e30b3051dfe056b1d0902b164d78cd8b8"
}
'

示例响应

{
"code": 200,
"message": "successed",
"result": {
"to": "0xA44151489861Fe9e3055d95adC98FbD462B948e7",
"gasLimit": "1244000",
"data": "0xeea9064b0000000000000000000000003e31908e30b3051dfe056b1d0902b164d78cd8b80...",
"value": "0",
"chainId": 17000,
"type": 2,
"maxFeePerGas": "4158022",
"maxPriorityFeePerGas": "4157996",
"serializeTx": "0x02f8ed82426880833f722c833f72468312fb6094a44151489861fe9e3055d95adc98f..."
}
}
  • to — 此交易的接收地址。
  • gasLimit — 该区块的最大gas限制。
  • data — 交易数据。
  • value — 此交易发送的金额(单位:Wei)。
  • chainId — 按照EIP-155的规定,此交易在其上获得授权的链 ID 。
  • type —该交易信封的类型为EIP-2718 。
  • maxFeePerGas — 此交易将支付的EIP-1559区块基础费用和此交易的优先费用的每单位 gas 最高价格(单位:Wei)。
  • maxPriorityFeePerGas — 每单位 gas 的价格(单位为 Wei),该价格将添加到EIP-1559区块的基本费用中。这笔额外费用用于激励矿工优先处理此交易。
  • serializeTx — 序列化未签名交易。

7. Undelegate

取消委托会立即将质押者的委托股份设置为 0,减少前一位操作员的委托份额,并将质押者存入的所有资产的提款排队。出于用户体验的原因,质押者存入资产的每个策略都会有一个提款排队。排队提款模仿queueWithdrawals方法的行为;主网有7天的排队等待期,等待期结束后可以再次delegated到新的operator,当再次delegate时还需要执行 completeQueuedWithdrawals将资金返回到Eigenpod的restake balance

示例请求

curl --request POST \
--url http://api-test.ssv.ebunker.io/api/v1/eth/restake/eigenlayer/undelegate \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \
--data '
{
"staker": "0x27AABeE07E0dbC8b0de20f42b1a1980871314Ef5"
}
'
  • staker — EigenPod 地址的所有者。

示例响应

{
"code": 200,
"message": "successed",
"result": {
"to": "0xA44151489861Fe9e3055d95adC98FbD462B948e7",
"gasLimit": "4144060",
"data": "0xda8be8640000000000000000000000000ec6f099d311b3a46acb89fafef99c1b42b5d635",
"value": "0",
"chainId": 17000,
"type": 2,
"maxFeePerGas": "4158024",
"maxPriorityFeePerGas": "4157996",
"serializeTx": "0x02f84c82426880833f722c833f7248833f3bbc94a44151489861fe9e3055d95adc98fbd462b948e780a4da8be8640000000000000000000000000ec6f099d311b3a46acb89fafef99c1b42b5d635c0"
}
}
  • to — 此交易的接收地址。
  • gasLimit — 该区块的最大gas限制。
  • data — 交易数据。
  • value — 此交易发送的金额(单位:Wei)。
  • chainId — 按照EIP-155的规定,此交易在其上获得授权的链 ID 。
  • type —该交易信封的类型为EIP-2718 。
  • maxFeePerGas — 此交易将支付的EIP-1559区块基础费用和此交易的优先费用的每单位 gas 最高价格(单位:Wei)。
  • maxPriorityFeePerGas — 每单位 gas 的价格(单位为 Wei),该价格将添加到EIP-1559区块的基本费用中。这笔额外费用用于激励矿工优先处理此交易。
  • serializeTx — 序列化未签名交易。

8.StartCheckpoint

检查点证明是提交到 EigenPod 的主要证明。完成一个检查点意味着为 Pod 中活跃验证器集的每个验证器提交一个检查点证明。当检查点完成后,会针对每个事件相应地更新份额。OwnedShares 可以通过 DelegationManager提款队列提取(请参阅DelegationManager:取消委托和提取)。

示例请求

curl --request POST \
--url http://api-test.ssv.ebunker.io/api/v1/eth/restake/eigenlayer/startCheckpoint \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \
--data '
{
"staker": "0x27AABeE07E0dbC8b0de20f42b1a1980871314Ef5"
}
'
  • staker — EigenPod 地址的所有者。

示例响应

{
"code": 200,
"message": "successed",
"result": {
"to": "0xA44151489861Fe9e3055d95adC98FbD462B948e7",
"gasLimit": "1244000",
"data": "0xeea9064b0000000000000000000000003e31908e30b3051dfe056b1d0902b164d78cd8b80...",
"value": "0",
"chainId": 17000,
"type": 2,
"maxFeePerGas": "4158022",
"maxPriorityFeePerGas": "4157996",
"serializeTx": "0x02f8ed82426880833f722c833f72468312fb6094a44151489861fe9e3055d95adc98f..."
}
}
  • to — 此交易的接收地址。
  • gasLimit — 该区块的最大gas限制。
  • data — 交易数据。
  • value — 此交易发送的金额(单位:Wei)。
  • chainId — 按照EIP-155的规定,此交易在其上获得授权的链 ID 。
  • type —该交易信封的类型为EIP-2718 。
  • maxFeePerGas — 此交易将支付的EIP-1559区块基础费用和此交易的优先费用的每单位 gas 最高价格(单位:Wei)。
  • maxPriorityFeePerGas — 每单位 gas 的价格(单位为 Wei),该价格将添加到EIP-1559区块的基本费用中。这笔额外费用用于激励矿工优先处理此交易。
  • serializeTx — 序列化未签名交易。

9.VerifyCheckpointProofs

verifyCheckpointProofs用于推进(或完成)pod的当前检查点。此方法接受一个或多个验证器当前余额相对于 balanceContainerRoot 的merkle 证明 。此外, 会根据当前检查点的 balanceContainerProof对此进行验证。

示例请求

curl --request POST \
--url http://api-test.ssv.ebunker.io/api/v1/eth/restake/eigenlayer/verifyCheckpointProofs \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \
--data '
{
"staker": "0x27AABeE07E0dbC8b0de20f42b1a1980871314Ef5"
}
'
  • staker — EigenPod 地址的所有者。

示例响应

{
"code": 200,
"message": "successed",
"result": {
"to": "0xA44151489861Fe9e3055d95adC98FbD462B948e7",
"gasLimit": "1244000",
"data": "0xeea9064b0000000000000000000000003e31908e30b3051dfe056b1d0902b164d78cd8b80...",
"value": "0",
"chainId": 17000,
"type": 2,
"maxFeePerGas": "4158022",
"maxPriorityFeePerGas": "4157996",
"serializeTx": "0x02f8ed82426880833f722c833f72468312fb6094a44151489861fe9e3055d95adc98f..."
}
}
  • to — 此交易的接收地址。
  • gasLimit — 该区块的最大gas限制。
  • data — 交易数据。
  • value — 此交易发送的金额(单位:Wei)。
  • chainId — 按照EIP-155的规定,此交易在其上获得授权的链 ID 。
  • type —该交易信封的类型为EIP-2718 。
  • maxFeePerGas — 此交易将支付的EIP-1559区块基础费用和此交易的优先费用的每单位 gas 最高价格(单位:Wei)。
  • maxPriorityFeePerGas — 每单位 gas 的价格(单位为 Wei),该价格将添加到EIP-1559区块的基本费用中。这笔额外费用用于激励矿工优先处理此交易。
  • serializeTx — 序列化未签名交易。

10.QueueWithdrawals

允许调用者将其存款份额排队以跨任何策略提取。 提款可以在 MIN_WITHDRAWAL_DELAY_BLOCKS之后通过调用 completeQueuedWithdrawal完成。 此方法接受存款份额作为输入, 但是,如果质押者经历了削减,则完成后收到的金额可能会小于此前的金额。提现输入的数量不能大于 withdrawableRestakedExecutionLayerGwei的数量

示例请求

curl --request POST \
--url http://api-test.ssv.ebunker.io/api/v1/eth/restake/eigenlayer/queueWithdrawals \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \
--data '
{
"staker": "0x27AABeE07E0dbC8b0de20f42b1a1980871314Ef5",
"amount": 30000000000000000000,
}
'
  • staker — EigenPod 地址的所有者。
  • amount —queueWithdrawal 的数量

示例响应

{
"code": 200,
"message": "successed",
"result": {
"to": "0xA44151489861Fe9e3055d95adC98FbD462B948e7",
"gasLimit": "1244000",
"data": "0xeea9064b0000000000000000000000003e31908e30b3051dfe056b1d0902b164d78cd8b80...",
"value": "0",
"chainId": 17000,
"type": 2,
"maxFeePerGas": "4158022",
"maxPriorityFeePerGas": "4157996",
"serializeTx": "0x02f8ed82426880833f722c833f72468312fb6094a44151489861fe9e3055d95adc98f..."
}
}
  • to — 此交易的接收地址。
  • gasLimit — 该区块的最大gas限制。
  • data — 交易数据。
  • value — 此交易发送的金额(单位:Wei)。
  • chainId — 按照EIP-155的规定,此交易在其上获得授权的链 ID 。
  • type —该交易信封的类型为EIP-2718 。
  • maxFeePerGas — 此交易将支付的EIP-1559区块基础费用和此交易的优先费用的每单位 gas 最高价格(单位:Wei)。
  • maxPriorityFeePerGas — 每单位 gas 的价格(单位为 Wei),该价格将添加到EIP-1559区块的基本费用中。这笔额外费用用于激励矿工优先处理此交易。
  • serializeTx — 序列化未签名交易。

11.QueuedWithdrawalsInfo

查询执行queueWithdrawals的数据列表,undelegate和queuedWithdrawals数据可以在这个接口里查到,可以排队提现的数据和检查点验证的数据也可以在此接口获取。当您执行QueueWithdrawals操作时,QueueWithdrawals的数量不能大于verifiedCheckpointWithdrawableGwei的数量

示例请求

curl --request GET \
--url http://api-test.ssv.ebunker.io/api/v1/eth/restake/eigenlayer/queuedWithdrawalsInfo?staker=0x4e6b046D67379b0083f645797baED74421008817&queueWithdrawalsTxs=0xb3c239e3cf248c0368432c6497d2dbb48efa684b5ce94863980aa237fd11d943,0xb3c239e3cf248c0368432c6497d2dbb48efa684b5ce94863980aa237fd11d946 \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \
  • staker — EigenPod 地址的所有者。
  • queueWithdrawalsTxs — 进入提现队列且未完成最终提现的交易hash,如果有多笔提现 QueueWithdrawals的操作,交易hash用逗号分割

示例响应

{
"code": 200,
"message": "Success",
"result": {
"restakedBalance": "32001802595000000000",
"podBalance": "2802595000000000",
"withdrawableRestakedExecutionLayerGwei": "2802595",
"avaiableToQueue": "1802595000000000",
"withdrawQueue": "1000000000000000",
"avaiableToWithdraw": "0",
"queuedWithdrawals": [
{
"queuedNonce": "0",
"startBlock": "21915538",
"shares": "1000000000000000",
"delaySeconds": 355344
}
]
}
}
  • restakedBalance — 正在restake的数量
  • podBalance — pod地址的余额
  • withdrawableRestakedExecutionLayerGwei — 经过检查点验证的可提现数量,此数值的单位是Gwei
  • avaiableToQueue — 可以进入提现队列的数量
  • withdrawQueue — 提现锁定期的数量
  • avaiableToWithdraw — 锁定期已结束,可进行最终提现的数量
  • queuedWithdrawals — 提现队列的列表数据
  • queuedNonce — queuedWithdrawal的nonce。
  • startBlock — queuedWithdrawal的Block。
  • shares — queuedWithdrawal的数量。
  • delaySeconds — queuedWithdrawal的队列剩余可以提现的时间,单位是秒,当为0时可以进行提现completeQueuedWithdrawals操作。

12. CompleteQueuedWithdrawals

MIN_WITHDRAWAL_DELAY_BLOCKS后,质押者可以通过调用 CompleteQueuedWithdrawals 方法完成提现或再次restake股份。质押者可以根据queueWithdrawalsTx logs里的参数值选择接收代币或股份。

示例请求

curl --request POST \
--url http://api-test.ssv.ebunker.io/api/v1/eth/restake/eigenlayer/completeQueuedWithdrawals \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \
--data '
{
"staker": "0x27AABeE07E0dbC8b0de20f42b1a1980871314Ef5",
"queueWithdrawalsTx": "0x9944c374d311f7d80db6a3bdf373d4a98b3a014c9cd5bb607564661618285987"
}
'
  • staker — EigenPod 地址的所有者。

  • queueWithdrawalsTx — queueWithdrawals交易的hash,确保queueWithdrawals链上已确认成功且queueWithdrawals的锁定期已结束

    示例响应

{
"code": 200,
"message": "successed",
"result": {
"to": "0xA44151489861Fe9e3055d95adC98FbD462B948e7",
"gasLimit": "4144060",
"data": "0x9435bb43000000000000000000000000000000000000000000000000000000000000...",
"value": "0",
"chainId": 17000,
"type": 2,
"maxFeePerGas": "4158024",
"maxPriorityFeePerGas": "4157996",
"serializeTx": "0x02f84c82426880833f722c833f7248833f3bbc94a44151489861fe9e3055d95adc98fbd462b948e780a4da8be8640000000000000000000000000ec6f099d311b3a46acb89fafef99c1b42b5d635c0"
}
}
  • to — 此交易的接收地址。
  • gasLimit — 该区块的最大gas限制。
  • data — 交易数据。
  • value — 此交易发送的金额(单位:Wei)。
  • chainId — 按照EIP-155的规定,此交易在其上获得授权的链 ID 。
  • type —该交易信封的类型为EIP-2718 。
  • maxFeePerGas — 此交易将支付的EIP-1559区块基础费用和此交易的优先费用的每单位 gas 最高价格(单位:Wei)。
  • maxPriorityFeePerGas — 每单位 gas 的价格(单位为 Wei),该价格将添加到EIP-1559区块的基本费用中。这笔额外费用用于激励矿工优先处理此交易。
  • serializeTx — 序列化未签名交易。

13.AvsRewards(Get)

查询staker可以claim的奖励数据,目前Eigen的奖励是每周发放1次,建议查询的间隔大于7天

示例请求

curl --request GET \
--url http://api-test.ssv.ebunker.io/api/v1/eth/restake/eigenlayer/avsRewards?staker=0x9E8f8190fc5242AA48DB9eA363edE0f5FEd8a15D \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json'

示例响应

{
"code": 200,
"message": "successed",
"result": {
"rewards": [
{
"token": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"symbol": "WETH",
"earned": "1548959716822977",
"active": "1548959716822977",
"claimed": "0",
"claimable": "1548959716822977"
},
{
"token": "0xec53bf9167f50cdeb3ae105f56099aaab9061f83",
"symbol": "EIGEN",
"earned": "983006337426751957841",
"active": "983006337426751957841",
"claimed": "782701837421108939187",
"claimable": "200304500005643018654"
}
]
}
}
  • token — AVS奖励的Token地址。
  • symbol — Token的代币符号。
  • earned — 已经赚取的收益数量。
  • claimed — 已经claim的数量。
  • claimable — 当前可claim的数量。

14.AvsRewards(Post)

如果查询到staker有奖励数据,即可调用此API生成claim AVS奖励的数据,进行claim操作,奖励每周发1次,建议调用此API的间隔大于7天

示例请求

curl --request POST \
--url http://api-test.ssv.ebunker.io/api/v1/eth/restake/eigenlayer/avsRewards \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \
--data '
{
"staker": "0x27AABeE07E0dbC8b0de20f42b1a1980871314Ef5",
"tokenAddresses": "0x3b78576f7d6837500ba3de27a60c7f594934027e,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
}
'
  • staker — EigenPod 地址的所有者。
  • tokenAddresses — AVS奖励Token的地址,多个token地址用逗号分割,可以从AvsRewards(Get)的接口获取

示例响应

{
"code": 200,
"message": "successed",
"result": {
"to": "0xA44151489861Fe9e3055d95adC98FbD462B948e7",
"gasLimit": "1244000",
"data": "0xeea9064b0000000000000000000000003e31908e30b3051dfe056b1d0902b164d78cd8b80...",
"value": "0",
"chainId": 17000,
"type": 2,
"maxFeePerGas": "4158022",
"maxPriorityFeePerGas": "4157996",
"serializeTx": "0x02f8ed82426880833f722c833f72468312fb6094a44151489861fe9e3055d95adc98f..."
}
}
  • to — 此交易的接收地址。
  • gasLimit — 该区块的最大gas限制。
  • data — 交易数据。
  • value — 此交易发送的金额(单位:Wei)。
  • chainId — 按照EIP-155的规定,此交易在其上获得授权的链 ID 。
  • type —该交易信封的类型为EIP-2718 。
  • maxFeePerGas — 此交易将支付的EIP-1559区块基础费用和此交易的优先费用的每单位 gas 最高价格(单位:Wei)。
  • maxPriorityFeePerGas — 每单位 gas 的价格(单位为 Wei),该价格将添加到EIP-1559区块的基本费用中。这笔额外费用用于激励矿工优先处理此交易。
  • serializeTx — 序列化未签名交易。