是否可以通过直接请求 V2 工作规范返回地址?
是否可以使用 Chainlink Direct Request V2 作业规范返回地址
?
我注意到 ETH 地址
大约为 42 字节,因此它不适合 bytes32
响应类型。我看到列出的“响应类型 " 在文档列表中:
uint256
int256
bool
bytes32
/bytes
Is it possible to return an address
with Chainlink Direct Request V2 Job Specs?
I've noticed an ETH address
is around 42 bytes so it won't fit into a bytes32
response type. I see the listed "Response Types" in the docs list:
uint256
int256
bool
bytes32
/bytes
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想要返回一个
bytes32
,然后将其转换为地址。来自 solidity 文档:
另请参阅此相关问题。
You'd want to return a
bytes32
and then convert it to an address.From the solidity docs:
Also see this related question.