post https://api.uniblock.dev/uni/v1/json-rpc#50
Export an asset from the C-Chain to X-Chain or P-Chain.
Not recommended for use on Mainnet.
Description
Export an asset from the C-Chain to X-Chain or P-Chain. After calling this method, you must call the X-Chain's avm.import or P-Chain's platform.import.
Signature:
avax.export({
to: string,
amount: int,
assetID: string,
baseFee: int,
username: string,
password:string,
}) -> {txID: string}
to
is the X-Chain or P-Chain address the asset is sent to.amount
is the amount of the asset to send.assetID
is the ID of the asset. To export AVAX use "AVAX" as the assetID.baseFee
is the base fee that should be used when creating the transaction. If omitted, a suggested fee will be used.username
is the user that controls the address that transaction will be sent from.password
isusername
‘s password.