본문 바로가기

Web3

(3)
opensea에 메타데이터json 보기 opensea에 올라가 있는 nft의 MetaData를 엿보자 1. OpenSea에서 맘에 드는 NFT 클릭 2. 해당 NFT의 details을 찾는다 위 사진과 같이 Token ID에 링크가 걸려 있는 경우 해당 링크를 누르면 Json 파일로 이동되는 경우가 있다. 한번씩 눌러보자 3. 이제 필요한 정보는 모두 찾았다. docs를 살펴보자 https://docs.opensea.io/docs/4-debugging-your-metadata - api.opensea.io/asset/{Contract Address}/{Token ID} 우리에게 필요한 api다 - 위 예제 NFT로 치면 아래와 같다 api.opensea.io/asset/0xC6B2Db94BD37C1C79012fe89454a4259137EEfE..
[web3j] getTransactionCount https://ethereum.stackexchange.com/questions/115600/web3js-gettransactioncount-always-return-1 getTransactionCount: " + txcount ); }); Always return 1, but my contract has lot of" data-og-host="ethereum.stackexchange.com" data-og-source-url="https://ethereum.stackexchange.com/questions/115600/web3js-gettransactioncount-always-return-1" data-og-url="https://ethereum.stackexchange.com/questions/11..
web3j (web3 java)에서 isAddress 쓰기 import org.web3j.crypto.Keys; import org.web3j.crypto.WalletUtils; ... public boolean isAddress(String address) { if (!WalletUtils.isValidAddress(address)) return false; // lower case 는 컨트렉트에서 자동으로 checksum으로 변환된다 따라서 true로 판단한다 if (address.equals(address.toLowerCase())) return true; if (address.equals(Keys.toChecksumAddress(address))) return true; return false; } WalletUtils.isValidAddress는 그냥 ..