I hereby claim:
- I am alberthu16 on github.
- I am alberthu (https://keybase.io/alberthu) on keybase.
- I have a public key ASDTYDGLSXFSU3sfcoJV5nn25DVIapVWtnmIMq9xa-p05Ao
To claim this, I am signing this object: {
| { | |
| "name": "base sepolia testnet nft #1", | |
| "description": "description", | |
| "image": "https://i.seadn.io/gcs/files/7fae54c8569345d1efdb6b4629d935d5.png?auto=format&dpr=1&w=3840", | |
| "properties": { "background": "Pink", "face": "Chill Cig" }, | |
| "attributes": [ { "trait_type": "background", "value": "Pink" }, { "trait_type": "face", "value": "Chill Cig" }] | |
| } |
| // npm install --save-dev alchemy-sdk | |
| import { Alchemy } from 'alchemy-sdk'; | |
| const alchemy = new Alchemy(); | |
| // See Vitalik's NFTs! | |
| alchemy.nft.getNftsForOwner('vitalik.eth').then(console.log); |
| // npm install --save-dev alchemy-sdk | |
| import { Network, Alchemy } from 'alchemy-sdk'; | |
| // Optional Config object, defaults to demo api key and eth mainnet. | |
| const settings = { | |
| apiKey: 'demo', // Replace with your Alchemy API Key! | |
| network: Network.ETH_MAINNET, // Replace with your network. | |
| }; |
| // npm install --save-dev alchemy-sdk | |
| // https://www.alchemy.com/sdk | |
| import { Alchemy } from 'alchemy-sdk'; | |
| // Set up the Alchemy RPC provider ⛓ | |
| const config = { | |
| apiKey: "demo", // get your own API key 😤 -> https://alchemy.com/?a=b6ad695ab6 | |
| network: "eth-mainnet", | |
| } |
| // watch-for-mints.js | |
| // npm install @alch/alchemy-web3 | |
| const { createAlchemyWeb3 } = require("@alch/alchemy-web3"); | |
| // TODO: Replace this with your key. | |
| const alchemyApiKey = "your api key"; | |
| // NFT mints emit Transfer events with "from" set to 0x0. |
| //SPDX-License-Identifier: Unlicense | |
| pragma solidity ^0.8.0; | |
| import "hardhat/console.sol"; | |
| contract GasLimits { | |
| constructor() {} | |
| function burnGas(uint256 gas) public view returns (uint256) { | |
| uint256 endGas = gasleft() - gas; |
I hereby claim:
To claim this, I am signing this object: {
| import binascii | |
| hex_string = "49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d" | |
| hex_bytes = hex_string.decode("hex") | |
| base_64_string = binascii.b2a_base64(hex_bytes)[:-1] |
All requests should include a 'Authorization' header with an API key which will be provided.
Headers['Authorization'] = "Token token=abcabcabc"
If you don't have a token, email [email protected] to get one!
All responses will be provided in JSON format.
| # answer.rb | |
| class Answer < ApplicationRecord | |
| belongs_to :user, counter_cache: true | |
| end | |
| # user.rb | |
| class User < ApplicationRecord | |
| has_many :answers | |
| end |