Skip to content

API Requests (GET, POST)

Chain of Industry edited this page Sep 8, 2022 · 7 revisions

https://api.elrond.com/
https://gateway-docs.elrond.com/

 string url = "https://devnet-api.elrond.com/accounts/erd1jza9qqw0l24svfmm2u8wj24gdf84hksd5xrctk0s0a36leyqptgs5whlhf";

            ElrondUnityTools.Manager.GetRequest(url, CompleteMethod);


            url = "https://devnet-gateway.elrond.com/transaction/cost";

            string json = "{" +
                "\"nonce\":0," +
                "\"sender\":\"erd1lgp3ezf2wfkejnu0sm5y9g4x3ad05gr8lfc0g69vvdwwj0wjv0gscv2w4s\"," +
                "\"receiver\":\"erd1jza9qqw0l24svfmm2u8wj24gdf84hksd5xrctk0s0a36leyqptgs5whlhf\"," +
                "\"value\":\"1000000000000000\"," +
                "\"gasPrice\":1000000000," +
                "\"gasLimit\":89000," +
                "\"data\":\"WW91IHNlZSB0aGlzPw==\"," +
                "\"chainId\":\"D\"," +
                "\"version\":1," +
                "\"signature\":\"72ddcb105778051ea2a6f92b3869e2110d50f708708a2a3fe842014c062152c8aff78dae39868d97d25831915d3c60f4acfc749dfa8bdfa395f3769d2e231a05\"" +
                "}";

            ElrondUnityTools.Manager.PostRequest(url, json, CompleteMethod);
Clone this wiki locally