Circle Programmable Wallets is a Wallet as a Service that simplifies creating and managing secure web3 wallets and their private keys. They extend wallet functionality with approachable user flows, provide optionality for developer and user infrastructure solutions, and enable seamless smart contract integration.
To use CIRCLE with expand.network SDK, follow these steps:-
Step 1: Installation
User needs to install the expand.network SDK using the following command:
// Preparing the approve transaction from expand.networkconstprepareApproveTx=awaitprepareTransaction('https://api.expand.network/fungibletoken/approve', {"from":"SENDER_ADDRESS","tokenAddress":"0xdc31Ee1784292379Fbb2964b3B9C4124D8F89C60","to":"RECEIVER_ADDRESS","amount":"10000","gas":"25000","xApiKey":'YOUR_API_KEY'//Replace with your API key });
Step 4: Sign Transaction
// Sign the transaction locally using sdk clientconstsignedTx=awaitwallet.signTransaction(prepareApproveTx);console.log("signedTx: ",signedTx);
Step 5: Send Transaction
// Send the signed transactionconsttx=awaitwallet.sendTransaction(signedTx);console.log("sent tx: ", tx);
Sample code to approve a fungible token using Circle: