https://github.com/fox-one/cowallet-rpc
https://github.com/fox-one/cowallet-rpc
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fox-one/cowallet-rpc
- Owner: fox-one
- Created: 2023-10-12T07:08:38.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-01T13:36:48.000Z (about 2 years ago)
- Last Synced: 2025-12-19T12:59:02.927Z (7 months ago)
- Language: Go
- Size: 205 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cowallet-rpc
### Auth
直接把 Oauth keystore json 后放在 Header Authorization 里面
### get vault
```http request
GET /vaults?members=1&members=2&members=3&threshold=2
```
**Response**
```json5
{
"members": ["1", "2", "3"],
"threshold": 2,
"updated_at": "2021-08-10T07:00:00Z",
"assets": [
{
"id": "43d61dcd-9a3f-3b5c-9f0f-7b4d3f3e6f6d",
"hash": "43d61dcd9a3f3b5c9f0f7b4d3f3e6f6d",
"balance": "12",
"unspent": "10",
"signed": "2",
"requests": []
}
]
}
```
### list snapshots
```http request
GET /snapshots?members=1&members=2&members=3&threshold=2&offset=2021-08-10T07:00:00Z&limit=10
```
**Response**
```json5
[
{
"id": "f6ff4cfa-3761-4bd2-b196-dddccf4845fd",
"created_at": "2021-08-10T07:00:00Z",
"asset_id": "54c61a72-b982-4034-a556-0d99e3c21e39",
"amount": "100",
"memo": "foo"
}
]
```