
Research
/Security News
PolinRider Spreads Through Compromised GitHub Accounts and Packagist
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.
@chainsafe/filecoin-requests-builder
Advanced tools
Generate real Filecoin and Ethereum JSON-RPC method definitions with up-to-date parameters from live chain state.
Generate real Filecoin and Ethereum JSON-RPC method definitions with up-to-date parameters from live chain state.
npm install filecoin-requests-builder
You can either automatically fetch context from an RPC endpoint, or manually provide parameters yourself.
import { fetchRpcContext, buildRequests } from 'filecoin-requests-builder';
const rpcUrl = 'https://fil-rpc.url';
const context = await fetchRpcContext(rpcUrl);
const requests = buildRequests(context);
// Call any method
sendRpcRequest(rpcUrl, {
name: 'eth_getBalance',
params: requests['eth_getBalance'].params
});
import { buildRequests } from 'filecoin-requests-builder';
const context = {
ethAddress: '0x1234abcd...',
ethZeroAddress: '0x0000000000000000000000000000000000000000',
ethBlockHash: '0xabcde123...',
ethTransactionHash: '0xdef456...',
ethBlockNumber: '0x1a', // в hex-формате
filecoinAddress: 'f1xyzabcd...',
filecoinActorId: 'f01234',
filecoinTipsetHeight: 123456,
filecoinTipsetKey: [{ '/': 'bafykeyexample...' }],
filecoinMessageCid: { '/': 'bafymsgcidexample...' },
filecoinMinerId: 'f01234',
filecoinMultisigAddress: 'f024757',
ethContractAddress: '0xcontractabcd...',
ethContractCallData: '0xcalldataabcd...',
};
const requests = buildRequests(context);
fetchRpcContext(rpcUrl: string): Promise<RpcContext>Fetches current addresses, IDs, and block data to use in JSON-RPC method definitions.
buildRequests(context: RpcContext): RpcMethodMapReturns an object where each key is a method name (e.g. eth_getBalance) and the value is:
{ params: any[] }
FAQs
Generate real Filecoin and Ethereum JSON-RPC method definitions with up-to-date parameters from live chain state.
The npm package @chainsafe/filecoin-requests-builder receives a total of 0 weekly downloads. As such, @chainsafe/filecoin-requests-builder popularity was classified as not popular.
We found that @chainsafe/filecoin-requests-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.

Company News
Allow myself to introduce... myself.