You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

求助:通过Hyperlane从Ethereum Sepolia向Solana Testnet发消息一直Pending

Hyperlane跨链消息Pending问题求助

问题概述

尝试通过Hyperlane从Ethereum Sepolia智能合约向Solana Testnet发送消息,但消息状态始终处于Pending。

Ethereum Sepolia合约代码

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import {IMailbox} from "hyperlane-monorepo/solidity/contracts/Mailbox.sol";

contract Counter {
    uint256 public number;
    IMailbox public mailbox;

    constructor() {
        mailbox = IMailbox(0xfFAEF09B3cd11D9b20d1a19bECca54EEC2884766);
    }

    function setNumber(uint256 newNumber) public {
        number = newNumber;
    }

    function increment() public {
        number++;
    }

    function send() public {
        uint32 destination = 1399811150;
        // bytes32 recipient = bytes32(abi.encodePacked("4N8f8zmwb3cuT8wMYAbEqRw47UxrLfwk3HXiCmJMwmvu"));
        bytes32 recipient = bytes32(abi.encodePacked(hex"31fcea8b515eafae980ad5afd10546f0f413c5aa7e29815699b355b30e332336"));
        bytes memory body = bytes("Hello World");
        uint256 fee = mailbox.quoteDispatch(destination, recipient, body);
        mailbox.dispatch{value: fee}(destination, recipient, body); 
    }

    receive() external payable {}
}

Solana Testnet程序代码

use anchor_lang::prelude::*;

declare_id!("4N8f8zmwb3cuT8wMYAbEqRw47UxrLfwk3HXiCmJMwmvu");

#[program]
pub mod hellosol {
    use super::*;

    pub fn handle(
        _ctx: Context<HandleCtx>,
        origin: u32,
        sender: [u8; 32],
        body: Vec<u8>,
    ) -> Result<()> {
        msg!("📨 Hyperlane message received!");
        msg!("From domain: {}", origin);
        msg!("Sender: {:?}", sender);
        msg!("Message: {}", String::from_utf8_lossy(&body));
        Ok(())
    }
}

#[derive(Accounts)]
pub struct HandleCtx {}

Ethereum Sepolia交易执行记录

piyush@Jethalal ~/T/h/hellopol (master) [2]&gt; set -x PROG "0x32d1cD7143D563Ec43172432fCBAe98fF3f9EBBC"
piyush@Jethalal ~/T/h/hellopol (master) [2]&gt; set -x RPC https://ethereum-sepolia.wallet.brave.com/
piyush@Jethalal ~/T/h/hellopol (master) [2]&gt; set -x PRIVATE_KEY 'the private key here'
piyush@Jethalal ~/T/h/hellopol (master) [2]&gt; cast send $PROG "send()" --rpc-url $RPC --private-key $PRIVATE_KEY

blockHash            0xf24da235b07e1a23698f4bfbd67d558482f93b266d55699b839866603f63158b
blockNumber          9546218
contractAddress
cumulativeGasUsed    7949262
effectiveGasPrice    1000009
from                 0x60D7284283B5711A4099E0538c4E288af30EAAf2
gasUsed              219785
logs                 [{"address":"0xffaef09b3cd11d9b20d1a19becca54eec2884766","topics":["0x769f711d20c679153d382254f59892613b58a97cc876b249134ac25c80f9c814","0x00000000000000000000000032d1cd7143d563ec43172432fcbae98ff3f9ebbc","0x00000000000000000000000000000000000000000000000000000000536f6c4e","0x31fcea8b515eafae980ad5afd10546f0f413c5aa7e29815699b355b30e332336"],"data":"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005803000d2eb600aa36a700000000000000000000000032d1cd7143d563ec43172432fcbae98ff3f9ebbc536f6c4e31fcea8b515eafae980ad5afd10546f0f413c5aa7e29815699b355b30e33233648656c6c6f20576f726c640000000000000000","blockHash":"0xf24da235b07e1a23698f4bfbd67d558482f93b266d55699b839866603f63158b","blockNumber":"0x91a9ea","transactionHash":"0xd9b8ae2e0f93ca2c348f17c9d1e6ce663e28b1cff8d7d768405e15cc8084dee7","transactionIndex":"0x49","logIndex":"0x4f","removed":false},{"address":"0xffaef09b3cd11d9b20d1a19becca54eec2884766","topics":["0x788dbc1b7152732178210e7f4d9d010ef016f9eafbe66786bd7169f56e0c353a","0x28e59b2b09c16076bd5d50c1a5c0a1cf4b724ad9f5c65b888c83f647297ded8e"],"data":"0x","blockHash":"0xf24da235b07e1a23698f4bfbd67d558482f93b266d55699b839866603f63158b","blockNumber":"0x91a9ea","transactionHash":"0xd9b8ae2e0f93ca2c348f17c9d1e6ce663e28b1cff8d7d768405e15cc8084dee7","transactionIndex":"0x49","logIndex":"0x50","removed":false},{"address":"0x4917a9746a7b6e0a57159ccb7f5a6744247f2d0d","topics":["0x253a3a04cab70d47c1504809242d9350cd81627b4f1d50753e159cf8cd76ed33"],"data":"0x28e59b2b09c16076bd5d50c1a5c0a1cf4b724ad9f5c65b888c83f647297ded8e00000000000000000000000000000000000000000000000000000000000d2a48","blockHash":"0xf24da235b07e1a23698f4bfbd67d558482f93b266d55699b839866603f63158b","blockNumber":"0x91a9ea","transactionHash":"0xd9b8ae2e0f93ca2c348f17c9d1e6ce663e28b1cff8d7d768405e15cc8084dee7","transactionIndex":"0x49","logIndex":"0x51","removed":false},{"address":"0x6f2756380fd49228ae25aa7f2817993cb74ecc56","topics":["0x65695c3748edae85a24cc2c60b299b31f463050bc259150d2e5802ec8d11720a","0x28e59b2b09c16076bd5d50c1a5c0a1cf4b724ad9f5c65b888c83f647297ded8e","0x00000000000000000000000000000000000000000000000000000000536f6c4e"],"data":"0x000000000000000000000000000000000000000000000000000000000009eb10000000000000000000000000000000000000000000000000000058acfcdd9800","blockHash":"0xf24da235b07e1a23698f4bfbd67d558482f93b266d55699b839866603f63158b","blockNumber":"0x91a9ea","transactionHash":"0xd9b8ae2e0f93ca2c348f17c9d1e6ce663e28b1cff8d7d768405e15cc8084dee7","transactionIndex":"0x49","logIndex":"0x52","removed":false}]
logsBloom            0x00000000000000808000000000040000000000080000800000000000002808000000000000000000000000000000080080000000000000000000000000000800000000000000000000000004000000000000080000000000000000000000004000000000000000000000020000000000000000000000002000000000001000000000000000000000000000000000008000000000000000000000000000000000000400000000000000004000000000000200000000000000000000000000000000021000000000000000000000000000000000080000000010000008080000000020400000000000000000000000000000000400004000000000000000000500
root
status               1 (success)
transactionHash      0xd9b8ae2e0f93ca2c348f17c9d1e6ce663e28b1cff8d7d768405e15cc8084dee7
transactionIndex     73
type                 2
blobGasPrice
blobGasUsed
to                   0x32d1cD7143D563Ec43172432fCBAe98fF3f9EBBC
piyush@Jethalal ~/T/h/hellopol (master)&gt;

Hyperlane消息状态

Hyperlane浏览器中的交易状态

分析与求助

消息已显示在Hyperlane浏览器中,说明Ethereum Sepolia上与Mailbox合约的交易成功,推测问题出在Relayer环节,寻求技术支持解决该Pending问题。


内容的提问来源于stack exchange,提问作者Piyush Mishra

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 02:59:50