Returns tips that are ideal for attaching a block.
GET/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
code stringrequired
The application error code.
message stringrequired
The error reason.
{
"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
code stringrequired
The application error code.
message stringrequired
The error reason.
{
"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
code stringrequired
The application error code.
message stringrequired
The error reason.
{
"error": {
"code": 503,
"message": "service unavailable"
}
}
Loading...