
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
@polymarket/abstract-signer
Advanced tools
Abstraction over the ethers v5 Wallet, ethers v5 JsonRpcSigner or Viem WalletClient
Abstraction over the ethers v5 Wallet, ethers v5 JsonRpcSigner or Viem WalletClient
pnpm install @polymarket/abstract-signer
import { ethers } from "ethers";
import { createWalletClient, http} from "viem";
import { privateKeyToAccount } from 'viem/accounts';
import { createAbstractSigner, IAbstractSigner, Transaction } from "@polymarket/abstract-signer";
const chainId = parseInt(`${process.env.CHAIN_ID}`);
// ethers
// Instantiate an ethers Wallet
const provider = new ethers.providers.JsonRpcProvider(`${process.env.RPC_URL}`);
const pk = new ethers.Wallet(`${process.env.PK}`);
const wallet = pk.connect(provider);
// viem
// Instantiate a Viem wallet
const account = privateKeyToAccount(`${process.env.PK}`);
const wallet = createWalletClient({
account: account,
transport: http(`${process.env.RPC_URL}`)
});
const abstractSigner: IAbstractSigner = createAbstractSigner(chainId, wallet);
const tx : Transaction = {
to: await abstractSigner.getAddress(),
value: 10000000000000000n,
gasPrice: 100000000000n,
};
const txHash = await abstractSigner.sendTransaction(tx);
console.log(`Tx hash: ${txHash}`);
const receipt = await abstractSigner.waitTillMined(txHash);
console.log(receipt);
FAQs
Abstraction over the ethers v5 Wallet, ethers v5 JsonRpcSigner or Viem WalletClient
The npm package @polymarket/abstract-signer receives a total of 129 weekly downloads. As such, @polymarket/abstract-signer popularity was classified as not popular.
We found that @polymarket/abstract-signer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 25 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.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.