Skip to content

Instantly share code, notes, and snippets.

@0xqige
0xqige / claude-code-403-fix.md
Created March 10, 2026 08:52
How to Fix API Error 403 — Please run /login in Claude Code

How to Fix API Error 403 — "Please run /login"

Causes

This error typically occurs due to:

  • Expired or invalid authentication token
  • Network connectivity issues (firewall, VPN, proxy)
  • Region restrictions blocking the Anthropic API

@0xqige
0xqige / claimSMART.sol
Last active October 18, 2024 18:12
You only need to deploy ClaimSmartMain and continuously send Claim transactions to receive $SMART.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface SmartToken{
function claim() external ;
function prepapreClaim() external ;
function transfer(address to, uint256 amount)external returns (bool);
function balanceOf(address owner) external view returns (uint256 result);
@0xqige
0xqige / NFTMarket.sol
Last active October 30, 2024 03:15
The NFT Trading Market Smart Contract Example
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {EIP712} from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";