0.0.6 • Published 2 years ago

api-metaland v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Usage

npm i api-metaland -s

get reborn info

import apiMetaland from "api-metaland";

// get reborn list by owner adress
apiMetaland.reborn.list(adress).then((res) => {
        console.log(res)
});

// get reborn detail by id
apiMetaland.reborn.detail(id).then((res) => {
        console.log(res)
});

get egg info

import apiMetaland from "api-metaland";

// get reborn list by owner adress
apiMetaland.egg.list(adress).then((res) => {
        console.log(res)
});

// get reborn detail by id
apiMetaland.egg.detail(id).then((res) => {
        console.log(res)
});

get genesis info

import apiMetaland from "api-metaland";

// get reborn list by owner adress
apiMetaland.genesis.list(adress).then((res) => {
        console.log(res)
});

// get reborn detail by id
apiMetaland.genesis.detail(id).then((res) => {
        console.log(res)
});

get Hero info

import apiMetaland from "api-metaland";

// get hero list by owner adress
apiMetaland.hero.list(adress).then((res) => {
        console.log(res)
});

// get hero detail by id
apiMetaland.hero.detail(id).then((res) => {
        console.log(res)
});

get NFT assets(copper,meat,gmst)

import apiMetaland from "api-metaland";
apiMetaland.getAssets(id,roleIndex).then((res) => {
        console.log(res)
});

assets data Format

{
copper:0,
meat:0,
gmst:0
}

list data Format

{
	id: 123,
	isBelongNow: false,
	isMiningSeason1: true,
	isSaling: true,
	price: 0,
}

detail data Format

//Different types of detail return different content)
detail {
	//egg detail
	emergingTS: "1644543077",
	from: "9780",
	generation: "1",
	type: null,
	value: "22",


	//reborn detail
	charisma: "9",
	constitution: "21",
	cr: "12",
	dexterity: "12",
	from: "9631",
	generation: "1",
	hp: "81",
	intelligence: "2",
	monster: "Seven-Headed Hydra",
	size: "7",
	strength: "21",
	type: "9",
	wisdom: "13",

	//genesis detail
	critical: "3",
	dodge: "11",
	health_Point: "18",
	hit: "10",
	magical_damage_point: "14",
	magical_defence: "10",
	monsterName: "King Kong",
	parry: "9",
	physical_damage_point: "6",
	physical_defence: "9",
	prefix: "Hungry",
	profession: "Titan",
	suffix: "14",

	//hero detail
	class: 3,
	level:3,
	gold:0,
	attribute:{
		charisma: "15",
		constitution: "10",
		dexterity: "12",
		intelligence: "15",
		strength: "10",
		wisdom: "15",
	}
}
0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago