http API
Last updated
Last updated
Successful operation
POST /transaction/generate HTTP/1.1
Host: localhost:3000
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"to": "text",
"amount": 1
}
Successful operation
No content
Successful operation
POST /transaction/init HTTP/1.1
Host: localhost:3000
Content-Type: application/json
Accept: */*
Content-Length: 93
{
"from": "text",
"to": "text",
"amount": 1,
"fee": 1,
"timestamp": 1,
"hash": "text",
"signature": "text"
}
Successful operation
No content
Successful operation
GET /transaction/by-address/{address} HTTP/1.1
Host: localhost:3000
Accept: */*
Successful operation
No content
Successful operation
GET /transaction/count-by-address/{address} HTTP/1.1
Host: localhost:3000
Accept: */*
Successful operation
No content
^(http|https)://.*$
Successful operation
POST /peer HTTP/1.1
Host: localhost:3000
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"address": "https://example.com"
}
Successful operation
No content
OK
GET /block/{id} HTTP/1.1
Host: localhost:3000
Accept: */*
OK
No content
OK
GET /balance/{address} HTTP/1.1
Host: localhost:3000
Accept: */*
OK
OK
GET /block/chain HTTP/1.1
Host: localhost:3000
Accept: */*
OK
No content
OK
GET /secure/remove-chain-to/{blockId} HTTP/1.1
Host: localhost:3000
authorization: text
Accept: */*
OK
No content
{
"address": "text",
"balance": 1,
"burned": 1,
"affectedBlockId": 1,
"createdAt": "text",
"updatedAt": "text"
}