cURL
curl --request POST \
--url http://localhost:4100/v1/agents/session/nonce \
--header 'Content-Type: application/json' \
--data '
{
"address": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({address: '<string>'})
};
fetch('http://localhost:4100/v1/agents/session/nonce', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"nonce": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Agents
Post v1agentssessionnonce
cURL
curl --request POST \
--url http://localhost:4100/v1/agents/session/nonce \
--header 'Content-Type: application/json' \
--data '
{
"address": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({address: '<string>'})
};
fetch('http://localhost:4100/v1/agents/session/nonce', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"nonce": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}