
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Information 📖
Some methods have names that differ from their api counterparts on the documentation as a result of consistency for the SDK.
Features ✨
Have a specific feature that you want added? Open a ticket in our discord and we can discuss building it for you!
Feedback/Issues 🤝
We welcome feedback and pull requests! Either open a ticket in our discord or open an issue on the repo and we can look into it!
yarn
yarn add module-sdk
npm
npm i module-sdk
After installing the SDK, import it using the following code
import { Module, ModuleConfig } from "module-sdk";
// Configuration object for the Module SDK.
const config: ModuleConfig = {
apiKey: "", // Module API Key. Not required, however rate limits will apply.
};
// Create a new instance of the SDK
const client = new Module(config);
All methods are exposed through their own classes. There are four usable classes as shown below
import { Module } from "module-sdk";
const client = new Module();
client.eth; // Ethereum Methods
client.nft; // NFT Methods
client.central; // Central Methods
client.metadata; // Metadata Methods
All methods return promises that either resolve or reject depending on the server response. Handle errors accordingly.
try {
await client.eth.getTransaction({} as GetTransaction);
} catch(err) {
console.log(err);
}
Refer below for information on each classes methods.
Getting azuki collection info
import { Module } from 'module-sdk';
const client = new Module({apiKey: ''});
const collectionInfo = await client.nft.getCollectionInfo({slug: 'azuki'});
Getting azuki contract abi
import { Module } from 'module-sdk';
const client = new Module({apiKey: ''});
const abi = await client.metadata.getContractABI({contractAddress: '0xed5af388653567af2f388e6224dc7c4b3241c544'});
FAQs
Module TypeScript SDK
We found that module-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.