
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@meetusvr/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.
We found that @meetusvr/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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.