Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 1.37 KB

README.md

File metadata and controls

25 lines (22 loc) · 1.37 KB

SparkAR-CryptoKittis

Make a selfie with your lovely CryptoKitties

Fetch blockchain data

  • Load CryptoKitties by using CK API
https://api.cryptokitties.co/kitties?owner_wallet_address=[YOUR-PUBLIC-ETH-WALLET-ADDRESS]&limit=[NUMBER-OF-KITTIES]&offset=[START-FROM-WHICH-KITTY]
https://api.opensea.io/api/v1/assets/?format=json&order_by=current_price&order_direction=asc&owner=[YOUR-PUBLIC-ETH-WALLET-ADDRESS]
https://api.etherscan.io/api?module=account&action=balance&address=[YOUR-PUBLIC-ETH-WALLET-ADDRESS]

Example in file

const url = 'https://api.cryptokitties.co/kitties?owner_wallet_address=0x12a0E25E62C1dBD32E505446062B26AECB65F028&limit=4&offset=1';

MUST DO

Don't forget to Whitelist the api.cryptokitties.co or other api domain in Capabilities. If you want to display Kitties PNG as externalTexure source, remember to Whitelist the img.cryptokitties.co as well.