Create a Universal Signer to wrap any EVM or non-EVM signer (ethers, viem, Solana, etc.) into a chain-agnostic UniversalSigner object, so you can send cross-chain transactions via Push Chain without changing your on-chain code.
npm install
npm startThe example shows how to create Universal Signers with ethers.js for:
- Push Chain accounts using Push Chain testnet
- Ethereum accounts using Sepolia testnet
- Converting ethers signer to Universal Signer format
The example shows how to create Universal Signers with viem for:
- Push Chain accounts using Push Chain testnet
- Ethereum accounts using Sepolia testnet
- Converting viem wallet client to Universal Signer format
The example shows how to:
- Create Solana keypairs
- Convert Solana web3.js signer to Universal Signer format
@pushchain/core: For Universal Signer conversionethers: ^6.14.4 - For ethers.js implementationviem: ^2.31.3 - For viem implementation@solana/web3.js: For Solana implementation