Skip to content

Commit

Permalink
Added search RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
dadofsambonzuki authored Oct 13, 2024
1 parent 052d2a2 commit d81f07e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/admin-api/methods.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
#General

## search

- token
- query

```bash
curl --data-binary '{"jsonrpc": "2.0", "method": "search", "params": {"password": "xxx", "query": "query", "id": 1}' https://api.btcmap.org/rpc
```
Example response to a `berlin` query param :

```json
{
"id": 1,
"jsonrpc": "2.0",
"result":[
{
"id": 155,
"name": "Bitcoin Berlin El Salvador",
"type": "area"
},
{
"id": 54,
"name": "Berlin 2140",
"type": "area"
},
{
"id": 257,
"name": "Einundzwanzig Berlin",
"type": "area"
},
{
"id": 77,
"name": "Bitcoin Berlin El Salvador",
"type": "area"
}
]
}
```

# Elements

## getelement
Expand Down

0 comments on commit d81f07e

Please sign in to comment.