Constructors

Properties

Methods

Constructors

Properties

abi: readonly [
    {
        constant: true;
        inputs: readonly [];
        name: "name";
        outputs: readonly [{ name: ""; type: "bytes32" }];
        payable: false;
        stateMutability: "view";
        type: "function";
    },
    {
        constant: false;
        inputs: readonly [
            { name: "spender"; type: "address" },
            { name: "value"; type: "uint256" },
        ];
        name: "approve";
        outputs: readonly [{ name: ""; type: "bool" }];
        payable: false;
        stateMutability: "nonpayable";
        type: "function";
    },
    {
        constant: true;
        inputs: readonly [];
        name: "totalSupply";
        outputs: readonly [{ name: ""; type: "uint256" }];
        payable: false;
        stateMutability: "view";
        type: "function";
    },
    {
        constant: false;
        inputs: readonly [
            { name: "from"; type: "address" },
            { name: "to"; type: "address" },
            { name: "value"; type: "uint256" },
        ];
        name: "transferFrom";
        outputs: readonly [{ name: ""; type: "bool" }];
        payable: false;
        stateMutability: "nonpayable";
        type: "function";
    },
    {
        constant: true;
        inputs: readonly [];
        name: "decimals";
        outputs: readonly [{ name: ""; type: "uint8" }];
        payable: false;
        stateMutability: "view";
        type: "function";
    },
    {
        constant: true;
        inputs: readonly [{ name: "who"; type: "address" }];
        name: "balanceOf";
        outputs: readonly [{ name: ""; type: "uint256" }];
        payable: false;
        stateMutability: "view";
        type: "function";
    },
    {
        constant: true;
        inputs: readonly [];
        name: "symbol";
        outputs: readonly [{ name: ""; type: "bytes32" }];
        payable: false;
        stateMutability: "view";
        type: "function";
    },
    {
        constant: false;
        inputs: readonly [
            { name: "to"; type: "address" },
            { name: "value"; type: "uint256" },
        ];
        name: "transfer";
        outputs: readonly [{ name: ""; type: "bool" }];
        payable: false;
        stateMutability: "nonpayable";
        type: "function";
    },
    {
        constant: true;
        inputs: readonly [
            { name: "owner"; type: "address" },
            { name: "spender"; type: "address" },
        ];
        name: "allowance";
        outputs: readonly [{ name: ""; type: "uint256" }];
        payable: false;
        stateMutability: "view";
        type: "function";
    },
    {
        inputs: readonly [
            { name: "_name"; type: "string" },
            { name: "_symbol"; type: "string" },
            { name: "_decimals"; type: "uint8" },
        ];
        payable: false;
        stateMutability: "nonpayable";
        type: "constructor";
    },
    {
        anonymous: false;
        inputs: readonly [
            { indexed: true; name: "owner"; type: "address" },
            { indexed: true; name: "spender"; type: "address" },
            { indexed: false; name: "value"; type: "uint256" },
        ];
        name: "Approval";
        type: "event";
    },
    {
        anonymous: false;
        inputs: readonly [
            { indexed: true; name: "from"; type: "address" },
            { indexed: true; name: "to"; type: "address" },
            { indexed: false; name: "value"; type: "uint256" },
        ];
        name: "Transfer";
        type: "event";
    },
] = _abi

Methods

  • Parameters

    • address: string
    • signerOrProvider: Provider | Signer

    Returns ERC20Bytes