Skip to content
LogoLogo

Unsafe

Unsafe APIs

Dial Seeds (Unsafe)

GET/dial_seeds

Dial a peer, this route in under unsafe, and has to manually enabled to use

Example: curl 'localhost:26657/dial_seeds?seeds=["[email protected]:26656","[email protected]:26656"]'

Query Parameters

peers
string[]

list of seed nodes to dial

Responses

Add Peers/Persistent Peers (unsafe)

GET/dial_peers

Set a persistent peer, this route in under unsafe, and has to manually enabled to use.

Example: curl 'localhost:26657/dial_peers?peers=["[email protected]:26656","[email protected]:26656"]&persistent=false'

Query Parameters

persistent
boolean

Have the peers you are dialing be persistent

Exampletrue
unconditional
boolean

Have the peers you are dialing be unconditional

Exampletrue
private
boolean

Have the peers you are dialing be private

Exampletrue
peers
string[]

array of peers to dial

Responses

Flush mempool of all unconfirmed transactions

GET/unsafe_flush_mempool

Flush flushes out the mempool. It acquires a read-lock, fetches all the transactions currently in the transaction store and removes each transaction from the store and all indexes and finally resets the cache.

Note, flushing the mempool may leave the mempool in an inconsistent state.

Responses