This API provides an easy method to fetch all NFTs belonging to a specific wallet & project regardless of whether or not the NFTs are staked.
- Run
npm install
. - Create a
.env
in the main directory and include the below code:
RPC=
MAINNET_CONTRACT_ADDRESS=
OPENSEA_API_KEY=
Please add your RPC, Mainnet Staking Contract Address and OpenSea API Key in this file.
- Navigate to
./routes/staking.js
. Change thegetStakedWulfz()
function to the desired read function (returning all staked NFTs). - Copy and paste the contract ABI in
./ABI/staking.json
. - Run
npm start
to start the API on localhost.
To test the API, go to https://localhost:8080/account/wallet_address
Done!