Comments (2)
@tschubotz, this is my proposal for the API:
EDIT: Old proposal, see next one
Endpoint for retrieving connected Safes for an owner
Url
POST
/v1/safes/recovery/
Request POST data
Endpoint expects a json
with the owner/s to be queried. Owner/s must be checksummed, if not, response will be 422 Unprocessable Entity
{
"owners": ["safe_owner_1", "safe_owner_2", "..."]
}
Response data
Endpoint will return a list of checksummed Safe addresses the user is currently an owner of (not Safes that the user has previously been an owner of). HTTP Status Code will be 200 OK
if at least one Safe is found and 404 Not Found
if no Safe is found for that owner.
{
"safes": ["safe_address_1", "safe_address_2", "..."]
}
from safe-transaction-service.
My new proposal
Endpoint for retrieving connected Safes for an owner
Url
GET /v1/owners/<checksummed-address>/
Response data
Endpoint will return a list of checksummed Safe addresses the user is currently an owner of (not Safes that the user has previously been an owner of). HTTP Status Code will be 200 OK
if at least one Safe is found and 404 Not Found
if no Safe is found for that owner.
{
"safes": ["safe_address_1", "safe_address_2", "..."]
}
from safe-transaction-service.
Related Issues (20)
- Replace `unique_together` by `UniqueConstraint`
- Don't use checksummed address for internal processes
- Replace deprecated fields
- Add expiry to transaction proposals HOT 4
- Safes with a lot of transfers take a lot to load
- All-transactions cache can be broken due to deletion of transactions HOT 1
- BUG-1 HOT 1
- bug
- Indexer stucked due to decoding error
- Collapse migrations to avoid using deprecated fields
- Fix test `test_process_aa_transaction` HOT 1
- Refactor Tx Service page in safe docs
- Check if ETHEREUM_4337_BUNDLER_URL uses the same chainId as ETHEREUM_NODE_URL HOT 3
- Refactor delegate endpoint signatures to use EIP712 HOT 2
- help
- Return Safe deployments addresses HOT 1
- Remove `v1` `balances/usd` endpoint HOT 4
- Refactor endpoints caching into a class
- 4337: Index transactions for the 0.7 entrypoint
- [Trusted tokens] Process ENS names in tokenlist address fields
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from safe-transaction-service.