getL1TokenAddress
Returns the L1 token address equivalent for a L2 token address as they are not equal.
Usage
example.ts
import { client } from './config'
const address = await client.getL1TokenAddress({
token: '0x3e7676937A7E96CFB7616f255b9AD9FF47363D4b'
})
Returns
Address
Returns the L1 token address equivalent for a L2 token address.
Parameters
token
- Type:
Address
The address of the token on L2.
const address = await client.getL1TokenAddress({
token: '0x3e7676937A7E96CFB7616f255b9AD9FF47363D4b'
})