
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@getsafle/transaction-controller
Advanced tools
This SDK returns the list of all the transactions done by a particular address. The transactions include both incoming and outgoing transactions. Also provided is a functionality to convert the unreadable EVM transaction data to human readable one.
To install this SDK,
npm install --save @getsafle/transactions-controller
Initialize the constructor,
const safleTransactionsController = require('@getsafle/transactions-controller');
const transactionsController = new safleTransactionsController.TransactionController();
Get incoming transactions
This function returns the list of all the incoming transactions.
const incomingTransactions= await transactionsController.getIncomingTransactions({ address, fromBlock, network, apiKey });
address - user wallet public address,fromBlock - Start block numbernetwork - ethereum network selected/ chain selectedapiKey - etherscan/polygonscan api key(based on the network selected)Get outgoing transactions
This function returns the list of all the outgoing transactions.
const outgoingTransactions= await transactionsController.getOutgoingTransactions({ address, fromBlock, network, apiKey });
address - user wallet public address,fromBlock - Start block numbernetwork - ethereum network selected/ chain selectedapiKey - etherscan/polygonscan api key(based on the network selected)Get all transactions
This function returns the list of all the transactions on an address (incoming + outgoing)
const transactions= await transactionsController.getTransactions({ address, fromBlock, network, apiKey });
address - user wallet public address,fromBlock - Start block numbernetwork - ethereum network selected/ chain selectedapiKey - etherscan/polygonscan api key(based on the network selected)Analyze Transactions
This function accepts an EVM transaction hash and analyzes the transaction to output human readable values.
const result = await transactionsController.analyzeTransaction(transactionHash, rpcUrl, network);
transactionHash - The transaction hash for the transaction to be analyzed.rpcUrl - RPC URL of the chain of the transaction hash passed.network - Network to be used to query the safleId. valid inputs - mainnet or testnetGet Transaction Type
This function returns the type of transaction based on the contract function called.
const transactionType = transactionsController.getTransactionType(functionInput, rpcUrl);
functionInput - The function name and the input parameter datatype in string format. eg. transfer(address, uint256).rpcUrl - RPC URL of the chain of the transaction hash passed.Chains supported
ethereumpolygonbscbitcoinavalanche1.9.3 (2023-03-27)
FAQs
Getsafle transaction controller
The npm package @getsafle/transaction-controller receives a total of 2 weekly downloads. As such, @getsafle/transaction-controller popularity was classified as not popular.
We found that @getsafle/transaction-controller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.