Create a Token Attestation VAA containing metadata about the token that may be submitted to a Token bridge on another chain to allow it to create a wrapped version of the token
The token to create an attestation for
Optional
payer: UniversalOrNative<C>The payer of the transaction
An AsyncGenerator that produces transactions to sign and send
returns the original asset with its foreign chain
The wrapped address to check
The TokenId corresponding to the original asset and chain
Returns the address of the native version of this asset
The token to check
The address of the native version of this asset
Check to see if a foreign token has a wrapped version
The token to check
true if the token has a wrapped version
Checks a native address to see if its a wrapped version
The address to check
true if the address is a wrapped version of a foreign token
Redeem a transfer VAA to receive the tokens on this chain
The sender of the transfer
The transfer VAA to redeem
Optional
unwrapNative: booleanWhether to unwrap the native token if it is a wrapped token
An AsyncGenerator that produces transactions to sign and send
Submit the Token Attestation VAA to the Token bridge to create the wrapped token represented by the data in the VAA
The attestation VAA to submit
Optional
payer: UniversalOrNative<C>The payer of the transaction
An AsyncGenerator that produces transactions to sign and send
Initiate a transfer of some token to another chain
The sender of the transfer
The recipient of the transfer as a ChainAddress so we know what the destination chain should be
The token to transfer
The amount of the token to transfer
Optional
payload: Uint8ArrayOptional payload to include in the transfer
An AsyncGenerator that produces transactions to sign and send
Generated using TypeDoc
TokenBridge protocol definition, providing a consistent client interface for the TokenBridge protocol
Find details on the TokenBridge protocol here: https://github.com/wormhole-foundation/wormhole/blob/main/whitepapers/0003_token_bridge.md