borrowLendUserState Info Endpoint Method
Parâmetros
tipo
cadeia de caracteres
OBRIGATÓRIO
Carregando...
user
cadeia de caracteres
OBRIGATÓRIO
Carregando...
Devoluções
tokenToState
matriz
Carregando...
saúde
cadeia de caracteres
Carregando...
healthFactor
null
Carregando...
Pedido
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"borrowLendUserState","user":"0x31ca8395cf837de08b24da3f660e77761dfb974b"}'
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"borrowLendUserState","user":"0x31ca8395cf837de08b24da3f660e77761dfb974b"}'
1var myHeaders = new Headers();2myHeaders.acrescentar("Content-Type", "application/json");34var raw = JSON.stringify({5"type": "borrowLendUserState",6"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"7});89var requestOptions = {10método: 'POST',11cabeçalhos: myHeaders,12body: raw,13redirect: 'follow'14};1516fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)17.then(response => response.text())18.then(result => console.log(result))19.catch(error => console.log('error', error));20
1var myHeaders = new Headers();2myHeaders.acrescentar("Content-Type", "application/json");34var raw = JSON.stringify({5"type": "borrowLendUserState",6"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"7});89var requestOptions = {10método: 'POST',11cabeçalhos: myHeaders,12body: raw,13redirect: 'follow'14};1516fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)17.then(response => response.text())18.then(result => console.log(result))19.catch(error => console.log('error', error));20
1importar pedidos2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56carga útil = json.dumps({7"type": "borrowLendUserState",8"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"9})10cabeçalhos = {11'Content-Type': 'application/json'12}1314resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)1516imprimir(resposta.texto)17
1importar pedidos2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56carga útil = json.dumps({7"type": "borrowLendUserState",8"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"9})10cabeçalhos = {11'Content-Type': 'application/json'12}1314resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)1516imprimir(resposta.texto)17
1exigir "uri"2require "json"3necessita de "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = Net::HTTP.novo(url.host, url.porta)8https.use_ssl = true910pedido = Líquido::HTTP::POST.novo(url)11pedido["Content-Type"] = "application/json"12request.body = JSON.dump({13"type": "borrowLendUserState",14"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"15})1617resposta = https.pedido(pedido)18insere a resposta.read_body19
1exigir "uri"2require "json"3necessita de "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = Net::HTTP.novo(url.host, url.porta)8https.use_ssl = true910pedido = Líquido::HTTP::POST.novo(url)11pedido["Content-Type"] = "application/json"12request.body = JSON.dump({13"type": "borrowLendUserState",14"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"15})1617resposta = https.pedido(pedido)18insere a resposta.read_body19
Ainda não tem uma conta?
Crieendpoint seuendpoint Quicknode endpoint segundos e comece a desenvolver
Comece gratuitamente