Skip to main content

入门指南

要开始使用我们的DVT Staking API在SSV网络上进行质押,有一些基本先决条件需要确保顺利高效地设置:

  • 最低质押要求:您需要每个要运行的质押验证器的最低32个ETH。
  • SSV代币:为了在SSV网络上运行验证者,建议每个验证器持有至少6.15个SSV代币,以覆盖年度运营成本。
  • API密钥请求:获取认证令牌开始使用DVT Staking API。
  • 我们为测试和生产环境(以太坊)提供了两个不同的端点。

步骤

1. 准备一个请求ID

这是UUID,可以使用uuid npm包生成。

2. 创建一个订单以通过Ebunker基础设施设置质押SSV节点

通过向API发送POST请求。

示例请求

curl --request POST \
--url http://api-test.ssv.ebunker.io/api/v1/eth/staking/ssv/order \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \
--data '
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa5",
"validatorsCount": "1",
"withdrawalAddress": "0x39D02C253dA1d9F85ddbEB3B6Dc30bc1EcBbFA17",
"feeRecipientAddress": "0x39D02C253dA1d9F85ddbEB3B6Dc30bc1EcBbFA17",
"ssvOwnerAddress": "0x39D02C253dA1d9F85ddbEB3B6Dc30bc1EcBbFA17",
"type": "without-encrypt-key",
"operationPeriodInDays": 30,
"ecdhPublicKey": null
}

参数

  • id — 任意的UUID。您稍后可以使用该UUID来检查设置操作的状态。
  • validatorsCount — 验证者数量。一个验证者等于32个ETH。
  • withdrawalAddress — 客户的提款地址。该地址也用作验证者所有者的地址,必须用于签署注册SSV验证者的交易。
  • feeRecipientAddress — 收取费用的Eth1地址。
  • ssvOwnerAddress — 作为SSV集群所有者的地址。集群所有者可以注册验证者、更新收费地址、为集群余额充值并索取SSV激励奖励。
  • type— 操作类型:
    • without-encrypt-key(可用)— 验证者的私钥以加密形式返回给客户。
    • with-encrypt-key(不可用)— 验证者私钥由P2P维护,以便在客户请求时发起提款。如果选择此选项,请填写ecdhPublicKey字段。
  • operationPeriodInDays— 操作期限(天)。
  • ecdhPublicKey— 用于获取加密验证者私钥的ECDH公钥。

示例响应

{
"code": 200,
"message": "success"
}
3. 检查节点设置订单的状态

通过向API发送POST请求。

示例请求:

curl -X 'GET' \
'http://api-test.ssv.ebunker.io/api/v1/eth/staking/ssv/order?id=123' \
-H 'accept: application/json'
  • id — 在SSV设置请求中指定的UUID。

示例响应:

{
"code": 200,
"message": null,
"result": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa5",
"status": "ready",
"type": "without-encrypt-key",
"operationPeriodInDays": 30,
"liquidationPeriodInDays": 30,
"ecdhPublicKey": null,
"encryptedShares": [
{
"publicKey": "0xb4b5f251eac53f34eb1da2b6659d35db303e408c4c830156cf090441564474f356abd023a0e679aa97cefeed850abb27",
"nonce": 1,
"sharesData": "0x971aade51840b84fc5b88fee2ef1ed80ce57c2ea9a8fb610d2fdb3a287589a87c421b845e3f1cb4ef5a84eaba6c31d4c159ead3c818758d6fc988a207ea467ff35fb90ab502805569f8ff94042d870ebedc327ea0778476559c95076a99c7cd1b78b94bb2a5098c10b50000c7419476f295e0d1e94b17c1f985c76adfad8b7897bdf34b58388b6b201104616e179e93888016e92ab60b4bf5d844b1a8fd9fdd97e3dba2cfadbe65f1bc3b66aeed8b1be8407a150ae6a028fe72e50d70121e7eab424e02922422ce66fb45c5878eb0d307fae5b5b0637cee897a119563d18082c33fe5ac017d3cfd3a42e2f5f7d8bece98e679000fb7cfd339fbc1470177963d5cd73b6b4001e77f3dcb348cb07797b25fd3b6811e4dfbafe78a4a9d70861fd27001d88253500347ba8ff907bd647b83aa6b5bf727929ee35ce5360a0b7810b355f8e524426e8a6db75e240af29527b398c2d5a926e4867f04483ec61338d7f413cd419d17bc572a0b3ecd98e04426964a8350d1545493e2fe039828f8e74fb48da7f4ee26166b4c2b2b05fa94bf4721a0b6888a8065062ed45bd23f9d3fcbb80ecf3febfb8c90522b20ae724a94f12fb9de80c95dd7b1762d6b15312c3bbde291224fb7b809384404bde5d78bd36801a67154addc466d20c6e6146eda1e263167a96a9d21a1b4fef6d532957cfca20d3311ac2f5bfd6c4601df0eebec49b5a74adce8c1b7fbf82c5333d25c499f72928d3bfe47fa9c54ec9f55c63586758af8a256683952376b4feef745bbc2280e66bb475e48edc4a90eb128bfb3322b30065f3fedf6dcd3180798375eee05abc20433f79e3d6e73948a84057ca7b72b6ba756f257ca1a11f2fa3b130bcf28d9ef80cb946bf11e6008815ee6c100ab1527f13c064bac2b67a8f832ab70c98d39d77940f975c35c8dea26f2e25a5e706da368fa0dd08958ea11904b1b51ca40aab37e581e58a5c60ea1caa08063461b3319e6c8ff21b75f2ff9358ddccf27abea55e7dbad4f474741ff14fe9e63d9c001eec990531a5bc6b2196269cfa0050beced2e2ce55f9dfea48c0c81f3d1a1f4f6548e29de76b085f83f9399c29b89880a15b80e049de2fa9eef3eab7a1a15cd1d6ae2bc8fdc9837f59baf56c11ed7405bda5d2cd2de6fd80c7b7461abfb757c742b3216ef79d8268501cb3531a5fcf9d46b58e828e6aaea4bef8484cc8945912ac611827463d4a3dabe56f608181dfba8ffc7cb1cfdef5a09a9f107652b44d290fc42b0d5e3e16634342af07f205153b0c7d095e0d418f1d0aef8a7e00d41e5af183ceed36d5832169bdd91810b4ad686b85130ec07aeaccfbc26d440684ac34c8005c12b38caa41d18ecd51167afaba0aae2b605cb0cefcae1b4f64ff220167d1f93b73abd75368dd67c3a6ad48448021c66086daf62419d6de350ee3f25aef4784340c0932362da25cff3f1ed7316afce3034d264f1206322c6510aacddb9315f8b532516a52f2483d0a191caa38a10cb40d00494c43ddcc49b54349fd809409a8d6131746ef7adc57a9f7feea9bb3a4142d418e5b1f89ccde686a1627c9a9d5ac9bc6a06685017b15eb549e9bc2e7cf98720b616d8bea14b5b9194280bb1386154be5fd31dc6f64cfe5bbf80fff95e2a82a2a803e579e302c0db931470b78fb32fb1774840002417b86c4ad621e43ec36d2496a7f6b63d470fae3edb863f909ee0e4ce43ca293770a229cbcbd542c9bd123889298c3a6e32c2e5c5f4861afa640a16d5c5089373d3e6ddfdebc223a2d966c3e37d135f3f8805eb3432ff46befac6c41aff89739b1bab6ccee383fb524ff985b5054091fed2d351bff38ec78800200",
"ecdhEncryptedPrivateKey": null
}
],
"validatorsCount": 1,
"withdrawalAddress": "0x9c7d4b4595402ed44167C74f9F7c7720AB5528E0",
"ssvOwnerAddress": "0x39D02C253dA1d9F85ddbEB3B6Dc30bc1EcBbFA17",
"feeRecipientAddress": "0x9c7d4b4595402ed44167C74f9F7c7720AB5528E0",
"depositData": [
{
"pubkey": "0xb632ad4ebec8594ec8f2fbacc6df53dec180f8bae6561d70bf74c19520a35beff99cd92513058da6a22a75b9570ab31d",
"signature": "0x836e9eebeb29ed1d4b232fa38649e9902ea7d6f9d19e571c4e76cde4da2bcdbca822c8f29d21379325201735fa93925d1597f0c021a147910c165e60bf3308bc827d5fcd545f1c901e7b3102e28b8ea09d6c162c3ffd57e7398f73e5968e05db",
"depositDataRoot": "0x16678e6d91a8c3a8f1cdabc037fa32f1d296e629d1665a57f493eda1e6a6964a",
"withdrawalCredentials": "0100000000000000000000005cef11327af4104ba0f8a82fbb8628caee7cb1e3",
"amount": "32000000000",
"depositMessageRoot": "6a572503239cd1f11998af7901c0947fe36eb8efec080f22598d607d3938c1a8",
"forkVersion": "00001020",
"eth2NetworkName": "goerli",
"depositCliVersion": "2.3.0"
}
],
"validatorRegistrationTxs": {
"serializeTx": "0x02f9078605010210830f424094c3cd9a0ae89fff83b71b58b6512d43f8a41f363d80b9076406e8fb9c00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000016c7ded605b5c0000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046f3111b30000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000016c7ded605b5c0000000000000000000000000000000000000000000000000000000000000000030b4b5f251eac53f34eb1da2b6659d35db303e408c4c830156cf090441564474f356abd023a0e679aa97cefeed850abb2700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000520971aade51840b84fc5b88fee2ef1ed80ce57c2ea9a8fb610d2fdb3a287589a87c421b845e3f1cb4ef5a84eaba6c31d4c159ead3c818758d6fc988a207ea467ff35fb90ab502805569f8ff94042d870ebedc327ea0778476559c95076a99c7cd1b78b94bb2a5098c10b50000c7419476f295e0d1e94b17c1f985c76adfad8b7897bdf34b58388b6b201104616e179e93888016e92ab60b4bf5d844b1a8fd9fdd97e3dba2cfadbe65f1bc3b66aeed8b1be8407a150ae6a028fe72e50d70121e7eab424e02922422ce66fb45c5878eb0d307fae5b5b0637cee897a119563d18082c33fe5ac017d3cfd3a42e2f5f7d8bece98e679000fb7cfd339fbc1470177963d5cd73b6b4001e77f3dcb348cb07797b25fd3b6811e4dfbafe78a4a9d70861fd27001d88253500347ba8ff907bd647b83aa6b5bf727929ee35ce5360a0b7810b355f8e524426e8a6db75e240af29527b398c2d5a926e4867f04483ec61338d7f413cd419d17bc572a0b3ecd98e04426964a8350d1545493e2fe039828f8e74fb48da7f4ee26166b4c2b2b05fa94bf4721a0b6888a8065062ed45bd23f9d3fcbb80ecf3febfb8c90522b20ae724a94f12fb9de80c95dd7b1762d6b15312c3bbde291224fb7b809384404bde5d78bd36801a67154addc466d20c6e6146eda1e263167a96a9d21a1b4fef6d532957cfca20d3311ac2f5bfd6c4601df0eebec49b5a74adce8c1b7fbf82c5333d25c499f72928d3bfe47fa9c54ec9f55c63586758af8a256683952376b4feef745bbc2280e66bb475e48edc4a90eb128bfb3322b30065f3fedf6dcd3180798375eee05abc20433f79e3d6e73948a84057ca7b72b6ba756f257ca1a11f2fa3b130bcf28d9ef80cb946bf11e6008815ee6c100ab1527f13c064bac2b67a8f832ab70c98d39d77940f975c35c8dea26f2e25a5e706da368fa0dd08958ea11904b1b51ca40aab37e581e58a5c60ea1caa08063461b3319e6c8ff21b75f2ff9358ddccf27abea55e7dbad4f474741ff14fe9e63d9c001eec990531a5bc6b2196269cfa0050beced2e2ce55f9dfea48c0c81f3d1a1f4f6548e29de76b085f83f9399c29b89880a15b80e049de2fa9eef3eab7a1a15cd1d6ae2bc8fdc9837f59baf56c11ed7405bda5d2cd2de6fd80c7b7461abfb757c742b3216ef79d8268501cb3531a5fcf9d46b58e828e6aaea4bef8484cc8945912ac611827463d4a3dabe56f608181dfba8ffc7cb1cfdef5a09a9f107652b44d290fc42b0d5e3e16634342af07f205153b0c7d095e0d418f1d0aef8a7e00d41e5af183ceed36d5832169bdd91810b4ad686b85130ec07aeaccfbc26d440684ac34c8005c12b38caa41d18ecd51167afaba0aae2b605cb0cefcae1b4f64ff220167d1f93b73abd75368dd67c3a6ad48448021c66086daf62419d6de350ee3f25aef4784340c0932362da25cff3f1ed7316afce3034d264f1206322c6510aacddb9315f8b532516a52f2483d0a191caa38a10cb40d00494c43ddcc49b54349fd809409a8d6131746ef7adc57a9f7feea9bb3a4142d418e5b1f89ccde686a1627c9a9d5ac9bc6a06685017b15eb549e9bc2e7cf98720b616d8bea14b5b9194280bb1386154be5fd31dc6f64cfe5bbf80fff95e2a82a2a803e579e302c0db931470b78fb32fb1774840002417b86c4ad621e43ec36d2496a7f6b63d470fae3edb863f909ee0e4ce43ca293770a229cbcbd542c9bd123889298c3a6e32c2e5c5f4861afa640a16d5c5089373d3e6ddfdebc223a2d966c3e37d135f3f8805eb3432ff46befac6c41aff89739b1bab6ccee383fb524ff985b5054091fed2d351bff38ec78800200c0",
"to": "0xC3CD9A0aE89Fff83b71b58b6512D43F8a41f363D",
"gasLimit": "0.000000000001",
"data": "0x06e8fb9c00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000016c7ded605b5c0000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046f3111b30000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000016c7ded605b5c0000000000000000000000000000000000000000000000000000000000000000030b4b5f251eac53f34eb1da2b6659d35db303e408c4c830156cf090441564474f356abd023a0e679aa97cefeed850abb2700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000520971aade51840b84fc5b88fee2ef1ed80ce57c2ea9a8fb610d2fdb3a287589a87c421b845e3f1cb4ef5a84eaba6c31d4c159ead3c818758d6fc988a207ea467ff35fb90ab502805569f8ff94042d870ebedc327ea0778476559c95076a99c7cd1b78b94bb2a5098c10b50000c7419476f295e0d1e94b17c1f985c76adfad8b7897bdf34b58388b6b201104616e179e93888016e92ab60b4bf5d844b1a8fd9fdd97e3dba2cfadbe65f1bc3b66aeed8b1be8407a150ae6a028fe72e50d70121e7eab424e02922422ce66fb45c5878eb0d307fae5b5b0637cee897a119563d18082c33fe5ac017d3cfd3a42e2f5f7d8bece98e679000fb7cfd339fbc1470177963d5cd73b6b4001e77f3dcb348cb07797b25fd3b6811e4dfbafe78a4a9d70861fd27001d88253500347ba8ff907bd647b83aa6b5bf727929ee35ce5360a0b7810b355f8e524426e8a6db75e240af29527b398c2d5a926e4867f04483ec61338d7f413cd419d17bc572a0b3ecd98e04426964a8350d1545493e2fe039828f8e74fb48da7f4ee26166b4c2b2b05fa94bf4721a0b6888a8065062ed45bd23f9d3fcbb80ecf3febfb8c90522b20ae724a94f12fb9de80c95dd7b1762d6b15312c3bbde291224fb7b809384404bde5d78bd36801a67154addc466d20c6e6146eda1e263167a96a9d21a1b4fef6d532957cfca20d3311ac2f5bfd6c4601df0eebec49b5a74adce8c1b7fbf82c5333d25c499f72928d3bfe47fa9c54ec9f55c63586758af8a256683952376b4feef745bbc2280e66bb475e48edc4a90eb128bfb3322b30065f3fedf6dcd3180798375eee05abc20433f79e3d6e73948a84057ca7b72b6ba756f257ca1a11f2fa3b130bcf28d9ef80cb946bf11e6008815ee6c100ab1527f13c064bac2b67a8f832ab70c98d39d77940f975c35c8dea26f2e25a5e706da368fa0dd08958ea11904b1b51ca40aab37e581e58a5c60ea1caa08063461b3319e6c8ff21b75f2ff9358ddccf27abea55e7dbad4f474741ff14fe9e63d9c001eec990531a5bc6b2196269cfa0050beced2e2ce55f9dfea48c0c81f3d1a1f4f6548e29de76b085f83f9399c29b89880a15b80e049de2fa9eef3eab7a1a15cd1d6ae2bc8fdc9837f59baf56c11ed7405bda5d2cd2de6fd80c7b7461abfb757c742b3216ef79d8268501cb3531a5fcf9d46b58e828e6aaea4bef8484cc8945912ac611827463d4a3dabe56f608181dfba8ffc7cb1cfdef5a09a9f107652b44d290fc42b0d5e3e16634342af07f205153b0c7d095e0d418f1d0aef8a7e00d41e5af183ceed36d5832169bdd91810b4ad686b85130ec07aeaccfbc26d440684ac34c8005c12b38caa41d18ecd51167afaba0aae2b605cb0cefcae1b4f64ff220167d1f93b73abd75368dd67c3a6ad48448021c66086daf62419d6de350ee3f25aef4784340c0932362da25cff3f1ed7316afce3034d264f1206322c6510aacddb9315f8b532516a52f2483d0a191caa38a10cb40d00494c43ddcc49b54349fd809409a8d6131746ef7adc57a9f7feea9bb3a4142d418e5b1f89ccde686a1627c9a9d5ac9bc6a06685017b15eb549e9bc2e7cf98720b616d8bea14b5b9194280bb1386154be5fd31dc6f64cfe5bbf80fff95e2a82a2a803e579e302c0db931470b78fb32fb1774840002417b86c4ad621e43ec36d2496a7f6b63d470fae3edb863f909ee0e4ce43ca293770a229cbcbd542c9bd123889298c3a6e32c2e5c5f4861afa640a16d5c5089373d3e6ddfdebc223a2d966c3e37d135f3f8805eb3432ff46befac6c41aff89739b1bab6ccee383fb524ff985b5054091fed2d351bff38ec78800200",
"value": "0.0",
"chainId": 5,
"type": 2,
"maxFeePerGas": "0.000000000000000016",
"maxPriorityFeePerGas": "2"
},
"ssvFeeTxs": [
{
"serializeTx": "0x02f901c605800210830186a094c3cd9a0ae89fff83b71b58b6512d43f8a41f363d80b901a4bc26e7e50000000000000000000000009c7d4b4595402ed44167c74f9f7c7720ab5528e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000016c7ded605b5c0000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046f3111b30000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000016c7ded605b5c00000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004c0",
"to": "0xC3CD9A0aE89Fff83b71b58b6512D43F8a41f363D",
"gasLimit": "0.0000000000001",
"data": "0xbc26e7e50000000000000000000000009c7d4b4595402ed44167c74f9f7c7720ab5528e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000016c7ded605b5c0000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046f3111b30000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000016c7ded605b5c00000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004",
"value": "0.0",
"chainId": 5,
"type": 2,
"maxFeePerGas": "0.000000000000000016",
"maxPriorityFeePerGas": "2"
}
],
"feeRecipientTx": {
"serializeTx": "0x02f84405800210830186a094c3cd9a0ae89fff83b71b58b6512d43f8a41f363d80a4dbcdc2cc0000000000000000000000009c7d4b4595402ed44167c74f9f7c7720ab5528e0c0",
"to": "0xC3CD9A0aE89Fff83b71b58b6512D43F8a41f363D",
"gasLimit": "0.0000000000001",
"data": "0xdbcdc2cc0000000000000000000000009c7d4b4595402ed44167c74f9f7c7720ab5528e0",
"value": "0.0",
"chainId": 5,
"type": 2,
"maxFeePerGas": "0.000000000000000016",
"maxPriorityFeePerGas": "2"
},
"approveTx": {
"serializeTx": "0x02f86505800210830186a0943a9f01091c446bde031e39ea8354647afef091e780b844095ea7b3000000000000000000000000c3cd9a0ae89fff83b71b58b6512d43f8a41f363dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0",
"to": "0x3a9f01091C446bdE031E39ea8354647AFef091E7",
"gasLimit": "0.0000000000001",
"data": "0x095ea7b3000000000000000000000000c3cd9a0ae89fff83b71b58b6512d43f8a41f363dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"value": "0.0",
"chainId": 5,
"type": 2,
"maxFeePerGas": "0.000000000000000016",
"maxPriorityFeePerGas": "2"
}
}
}

  • id — 在SSV设置请求中指定的UUID。

  • status — SSV请求的当前状态:

    • init — 请求被存储。
    • processing — 请求正在进行中,请稍等。
    • ready — 请求已准备好。
    • cancel — 由于错误或超时,请求被取消。 准备好后,验证器数据就可以在验证器注册步骤中使用了。
  • type — 操作方式:

    • without-encrypt-key (可用的) — 将验证器的私钥加密后返回给客户端。
    • with-encrypt-key (不可用的) — 验证器私钥由SSV维护,以便在客户端请求时发起取款。
  • operationPeriodInDays — 操作周期,单位为天。

  • liquidationPeriodInDays — 清算阈值周期,单位为天。

  • ecdhPublicKey — 用于获取加密验证器私钥的ECDH公钥。

  • encryptedShares:

    • publicKey — 验证器公钥。
    • nonce — sharesData中用于签名的验证器密钥所有者的nonce。
    • sharesData — 共享(即将验证器密钥转换为预定义的共享阈值)和签名,用于证明验证器所有者地址。使用registerValidator在以太坊交易中从SSV智能合约中创建一个验证器。
    • ecdhEncryptedPrivateKey — 加密验证器私钥。
  • validatorsCount — 加密验证器私钥。验证器的数量。一个验证器等于32个ETH。

  • withdrawalAddress — 集群所有者的退出地址。

  • ssvOwnerAddress — 集群所有者的退出地址。作为SSV集群所有者的地址。集群所有者可以注册验证者,更新费用接收方地址,充值集群余额,并申请SSV奖励奖励。

  • feeRecipientAddress — 接收接收者奖励的Eth1地址。

  • depositData:

    • pubkey — 验证器公钥。
    • signature — 验证签名。
    • depositDataRoot — ssz编码的DepositData对象的SHA-256哈希。用作防止畸形输入的保护。
    • withdrawalCredentials— ssz编码的DepositData对象的SHA-256哈希。用作防止畸形输入的保护。提现地址凭证,由以太坊存款智能合约以预期格式传递。
    • amount — 正在存入的以太币金额,以gwei计价。
    • depositMessageRoot — 加密哈希,确保存款数据的完整性和真实性。
    • forkVersion — 存款打算用于的网络分叉版本。它有助于使存款与协议的特定版本保持一致。
    • eth2NetworkName — 进行存款的以太坊2.0网络的名称。
    • depositCliVersion — 用于生成存款数据的存款命令行接口(CLI)工具的版本。
  • validatorRegistrationTxs — 以序列化和非序列化方式呈现的事务数据,以便在SSV网络上注册验证器。

  • ssvFeeTxs — 以序列化和非序列化方式呈现的交易数据将SSV费用存入集群余额。

  • feeRecipientTx — 交易数据以序列化和非序列化的方式呈现,以设置收款人地址。

  • approveTx — 以序列化和非序列化方式呈现的交易数据,代表用户从SSV.网络智能合约中批准SSV令牌的转移。

validatorRegistrationTxs, ssvFeeTxs, feeRecipientTx, 和 approveTx 包含包含以下数据的数据字段列表:

  • serializeTx — 序列化的未签名事务。
  • to — 此交易的收件人地址。
  • gasLimit — 此区块的最大燃气限制。
  • data — 事务数据。
  • value — 这笔交易以 wei 单位发送的金额。
  • chainId — 此事务授权的链ID,由EIP-155指定。
  • type — 此交易信封的EIP-2718类型。
  • maxFeePerGas — 这笔交易将支付EIP-1559区块的基础费和这笔交易在Wei的优先费。
  • maxPriorityFeePerGas — 每单位gass的价格将被添加到EIP-1559区块的基本费用中。这笔额外的费用用于激励矿工优先处理这笔交易。
4. 签名并广播交易 approveTx
  • 使用serializeTx中的序列化签名
  • 使用内部未序列化的数据构造签名 approveTx.

使用serializeTx来 签名和发送 将签名的交易发送到以太坊网络。

每个帐户只需要执行一次此步骤。它使SSV智能合约能够代表您转移SSV令牌来为集群余额提供资金。

5. 签名并广播交易 feeRecipientTx
  • 使用serializeTx中的序列化签名
  • 使用内部未序列化的数据构造签名 feeRecipientTx.

使用serializeTx来 签名和发送 将签名的交易发送到以太坊网络。

每个帐户只需要执行一次此步骤。它为SSV网络上的验证者设置收费收件人地址。此地址将是执行层奖励累积的接收者。

6. 签名并广播交易 validatorRegistrationTxs
  • 使用serializeTx中的序列化签名
  • 使用内部未序列化的数据构造签名 validatorRegistrationTxs.

使用serializeTx来 签名和发送 将签名的交易发送到以太坊网络。

通过广播此交易,您的验证器将在SSV网络上注册,并同时由四个顶级节点运营商(AntAlpha, Ebunker)组成的池(即集群)管理。

请把ssv注册收进来 ssv 网址

7. 签署和广播 以太坊智能合约
  • 使用内部未序列化的数据构造签名 depositData.

使用 签名和发送 将签名的交易发送到以太坊网络。

最后,请等待。