Returns tips that are ideal for attaching a block.
GEThttp://127.0.0.1:14265/api/core/v2/tips
Returns tips that are ideal for attaching a block. The tips can be considered as non-lazy
and are therefore ideal for attaching a block.
Request
Responses
- 200
- 403
- 500
- 503
Successful operation.
- application/json
- Schema
- Example (from schema)
- default
Schema
tips string[]required
The block identifiers that can be used to a attach a block to. Hex-encoded with 0x prefix.
{
"tips": [
"string"
]
}
{
"tips": [
"0xf532a53545103276b46876c473846d98648ee418468bce76df4868648dd73e5d",
"0x78d546b46aec4557872139a48f66bc567687e8413578a14323548732358914a2"
]
}
Unsuccessful operation: indicates that the endpoint is not available for public use.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 403,
"message": "not available for public use"
}
}
Unsuccessful operation: indicates that an unexpected, internal server error happened which prevented the node from fulfilling the request.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 500,
"message": "internal server error"
}
}
Unsuccessful operation: indicates that there are no tips available or the node isn´t synced.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 503,
"message": "service unavailable"
}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'http://127.0.0.1:14265/api/core/v2/tips' \
-H 'Accept: application/json'
ResponseClear