Examples for all the utility functions of core Push Chain SDK.
npm install
npm startThe example shows how to:
- Convert origin addresses to executor addresses
- Convert addresses to chain-agnostic format
- Create Universal Accounts from addresses
- Convert chain-agnostic addresses back to native format
- Create Universal Accounts from keypairs
The example shows how to:
- Convert different signer types to Universal Signers
- Handle signer conversions for multiple chains
The example shows how to:
- Generate transaction URLs for Push Chain Explorer
- List all available explorer URLs
The example shows how to:
- Get chain names from chain namespaces
- Handle chain-specific conversions
@pushchain/core: For Push Chain utilitiesethers: ^6.14.4 - For ethers.js examplesviem: ^2.31.3 - For viem examples