aptos-core
aptos-core copied to clipboard
Add cursor support to `/accounts/<addr>/resources`
Description
This PR makes /accounts/<addr>/resources
return the cursor in the header. This is the easiest way to mitigate this issue quickly in a backwards compatible way.
Test Plan
Run a local testnet:
cargo run -p aptos -- node run-local-testnet --force-restart --assume-yes --with-faucet
Get account resources with a limit:
curl 'http://127.0.0.1:8080/v1/accounts/0x1/resources?limit=1'