Skip to content
Cross-chain Metaspace Interface

Export Public Chain AssetsTry API

POST chain_dexSwap (Export Public Chain Assets)

description:The export process transfers assets from the VoidChain public-chain robot address to the local public-chain account address, and removes the mapped asset from the cross-chain metaspace. Public-chain asset exports use unified parameters.

Exporting public chain assets is serialized per user. Only one export can be in progress at a time; wait until the previous export finishes.

Parameters

chain: public chainname

Content: exportcontent, withbase64 encoded

{

"chain_symbol": "ETH", //exportchainID

"coin_symbol": "ETH", //exportcoinID

"coin_name": "USDT", //exportcoinname

"amount": "0x333", //amount

"remote_rpc": "https://holesky.gateway.tenderly.co"

}

forjsonperformbase64encoded

Example Code
Request
{
"jsonrpc": "3.0",
"method": "chain_dexSwap",
"params": [
  "opcode=Assets&subcode=Export&content=",
  "encryp=none"
],
"id": "aa80aa0c6bb0c7d81ac7e5b3"
}
Response
Export is an asynchronous task. Query export status periodically to confirm the result.

On this page