derive_token_type
Compute the raw token type from a minting contract address and domain separator so minted balances can be transferred and used with send and swap tools.
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 is the tokenType of send_token and the swap tools.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contractAddress": "<contractAddress>"
},
"name": "derive_token_type"
}
}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) |