Package Exports
- @buidlerlabs/memejob-sdk-js
Readme
memejob-sdk-js
Welcome to the official memejob SDK documentation! This provides a powerful and easy-to-use interface for interacting with the memejob protocol on Hedera.
Overview
The SDK is designed to simplify the integration of memejob functionality into your applications. It provides a comprehensive set of tools for:
- Creating and managing tokens
- Executing buy and sell operations
- Managing allowances
- Managing token associations
Documentation
Full documentation page: memejob-sdk-js - Docs
Prerequisites
Before you begin, make sure you have:
- Node.js (v18 or higher)
- A package manager (npm, pnpm or other)
- A Hedera account with sufficient HBAR for transactions
Installation
$ npm i @buidlerlabs/memejob-sdk-js @hashgraph/sdk viemor
$ pnpm add @buidlerlabs/memejob-sdk-js @hashgraph/sdk viemUsage
Setup a new memejob client
import { AccountId, ContractId, PrivateKey } from "@hashgraph/sdk";
import {
CONTRACT_DEPLOYMENTS,
createAdapter,
getChain,
MJClient,
NativeAdapter,
} from "@buidlerlabs/memejob-sdk-js";
const contractId = ContractId.fromString(
CONTRACT_DEPLOYMENTS.mainnet.contractId
);
const client = new MJClient(
createAdapter(NativeAdapter, {
operator: {
accountId: AccountId.fromString("0.0.123456"),
privateKey: PrivateKey.fromStringED25519("<private-key>"),
},
}),
{
chain: getChain("mainnet"),
contractId,
}
);Create Your First Memejob Token
Here’s a simple example of how you can create a new MemeJob token by calling the client’s createToken method with the required parameters.
const token = await client.createToken({
name: "My awesome token",
symbol: "MAT",
memo: "ipfs://1q2w...3e4r",
});
console.log("MJToken instance:", token);