bridge/interfaces/UnwrapTokenOptions.md
Options for unwrapping a token (e.g., GMUSIC → MUSIC)
Unwrapping transfers a token from the asset channel back to its native channel, converting it from the wrapped version to the original.
Example
const result = await wrapService.unwrapToken({
tokenId: '$GMUSIC|Unit|none|none',
amount: '50',
});
Properties
| Property | Type | Description |
|---|---|---|
amount | string | Amount to unwrap (decimal string, e.g., "50") |
recipient? | string | Optional GalaChain recipient address (defaults to the sender) |
tokenId | TokenClassKeyInput | Token to unwrap (wrapped token on asset channel), by its class key: the pipe form ("$GMUSIC|Unit|none|none") or the object. A bare symbol is refused (INVALID_TOKEN_REFERENCE). |
token id class key input invalid reference