Skip to main content
Set the same EVM address for all EVM-compatible chains in one call instead of multiple individual calls.
Supported Chains: See supported EVM-compatible Chains

Method

setDefaultEvmAddress(subname: string, value: string): Promise<void>
Parameters:
  • subname - Full subname (e.g., ‘alice.example.eth’)
  • value - EVM wallet address

Usage

import { createOffchainClient } from '@thenamespace/offchain-manager';

const client = createOffchainClient();
client.setDefaultApiKey('your-api-key');

// Set same address for all EVM chains
await client.setDefaultEvmAddress('alice.example.eth', '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045');

Before vs After

  • Before (Multiple calls)
  • After (Single call)
await client.addAddressRecord('alice.example.eth', ChainName.Ethereum, '0x...');
await client.addAddressRecord('alice.example.eth', ChainName.Arbitrum, '0x...');
await client.addAddressRecord('alice.example.eth', ChainName.Optimism, '0x...');
// ... many more calls for each EVM chain
I