• Wraps useContractWrite with abi set to erc20ABI and functionName set to "transferFrom".

    Type Parameters

    Parameters

    • config: TMode extends "prepared"
          ? MutationConfig<WriteContractResult, Error, UseContractWriteArgs<readonly [{
              inputs: readonly [({ readonly name: "owner"; readonly type: "address"; readonly indexed: true; }), ({ readonly name: "spender"; readonly type: "address"; readonly indexed: true; }), ({ readonly name: "value"; readonly type: "uint256"; readonly indexed: false; })];
              name: "Approval";
              type: "event";
          }, {
              inputs: readonly [({ readonly name: "from"; readonly type: "address"; readonly indexed: true; }), ({ readonly name: "to"; readonly type: "address"; readonly indexed: true; }), ({ readonly name: "value"; readonly type: "uint256"; readonly indexed: false; })];
              name: "Transfer";
              type: "event";
          }, {
              inputs: readonly [({ readonly name: "owner"; readonly type: "address"; }), ({ readonly name: "spender"; readonly type: "address"; })];
              name: "allowance";
              outputs: readonly [({ readonly name: ""; readonly type: "uint256"; })];
              stateMutability: "view";
              type: "function";
          }, {
              inputs: readonly [({ readonly name: "spender"; readonly type: "address"; }), ({ readonly name: "amount"; readonly type: "uint256"; })];
              name: "approve";
              outputs: readonly [({ readonly name: ""; readonly type: "bool"; })];
              stateMutability: "nonpayable";
              type: "function";
          }, {
              inputs: readonly [({ readonly name: "account"; readonly type: "address"; })];
              name: "balanceOf";
              outputs: readonly [({ readonly name: ""; readonly type: "uint256"; })];
              stateMutability: "view";
              type: "function";
          }, {
              inputs: readonly [];
              name: "decimals";
              outputs: readonly [({ readonly name: ""; readonly type: "uint8"; })];
              stateMutability: "view";
              type: "function";
          }, {
              inputs: readonly [];
              name: "name";
              outputs: readonly [({ readonly name: ""; readonly type: "string"; })];
              stateMutability: "view";
              type: "function";
          }, {
              inputs: readonly [];
              name: "symbol";
              outputs: readonly [({ readonly name: ""; readonly type: "string"; })];
              stateMutability: "view";
              type: "function";
          }, {
              inputs: readonly [];
              name: "totalSupply";
              outputs: readonly [({ readonly name: ""; readonly type: "uint256"; })];
              stateMutability: "view";
              type: "function";
          }, {
              inputs: readonly [({ readonly name: "recipient"; readonly type: "address"; }), ({ readonly name: "amount"; readonly type: "uint256"; })];
              name: "transfer";
              outputs: readonly [({ readonly name: ""; readonly type: "bool"; })];
              stateMutability: "nonpayable";
              type: "function";
          }, {
              inputs: readonly [({ readonly name: "sender"; readonly type: "address"; }), ({ readonly name: "recipient"; readonly type: "address"; }), ({ readonly name: "amount"; readonly type: "uint256"; })];
              name: "transferFrom";
              outputs: readonly [({ readonly name: ""; readonly type: "bool"; })];
              stateMutability: "nonpayable";
              type: "function";
          }], "transferFrom", TMode>> & {
              mode?: TMode;
          } & (TMode extends "prepared"
              ? UseContractWritePreparedArgs<readonly [{
                  inputs: readonly [({ readonly name: "owner"; readonly type: "address"; readonly indexed: true; }), ({ readonly name: "spender"; readonly type: "address"; readonly indexed: true; }), ({ readonly name: "value"; readonly type: "uint256"; readonly indexed: false; })];
                  name: "Approval";
                  type: "event";
              }, {
                  inputs: readonly [({ readonly name: "from"; readonly type: "address"; readonly indexed: true; }), ({ readonly name: "to"; readonly type: "address"; readonly indexed: true; }), ({ readonly name: "value"; readonly type: "uint256"; readonly indexed: false; })];
                  name: "Transfer";
                  type: "event";
              }, {
                  inputs: readonly [({ readonly name: "owner"; readonly type: "address"; }), ({ readonly name: "spender"; readonly type: "address"; })];
                  name: "allowance";
                  outputs: readonly [({ readonly name: ""; readonly type: "uint256"; })];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [({ readonly name: "spender"; readonly type: "address"; }), ({ readonly name: "amount"; readonly type: "uint256"; })];
                  name: "approve";
                  outputs: readonly [({ readonly name: ""; readonly type: "bool"; })];
                  stateMutability: "nonpayable";
                  type: "function";
              }, {
                  inputs: readonly [({ readonly name: "account"; readonly type: "address"; })];
                  name: "balanceOf";
                  outputs: readonly [({ readonly name: ""; readonly type: "uint256"; })];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "decimals";
                  outputs: readonly [({ readonly name: ""; readonly type: "uint8"; })];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "name";
                  outputs: readonly [({ readonly name: ""; readonly type: "string"; })];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "symbol";
                  outputs: readonly [({ readonly name: ""; readonly type: "string"; })];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "totalSupply";
                  outputs: readonly [({ readonly name: ""; readonly type: "uint256"; })];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [({ readonly name: "recipient"; readonly type: "address"; }), ({ readonly name: "amount"; readonly type: "uint256"; })];
                  name: "transfer";
                  outputs: readonly [({ readonly name: ""; readonly type: "bool"; })];
                  stateMutability: "nonpayable";
                  type: "function";
              }, {
                  inputs: readonly [({ readonly name: "sender"; readonly type: "address"; }), ({ readonly name: "recipient"; readonly type: "address"; }), ({ readonly name: "amount"; readonly type: "uint256"; })];
                  name: "transferFrom";
                  outputs: readonly [({ readonly name: ""; readonly type: "bool"; })];
                  stateMutability: "nonpayable";
                  type: "function";
              }], "transferFrom">
              : UseContractWriteUnpreparedArgs<readonly [{
                  inputs: readonly [({ readonly name: "owner"; readonly type: "address"; readonly indexed: true; }), ({ readonly name: "spender"; readonly type: "address"; readonly indexed: true; }), ({ readonly name: "value"; readonly type: "uint256"; readonly indexed: false; })];
                  name: "Approval";
                  type: "event";
              }, {
                  inputs: readonly [({ readonly name: "from"; readonly type: "address"; readonly indexed: true; }), ({ readonly name: "to"; readonly type: "address"; readonly indexed: true; }), ({ readonly name: "value"; readonly type: "uint256"; readonly indexed: false; })];
                  name: "Transfer";
                  type: "event";
              }, {
                  inputs: readonly [({ readonly name: "owner"; readonly type: "address"; }), ({ readonly name: "spender"; readonly type: "address"; })];
                  name: "allowance";
                  outputs: readonly [({ readonly name: ""; readonly type: "uint256"; })];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [({ readonly name: "spender"; readonly type: "address"; }), ({ readonly name: "amount"; readonly type: "uint256"; })];
                  name: "approve";
                  outputs: readonly [({ readonly name: ""; readonly type: "bool"; })];
                  stateMutability: "nonpayable";
                  type: "function";
              }, {
                  inputs: readonly [({ readonly name: "account"; readonly type: "address"; })];
                  name: "balanceOf";
                  outputs: readonly [({ readonly name: ""; readonly type: "uint256"; })];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "decimals";
                  outputs: readonly [({ readonly name: ""; readonly type: "uint8"; })];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "name";
                  outputs: readonly [({ readonly name: ""; readonly type: "string"; })];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "symbol";
                  outputs: readonly [({ readonly name: ""; readonly type: "string"; })];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "totalSupply";
                  outputs: readonly [({ readonly name: ""; readonly type: "uint256"; })];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [({ readonly name: "recipient"; readonly type: "address"; }), ({ readonly name: "amount"; readonly type: "uint256"; })];
                  name: "transfer";
                  outputs: readonly [({ readonly name: ""; readonly type: "bool"; })];
                  stateMutability: "nonpayable";
                  type: "function";
              }, {
                  inputs: readonly [({ readonly name: "sender"; readonly type: "address"; }), ({ readonly name: "recipient"; readonly type: "address"; }), ({ readonly name: "amount"; readonly type: "uint256"; })];
                  name: "transferFrom";
                  outputs: readonly [({ readonly name: ""; readonly type: "bool"; })];
                  stateMutability: "nonpayable";
                  type: "function";
              }], "transferFrom">) & {
              functionName?: "transferFrom";
          }
          : MutationConfig<WriteContractResult, Error, UseContractWriteArgs<readonly [{
              inputs: readonly [{
                  indexed: true;
                  name: "owner";
                  type: "address";
              }, {
                  indexed: true;
                  name: "spender";
                  type: "address";
              }, {
                  indexed: false;
                  name: "value";
                  type: "uint256";
              }];
              name: "Approval";
              type: "event";
          }, {
              inputs: readonly [{
                  indexed: true;
                  name: "from";
                  type: "address";
              }, {
                  indexed: true;
                  name: "to";
                  type: "address";
              }, {
                  indexed: false;
                  name: "value";
                  type: "uint256";
              }];
              name: "Transfer";
              type: "event";
          }, {
              inputs: readonly [{
                  name: "owner";
                  type: "address";
              }, {
                  name: "spender";
                  type: "address";
              }];
              name: "allowance";
              outputs: readonly [{
                  name: "";
                  type: "uint256";
              }];
              stateMutability: "view";
              type: "function";
          }, {
              inputs: readonly [{
                  name: "spender";
                  type: "address";
              }, {
                  name: "amount";
                  type: "uint256";
              }];
              name: "approve";
              outputs: readonly [{
                  name: "";
                  type: "bool";
              }];
              stateMutability: "nonpayable";
              type: "function";
          }, {
              inputs: readonly [{
                  name: "account";
                  type: "address";
              }];
              name: "balanceOf";
              outputs: readonly [{
                  name: "";
                  type: "uint256";
              }];
              stateMutability: "view";
              type: "function";
          }, {
              inputs: readonly [];
              name: "decimals";
              outputs: readonly [{
                  name: "";
                  type: "uint8";
              }];
              stateMutability: "view";
              type: "function";
          }, {
              inputs: readonly [];
              name: "name";
              outputs: readonly [{
                  name: "";
                  type: "string";
              }];
              stateMutability: "view";
              type: "function";
          }, {
              inputs: readonly [];
              name: "symbol";
              outputs: readonly [{
                  name: "";
                  type: "string";
              }];
              stateMutability: "view";
              type: "function";
          }, {
              inputs: readonly [];
              name: "totalSupply";
              outputs: readonly [{
                  name: "";
                  type: "uint256";
              }];
              stateMutability: "view";
              type: "function";
          }, {
              inputs: readonly [{
                  name: "recipient";
                  type: "address";
              }, {
                  name: "amount";
                  type: "uint256";
              }];
              name: "transfer";
              outputs: readonly [{
                  name: "";
                  type: "bool";
              }];
              stateMutability: "nonpayable";
              type: "function";
          }, {
              inputs: readonly [{
                  name: "sender";
                  type: "address";
              }, {
                  name: "recipient";
                  type: "address";
              }, {
                  name: "amount";
                  type: "uint256";
              }];
              name: "transferFrom";
              outputs: readonly [{
                  name: "";
                  type: "bool";
              }];
              stateMutability: "nonpayable";
              type: "function";
          }], "transferFrom", TMode>> & {
              mode?: TMode;
          } & (TMode extends "prepared"
              ? UseContractWritePreparedArgs<readonly [{
                  inputs: readonly [{
                      indexed: true;
                      name: "owner";
                      type: "address";
                  }, {
                      indexed: true;
                      name: "spender";
                      type: "address";
                  }, {
                      indexed: false;
                      name: "value";
                      type: "uint256";
                  }];
                  name: "Approval";
                  type: "event";
              }, {
                  inputs: readonly [{
                      indexed: true;
                      name: "from";
                      type: "address";
                  }, {
                      indexed: true;
                      name: "to";
                      type: "address";
                  }, {
                      indexed: false;
                      name: "value";
                      type: "uint256";
                  }];
                  name: "Transfer";
                  type: "event";
              }, {
                  inputs: readonly [{
                      name: "owner";
                      type: "address";
                  }, {
                      name: "spender";
                      type: "address";
                  }];
                  name: "allowance";
                  outputs: readonly [{
                      name: "";
                      type: "uint256";
                  }];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [{
                      name: "spender";
                      type: "address";
                  }, {
                      name: "amount";
                      type: "uint256";
                  }];
                  name: "approve";
                  outputs: readonly [{
                      name: "";
                      type: "bool";
                  }];
                  stateMutability: "nonpayable";
                  type: "function";
              }, {
                  inputs: readonly [{
                      name: "account";
                      type: "address";
                  }];
                  name: "balanceOf";
                  outputs: readonly [{
                      name: "";
                      type: "uint256";
                  }];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "decimals";
                  outputs: readonly [{
                      name: "";
                      type: "uint8";
                  }];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "name";
                  outputs: readonly [{
                      name: "";
                      type: "string";
                  }];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "symbol";
                  outputs: readonly [{
                      name: "";
                      type: "string";
                  }];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "totalSupply";
                  outputs: readonly [{
                      name: "";
                      type: "uint256";
                  }];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [{
                      name: "recipient";
                      type: "address";
                  }, {
                      name: "amount";
                      type: "uint256";
                  }];
                  name: "transfer";
                  outputs: readonly [{
                      name: "";
                      type: "bool";
                  }];
                  stateMutability: "nonpayable";
                  type: "function";
              }, {
                  inputs: readonly [{
                      name: "sender";
                      type: "address";
                  }, {
                      name: "recipient";
                      type: "address";
                  }, {
                      name: "amount";
                      type: "uint256";
                  }];
                  name: "transferFrom";
                  outputs: readonly [{
                      name: "";
                      type: "bool";
                  }];
                  stateMutability: "nonpayable";
                  type: "function";
              }], "transferFrom">
              : UseContractWriteUnpreparedArgs<readonly [{
                  inputs: readonly [{
                      indexed: true;
                      name: "owner";
                      type: "address";
                  }, {
                      indexed: true;
                      name: "spender";
                      type: "address";
                  }, {
                      indexed: false;
                      name: "value";
                      type: "uint256";
                  }];
                  name: "Approval";
                  type: "event";
              }, {
                  inputs: readonly [{
                      indexed: true;
                      name: "from";
                      type: "address";
                  }, {
                      indexed: true;
                      name: "to";
                      type: "address";
                  }, {
                      indexed: false;
                      name: "value";
                      type: "uint256";
                  }];
                  name: "Transfer";
                  type: "event";
              }, {
                  inputs: readonly [{
                      name: "owner";
                      type: "address";
                  }, {
                      name: "spender";
                      type: "address";
                  }];
                  name: "allowance";
                  outputs: readonly [{
                      name: "";
                      type: "uint256";
                  }];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [{
                      name: "spender";
                      type: "address";
                  }, {
                      name: "amount";
                      type: "uint256";
                  }];
                  name: "approve";
                  outputs: readonly [{
                      name: "";
                      type: "bool";
                  }];
                  stateMutability: "nonpayable";
                  type: "function";
              }, {
                  inputs: readonly [{
                      name: "account";
                      type: "address";
                  }];
                  name: "balanceOf";
                  outputs: readonly [{
                      name: "";
                      type: "uint256";
                  }];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "decimals";
                  outputs: readonly [{
                      name: "";
                      type: "uint8";
                  }];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "name";
                  outputs: readonly [{
                      name: "";
                      type: "string";
                  }];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "symbol";
                  outputs: readonly [{
                      name: "";
                      type: "string";
                  }];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [];
                  name: "totalSupply";
                  outputs: readonly [{
                      name: "";
                      type: "uint256";
                  }];
                  stateMutability: "view";
                  type: "function";
              }, {
                  inputs: readonly [{
                      name: "recipient";
                      type: "address";
                  }, {
                      name: "amount";
                      type: "uint256";
                  }];
                  name: "transfer";
                  outputs: readonly [{
                      name: "";
                      type: "bool";
                  }];
                  stateMutability: "nonpayable";
                  type: "function";
              }, {
                  inputs: readonly [{
                      name: "sender";
                      type: "address";
                  }, {
                      name: "recipient";
                      type: "address";
                  }, {
                      name: "amount";
                      type: "uint256";
                  }];
                  name: "transferFrom";
                  outputs: readonly [{
                      name: "";
                      type: "bool";
                  }];
                  stateMutability: "nonpayable";
                  type: "function";
              }], "transferFrom">) & {
              abi?: undefined;
              functionName?: "transferFrom";
          } = ...

    Returns {
        data: undefined | WriteContractResult;
        error: null | Error;
        isError: boolean;
        isIdle: boolean;
        isLoading: boolean;
        isSuccess: boolean;
        reset: (() => void);
        status: "error" | "success" | "loading" | "idle";
        variables: undefined | UseContractWriteArgs<Abi, string, undefined>;
        write: MutationFn<TMode, readonly [{
            inputs: readonly [{
                indexed: true;
                name: "owner";
                type: "address";
            }, {
                indexed: true;
                name: "spender";
                type: "address";
            }, {
                indexed: false;
                name: "value";
                type: "uint256";
            }];
            name: "Approval";
            type: "event";
        }, {
            inputs: readonly [{
                indexed: true;
                name: "from";
                type: "address";
            }, {
                indexed: true;
                name: "to";
                type: "address";
            }, {
                indexed: false;
                name: "value";
                type: "uint256";
            }];
            name: "Transfer";
            type: "event";
        }, {
            inputs: readonly [{
                name: "owner";
                type: "address";
            }, {
                name: "spender";
                type: "address";
            }];
            name: "allowance";
            outputs: readonly [{
                name: "";
                type: "uint256";
            }];
            stateMutability: "view";
            type: "function";
        }, {
            inputs: readonly [{
                name: "spender";
                type: "address";
            }, {
                name: "amount";
                type: "uint256";
            }];
            name: "approve";
            outputs: readonly [{
                name: "";
                type: "bool";
            }];
            stateMutability: "nonpayable";
            type: "function";
        }, {
            inputs: readonly [{
                name: "account";
                type: "address";
            }];
            name: "balanceOf";
            outputs: readonly [{
                name: "";
                type: "uint256";
            }];
            stateMutability: "view";
            type: "function";
        }, {
            inputs: readonly [];
            name: "decimals";
            outputs: readonly [{
                name: "";
                type: "uint8";
            }];
            stateMutability: "view";
            type: "function";
        }, {
            inputs: readonly [];
            name: "name";
            outputs: readonly [{
                name: "";
                type: "string";
            }];
            stateMutability: "view";
            type: "function";
        }, {
            inputs: readonly [];
            name: "symbol";
            outputs: readonly [{
                name: "";
                type: "string";
            }];
            stateMutability: "view";
            type: "function";
        }, {
            inputs: readonly [];
            name: "totalSupply";
            outputs: readonly [{
                name: "";
                type: "uint256";
            }];
            stateMutability: "view";
            type: "function";
        }, {
            inputs: readonly [{
                name: "recipient";
                type: "address";
            }, {
                name: "amount";
                type: "uint256";
            }];
            name: "transfer";
            outputs: readonly [{
                name: "";
                type: "bool";
            }];
            stateMutability: "nonpayable";
            type: "function";
        }, {
            inputs: readonly [{
                name: "sender";
                type: "address";
            }, {
                name: "recipient";
                type: "address";
            }, {
                name: "amount";
                type: "uint256";
            }];
            name: "transferFrom";
            outputs: readonly [{
                name: "";
                type: "bool";
            }];
            stateMutability: "nonpayable";
            type: "function";
        }], "transferFrom", void>;
        writeAsync: MutationFn<TMode, readonly [{
            inputs: readonly [{
                indexed: true;
                name: "owner";
                type: "address";
            }, {
                indexed: true;
                name: "spender";
                type: "address";
            }, {
                indexed: false;
                name: "value";
                type: "uint256";
            }];
            name: "Approval";
            type: "event";
        }, {
            inputs: readonly [{
                indexed: true;
                name: "from";
                type: "address";
            }, {
                indexed: true;
                name: "to";
                type: "address";
            }, {
                indexed: false;
                name: "value";
                type: "uint256";
            }];
            name: "Transfer";
            type: "event";
        }, {
            inputs: readonly [{
                name: "owner";
                type: "address";
            }, {
                name: "spender";
                type: "address";
            }];
            name: "allowance";
            outputs: readonly [{
                name: "";
                type: "uint256";
            }];
            stateMutability: "view";
            type: "function";
        }, {
            inputs: readonly [{
                name: "spender";
                type: "address";
            }, {
                name: "amount";
                type: "uint256";
            }];
            name: "approve";
            outputs: readonly [{
                name: "";
                type: "bool";
            }];
            stateMutability: "nonpayable";
            type: "function";
        }, {
            inputs: readonly [{
                name: "account";
                type: "address";
            }];
            name: "balanceOf";
            outputs: readonly [{
                name: "";
                type: "uint256";
            }];
            stateMutability: "view";
            type: "function";
        }, {
            inputs: readonly [];
            name: "decimals";
            outputs: readonly [{
                name: "";
                type: "uint8";
            }];
            stateMutability: "view";
            type: "function";
        }, {
            inputs: readonly [];
            name: "name";
            outputs: readonly [{
                name: "";
                type: "string";
            }];
            stateMutability: "view";
            type: "function";
        }, {
            inputs: readonly [];
            name: "symbol";
            outputs: readonly [{
                name: "";
                type: "string";
            }];
            stateMutability: "view";
            type: "function";
        }, {
            inputs: readonly [];
            name: "totalSupply";
            outputs: readonly [{
                name: "";
                type: "uint256";
            }];
            stateMutability: "view";
            type: "function";
        }, {
            inputs: readonly [{
                name: "recipient";
                type: "address";
            }, {
                name: "amount";
                type: "uint256";
            }];
            name: "transfer";
            outputs: readonly [{
                name: "";
                type: "bool";
            }];
            stateMutability: "nonpayable";
            type: "function";
        }, {
            inputs: readonly [{
                name: "sender";
                type: "address";
            }, {
                name: "recipient";
                type: "address";
            }, {
                name: "amount";
                type: "uint256";
            }];
            name: "transferFrom";
            outputs: readonly [{
                name: "";
                type: "bool";
            }];
            stateMutability: "nonpayable";
            type: "function";
        }], "transferFrom", Promise<WriteContractResult>>;
    }

    • data: undefined | WriteContractResult
    • error: null | Error
    • isError: boolean
    • isIdle: boolean
    • isLoading: boolean
    • isSuccess: boolean
    • reset: (() => void)
        • (): void
        • Returns void

    • status: "error" | "success" | "loading" | "idle"
    • variables: undefined | UseContractWriteArgs<Abi, string, undefined>
    • write: MutationFn<TMode, readonly [{
          inputs: readonly [{
              indexed: true;
              name: "owner";
              type: "address";
          }, {
              indexed: true;
              name: "spender";
              type: "address";
          }, {
              indexed: false;
              name: "value";
              type: "uint256";
          }];
          name: "Approval";
          type: "event";
      }, {
          inputs: readonly [{
              indexed: true;
              name: "from";
              type: "address";
          }, {
              indexed: true;
              name: "to";
              type: "address";
          }, {
              indexed: false;
              name: "value";
              type: "uint256";
          }];
          name: "Transfer";
          type: "event";
      }, {
          inputs: readonly [{
              name: "owner";
              type: "address";
          }, {
              name: "spender";
              type: "address";
          }];
          name: "allowance";
          outputs: readonly [{
              name: "";
              type: "uint256";
          }];
          stateMutability: "view";
          type: "function";
      }, {
          inputs: readonly [{
              name: "spender";
              type: "address";
          }, {
              name: "amount";
              type: "uint256";
          }];
          name: "approve";
          outputs: readonly [{
              name: "";
              type: "bool";
          }];
          stateMutability: "nonpayable";
          type: "function";
      }, {
          inputs: readonly [{
              name: "account";
              type: "address";
          }];
          name: "balanceOf";
          outputs: readonly [{
              name: "";
              type: "uint256";
          }];
          stateMutability: "view";
          type: "function";
      }, {
          inputs: readonly [];
          name: "decimals";
          outputs: readonly [{
              name: "";
              type: "uint8";
          }];
          stateMutability: "view";
          type: "function";
      }, {
          inputs: readonly [];
          name: "name";
          outputs: readonly [{
              name: "";
              type: "string";
          }];
          stateMutability: "view";
          type: "function";
      }, {
          inputs: readonly [];
          name: "symbol";
          outputs: readonly [{
              name: "";
              type: "string";
          }];
          stateMutability: "view";
          type: "function";
      }, {
          inputs: readonly [];
          name: "totalSupply";
          outputs: readonly [{
              name: "";
              type: "uint256";
          }];
          stateMutability: "view";
          type: "function";
      }, {
          inputs: readonly [{
              name: "recipient";
              type: "address";
          }, {
              name: "amount";
              type: "uint256";
          }];
          name: "transfer";
          outputs: readonly [{
              name: "";
              type: "bool";
          }];
          stateMutability: "nonpayable";
          type: "function";
      }, {
          inputs: readonly [{
              name: "sender";
              type: "address";
          }, {
              name: "recipient";
              type: "address";
          }, {
              name: "amount";
              type: "uint256";
          }];
          name: "transferFrom";
          outputs: readonly [{
              name: "";
              type: "bool";
          }];
          stateMutability: "nonpayable";
          type: "function";
      }], "transferFrom", void>
    • writeAsync: MutationFn<TMode, readonly [{
          inputs: readonly [{
              indexed: true;
              name: "owner";
              type: "address";
          }, {
              indexed: true;
              name: "spender";
              type: "address";
          }, {
              indexed: false;
              name: "value";
              type: "uint256";
          }];
          name: "Approval";
          type: "event";
      }, {
          inputs: readonly [{
              indexed: true;
              name: "from";
              type: "address";
          }, {
              indexed: true;
              name: "to";
              type: "address";
          }, {
              indexed: false;
              name: "value";
              type: "uint256";
          }];
          name: "Transfer";
          type: "event";
      }, {
          inputs: readonly [{
              name: "owner";
              type: "address";
          }, {
              name: "spender";
              type: "address";
          }];
          name: "allowance";
          outputs: readonly [{
              name: "";
              type: "uint256";
          }];
          stateMutability: "view";
          type: "function";
      }, {
          inputs: readonly [{
              name: "spender";
              type: "address";
          }, {
              name: "amount";
              type: "uint256";
          }];
          name: "approve";
          outputs: readonly [{
              name: "";
              type: "bool";
          }];
          stateMutability: "nonpayable";
          type: "function";
      }, {
          inputs: readonly [{
              name: "account";
              type: "address";
          }];
          name: "balanceOf";
          outputs: readonly [{
              name: "";
              type: "uint256";
          }];
          stateMutability: "view";
          type: "function";
      }, {
          inputs: readonly [];
          name: "decimals";
          outputs: readonly [{
              name: "";
              type: "uint8";
          }];
          stateMutability: "view";
          type: "function";
      }, {
          inputs: readonly [];
          name: "name";
          outputs: readonly [{
              name: "";
              type: "string";
          }];
          stateMutability: "view";
          type: "function";
      }, {
          inputs: readonly [];
          name: "symbol";
          outputs: readonly [{
              name: "";
              type: "string";
          }];
          stateMutability: "view";
          type: "function";
      }, {
          inputs: readonly [];
          name: "totalSupply";
          outputs: readonly [{
              name: "";
              type: "uint256";
          }];
          stateMutability: "view";
          type: "function";
      }, {
          inputs: readonly [{
              name: "recipient";
              type: "address";
          }, {
              name: "amount";
              type: "uint256";
          }];
          name: "transfer";
          outputs: readonly [{
              name: "";
              type: "bool";
          }];
          stateMutability: "nonpayable";
          type: "function";
      }, {
          inputs: readonly [{
              name: "sender";
              type: "address";
          }, {
              name: "recipient";
              type: "address";
          }, {
              name: "amount";
              type: "uint256";
          }];
          name: "transferFrom";
          outputs: readonly [{
              name: "";
              type: "bool";
          }];
          stateMutability: "nonpayable";
          type: "function";
      }], "transferFrom", Promise<WriteContractResult>>

Generated using TypeDoc