Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@meetusvr/blockchain-sdk
Advanced tools
Meetusvr blockchain SDK to interact with smart contracts and call blockchain specific APIs for NFT minting, NFT marketplace and token reward system.
MeetusVR-blockchain-sdk
SDK is divided into multiple services
Buy Building example
const MockUSDT = "0xEe189f1558924f26cba1281E6898B0CCe8b2f657";
const MeetusVRBuilding = "0x53C5dc153acD44274832c0B1eEDf2b1A48358ba1";
const MeetusVRRoom = "0x8f5Eb4A827b0084066D9458e88930608CEC02F6A";
const MeetusVRSale = "0x0f9d4Ca17445CABb0Db1E71Fe6979C4dccB73F51";
const MeetusVRReward = "0x1F106EA0Db7429DFA5CdF2a12389923dEc59e1C7";
const provider = new providers.JsonRpcProvider("RPC_URL");
const wallet = new Wallet("PrivateKey", provider);
const sdk = new MeetusVRBlockchainSDK({
buildingNFTAddress: MeetusVRBuilding,
saleAddress: MeetusVRSale,
rewardAddress: MeetusVRReward,
roomNFTAddress: MeetusVRRoom,
defaultPaymentTokenAddress: MockUSDT,
providerOrSigner: wallet,
});
const tokenSaleData = await api.getTokenSaleData(userAddress);
const { approveAction, isApproved, buyAction } =
sdk.buildingService.buyBuilding({
tokenId: tokenSaleData.tokenId,
paymentToken: tokenSaleData.paymentToken,
price: tokenSaleData.price,
saleType: tokenSaleData.saleType,
signature: tokenSaleData.signature,
deadline: tokenSaleData.deadline,
});
if (!(await isApproved())) {
await approveAction();
}
const result = await buyAction("UserAddress");
Claim Room Reward
const tokenRewardClaims = api.getTokenRewardClaims(userAddress);
const rewardClaim = tokenRewardClaims[0];
const claimRoomResult = await sdk.roomService.claimReward({
user: rewardClaim.user,
amount: rewardClaim.amount,
nonce: rewardClaim.nonce,
token: rewardClaim.token,
tokenId: rewardClaim.tokenId,
tokenStandard: rewardClaim.tokenStandard,
claimMethod: rewardClaim.claimMethod,
signatureTimestamp: rewardClaim.signatureTimestamp,
signatures: rewardClaim.signatures,
deadline: rewardClaim.deadline,
});
FAQs
Meetusvr blockchain SDK to interact with smart contracts and call blockchain specific APIs for NFT minting, NFT marketplace and token reward system.
The npm package @meetusvr/blockchain-sdk receives a total of 0 weekly downloads. As such, @meetusvr/blockchain-sdk popularity was classified as not popular.
We found that @meetusvr/blockchain-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.