Chain API

This document explains how to use Chain APIs. Chain APIs supports onchain networks ethereum, optimism, and bnb and opBNB.

Endpoint

Real Server : https://api.lmtls.io/v1/chain/{ net | erc20 | erc721 | erc1155 }

Test Server : https://test-api.lmtls.io/v1/chain/{ net | erc20 | erc721 | erc1155 }

Using APIs

Token APIs support JsonRpc protocol. It uses /v1/chain path.

HTTP

 curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"transfer","params":[],"id":1}' http://hostname:6101/v1/chain/erc20
   "jsonrpc":"2.0",
	"id":1,
	"result":{
	    "resultCode":"200",
		"resultMessage":"Success",
		"resultData":{
		    "totalDifficulty":807264,
			"receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f8...",
			"extraData":"0xf90148a000000000000000000000000...",
			"numberRaw":"0xc515f",
			"baseFeePerGas":null,
			"sealFields":null,
			"miner":"0x868ff6f92fb6fd8ee485b73abe179a...",
			"number":807263,
			"gasLimit":9007199254740991,
			"gasUsed":0,
			"uncles":[],
			"sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312...",
			"nonceRaw":"0x0000000000000000",
			"sizeRaw":"0x350",
			"gasUsedRaw":"0x0",
			"timestamp":1639390480,
			"difficultyRaw":"0x1",
			"logsBloom":"0x00000000000000000000000000000000000000000...",
			"author":null,
			"totalDifficultyRaw":"0xc5160",
			"transactions":[],
			"nonce":0,
			"difficulty":1,
			"size":848,
			"transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b4...",
			"timestampRaw":"0x61b71d10",
			"stateRoot":"0x10ade90ebaceda5836392e6fa155edf62710230c98d8678...",
			"mixHash":"0x63746963616c2062797a616e74696e65206661756c742074...",
			"parentHash":"0x7f59ff30d5bc58c87e476b5c571e14993570c904ecb640...",
			"gasLimitRaw":"0x1fffffffffffff",
			"hash":"0x3a8dfa9d61625a73e7a237846c20a106e9b68a14c78b2f7910b3..."
		}
	}
}

Last updated