I want to know how I can get list of transactions and transactions info for specific wallet address in polkadot.js/api, especially for kusama.
const provider = new WsProvider("wss://kusama-rpc.polkadot.io");
const api = await ApiPromise.create({ provider });
const response = await api.rpc.eth.getTransactionByHash(hash);
I am not sure if above code is for transactions, however it is not running and cause error.
UnhandledPromiseRejectionWarning: TypeError: api.rpc.eth.getTransactionByHash is not a function
How can I get transactions from wallet address in polkadot.js/api?