Supported Chains: See supported EVM-compatible Chains
Method
subname- Full subname (e.g., ‘alice.example.eth’)value- EVM wallet address
Usage
Before vs After
- Before (Multiple calls)
- After (Single call)
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
One address update across every supported EVM chain.
setDefaultEvmAddress(subname: string, value: string): Promise<void>
subname - Full subname (e.g., ‘alice.example.eth’)value - EVM wallet addressimport { 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');
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
await client.setDefaultEvmAddress('alice.example.eth', '0x...');
Was this page helpful?
