Wanchain - We Are All Connected!
WebsiteBridgeExplorerEcosystem
  • 👋 Welcome to Wanchain
  • Products
    • WanBridge
      • Bridge-to-Earn
      • XP
    • XFlows
      • XP
    • XPort
      • XPort developer handbook
      • Supported chains
    • XStake
  • Cross-Chain Infrastructure
    • Wanchain Bridge Node Group
    • Wanchain L1 blockchain
      • Network information
    • WAN coin
      • How to get WAN coins
      • WAN coin faucets
      • xWAN
  • The Convert n' Burn System
    • Overview
    • Bridge fees
      • Conversion and distribution
    • Discounts
  • Developers
    • WanBridge API
      • 1. Information Retrieval
        • 1.1 Supported Chains and Tokense 1
        • 1.2 Cross-chain Quota and Fees
        • 1.3 Asset Lock Address
        • 1.4 Storeman Group ID (smgID)
      • 2. Creating Cross-chain Transactions for WanBridge
        • 2.1 Direct Interaction with On-chain Contracts
        • 2.2 Creating Cross-Chain Transactions Using API
      • 3. Circle CCTP Cross-Chain
        • 3.1 EVM Compatible Chains
      • 4. Status Query
    • XFlows API
      • 1.1 Basic Information
      • 1.2 Request Parameters
      • 1.3 Response Parameters
      • 1.4 Examples
      • 1.5 Notes
      • 1.6 Status Query
    • XPort Developer Handbook
  • PoS Validator Nodes
    • Important Terms and Parameter
    • Recommended Hardware & Software
    • Mainnet Node Setup (Quick Start)
    • Mainnet Node Setup (Manually)
    • Getting Started With AWS
    • Common Operations (CLI)
    • Delegation Guide
    • Commonly Used Scripts
    • GWAN PoS API
    • Partner Model Staking Guide
    • Staking FAQ
  • Wanchain Bridge Nodes
    • Fact Sheet
    • How to deploy a Bridge Node
  • External Links
    • Blog
    • Email
    • GitHub
    • Telegram
    • Telegram Tech Support
    • Twitter/X
    • WanBridge
    • XFlows
    • XStake
    • WanScan
    • Website
Powered by GitBook
On this page
  1. Developers
  2. WanBridge API

4. Status Query

Previous3.1 EVM Compatible ChainsNextXFlows API

Last updated 1 day ago

4.1 Asset Cross-Chain

Endpoint

  • lockHash: The transaction hash of the cross-chain operation on the source chain or destination chain.

Response Exmaple:

{
  "success": true,
  "data": {
    "timestamp": 1687940507,
    "tokenPair": "235",
    "lockHash": "0x1d07dcaeb345405232684e3c3fcffe979bd4b7e59da1ca42edf71dbc6cefc449",
    "redeemHash": "0x41796eff520763922b2e2fe099b6d7ed7f6657a8ff124fa9d2d497267f62d36c",
    "status": "Success",
    "sendAmount": "433876192000000000000",
    "receiveAmount": "433876192"
  }
}

Notes:

  • The status value includes: NotFound, Success, Processing, Trusteeship, and Refund.

    • If Trusteeship is returned, it means the transaction information was filled in incorrectly, such as missing tag information in XRP cross-chain. Manual intervention is required to resolve the issue.

  • The Amount value is in wei units and needs to be converted according to the decimals of fromToken and toToken.

    • If sendAmount and receiveAmount differ, the difference represents the fee deducted during the transaction.

API Usage Example:

You need to add: target chain hash, cross-chain amount, and fee deduction details.

If the cross-chain address is under risk control, the cross-chain transaction automatically refunds, and the query status can be obtained:

{
	"success": true,
	"data": {
		"timestamp": 1717089815,
		"tokenPair": "245",
		"lockHash": "0xda36824c1dd500ba351b7a029adf615fd5fc529653dd9895ea937414201dc3eb",
		"redeemHash": "0xda5f0f4bcd55e2b1f288764f2292bab312410813dfef32e24c25264724f9b5de",
		"status": "Refund",
		"sendAmount": "37753912373",
		"receiveAmount": "37753912373"
	}
}

https://bridge-api.wanchain.org/api/status/[lockHash]
https://bridge-api.wanchain.org/api/status/0x1d07dcaeb345405232684e3c3fcffe979bd4b7e59da1ca42edf71dbc6cefc449