Facebook
From Chunky Kitten, 3 Years ago, written in Plain Text.
This paste is a reply to Untitled from Innocent Water Vole - go back
Embed
Viewing differences between Untitled and Re: Untitled
 { URL: https://testnet.ilgonexplorer.com/tx/0x288cb755bD8Ef6aF16602F932Bd020D2C6706608&apikey=1PX7RG8H4HTDY8X55YRMCAKPZK476M23ZR } { Status Code: 422, Headers {
    "Access-Control-Allow-Origin" =     (
        "*"
    );
    "Cache-Control" =     (
        "max-age=0, private, must-revalidate"
    );
    "Content-Type" =     (
        "text/html; charset=utf-8"
    );
    Date =     (
        "Tue, 23 Mar 2021 10:04:01 GMT"
    );
    Server =     (
        cloudflare
    );
    "access-control-allow-credentials" =     (
        true
    );
    "access-control-expose-headers" =     (
        ""
    );
    "cf-cache-status" =     (
        DYNAMIC
    );
    "cf-ray" =     (
        "6346d54e08381cea-BUD"
    );
    "cf-request-id" =     (
        090023a4c200001ceab4248000000001
    );
    "content-security-policy" =     (
        "connect-src 'self' ws://blockscout2:4000 wss://blockscout2:4000 https://priceapi.ilgonwallet.com;         default-src 'self';        script-src 'self' 'unsafe-inline' 'unsafe-eval';        style-src 'self' 'unsafe-inline' 'unsafe-eval' https://fonts.googleapis.com;        img-src 'self' * data:;        media-src 'self' * data:;        font-src 'self' 'unsafe-inline' 'unsafe-eval' https://fonts.gstatic.com data:;"
    );
    "cross-origin-window-policy" =     (
        deny
    );
    "expect-ct" =     (
        "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""
    );
    nel =     (
        "{\"report_to\":\"cf-nel\",\"max_age\":604800}"
    );
    "report-to" =     (
        "{\"max_age\":604800,\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=LT9mLflOCLQehEO%2BzcCENvHBfWylDY6R%2F2rPimI0RmBA9YMKAJLDRcQs840h%2FSt4dH6zEXpuGpR8EHmKaYFprkpr%2FD7QC1nFG2bWVYU5riu%2FDuT%2FbaOjuVxEm3QPsliib19M7cae\"}],\"group\":\"cf-nel\"}"
    );
    "x-content-type-options" =     (
        nosniff
    );
    "x-download-options" =     (
        noopen
    );
    "x-permitted-cross-domain-policies" =     (
        none
    );
    "x-request-id" =     (
        Fm7wlaMAnrO0dRkAtKVB
    );
    "x-xss-protection" =     (
        "1; mode=block"
    );
case .getTransactions(_, let server, let address, let startBlock, let endBlock, let sortOrder):
            switch server {
            case .main, .kovan, .ropsten, .rinkeby, .goerli:
                return .requestParameters(parameters: [
                    "module": "account",
                    "action": "txlist",
                    "address": address,
                    "startblock": startBlock,
                    "endblock": endBlock,
                    "sort": sortOrder.rawValue,
                    //"apikey": Constants.Credentials.etherscanKey,
                ], encoding: URLEncoding())
            case .classic, .callisto, .custom, .poa, .sokol, .xDai, .artis_sigma1, .artis_tau1, .binance_smart_chain, .binance_smart_chain_testnet, .heco, .heco_testnet, .fantom, .fantom_testnet, .avalanche, .avalanche_testnet, .polygon, .mumbai_testnet:
                return .requestParameters(parameters: [
                    "module": "account",
                    "action": "txlist",
                    "address": address,
                    "startblock": startBlock,
                    "endblock": endBlock,
                    "sort": sortOrder.rawValue,
                ], encoding: URLEncoding())
            
}