External address of token on origin chain, or token hash if origin chain is Aptos
Token id of token on origin chain, unnecessary if origin chain is Aptos
Unique token identifier on Aptos
Returns a foreign asset address on Ethereum for a provided native chain and asset address, AddressZero if it does not exist
zero pad to 32 bytes
Returns a foreign asset address on Terra for a provided native chain and asset address
Returns whether or not an asset address on Ethereum is a wormhole wrapped asset
Returns whether or not an asset on Solana is a wormhole wrapped asset
Given a token ID, returns the original asset chain and address. If this is a native asset, the asset address will be the collection hash.
An object containing creator address, collection name, token name, and property version, which together uniquely identify a token on Aptos. For wrapped assets, property version will be 0.
Object containing origin chain and Wormhole compatible 32-byte asset address.
Returns a origin chain and asset address on {originChain} for a provided Wormhole wrapped address
Returns a origin chain and asset address on {originChain} for a provided Wormhole wrapped address
Generated using TypeDoc
Get the token id of a foreign asset on Aptos. Tokens on Aptos are identified by the tuple (creatorAddress, collectionName, tokenName, propertyVersion), which this method returns as an object.
This method also supports native assets, in which case it expects the token hash (which can be obtained from
deriveTokenHashFromTokenId
).