public class AddressTrans extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static AddressTrans |
evmToXChainAddress(String evmAddr)
evm address transfer to xChain address:
evmAddr can be evm contract account, AK address, xChain contract name.
|
String |
getAddr() |
String |
getAddrType() |
static boolean |
isContractAddr(String addr)
determine whether it is a contract account
|
static boolean |
isContractName(String contractName)
determine whether it is a contract name
|
static AddressTrans |
xChainToEvmAddress(String xChainAddr)
xChain address transfer to evm address:
xChain address can be xChain contract account, AK address, xChain contract name.
|
public String getAddr()
public String getAddrType()
public static AddressTrans xChainToEvmAddress(String xChainAddr)
xChainAddr - public static AddressTrans evmToXChainAddress(String evmAddr)
evmAddr - public static boolean isContractAddr(String addr)
addr - xChain地址public static boolean isContractName(String contractName)
contractName - xchain合约名Copyright © 2022. All rights reserved.