derive_token_type
Derive a minting contract's raw token type from its address and domain separator so minted custom-token balances can be transferred.
Instructions
Derive the raw token type a minting contract produces (compute-only, no wallet, no chain access). A custom token is addressed by rawTokenType(domainSeparator, contractAddress); without it the minted balance cannot be transferred. domainSeparator is the plain string the contract pads (Compact pad(32, "...")) or 64 hex for the padded bytes; defaults to the bundled test token's. The result feeds sendNight(tokenTypeHex).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contractAddress | Yes | The minting contract address (64 hex) | |
| domainSeparator | No | Separator string or 64 hex; defaults to 'nightgate:zswap-e2e' (the bundled test token) |