Function: getContract()
getContract(params)
function getContract<A, C, W>(params): object
Type Parameters
Type Parameter |
---|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
Returns
object
read
read: A extends Abi ? ReadContractsMethod<A, "view" | "pure"> : CommonReadContractMethods;
write
write: A extends Abi ? WriteContractsMethod<A, "payable" | "nonpayable"> : CommonWriteContractMethods;
Defined
@nilfoundation/niljs/src/contract-factory/ContractFactory.ts:499
getContract(params)
function getContract<A, C, W, K>(params): object
Type Parameters
Type Parameter |
---|
|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
Returns
object
external
external: A extends Abi ? ExternalContractsMethod<A, "payable" | "nonpayable", K[]> : CommonWriteContractMethods;
read
read: A extends Abi ? ReadContractsMethod<A, "view" | "pure"> : CommonReadContractMethods;
write
write: A extends Abi ? WriteContractsMethod<A, "payable" | "nonpayable"> : CommonWriteContractMethods;
Defined
@nilfoundation/niljs/src/contract-factory/ContractFactory.ts:515
getContract(params)
function getContract<A, C>(params): object
Type Parameters
Type Parameter |
---|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
|
|
Returns
object
read
read: A extends Abi ? ReadContractsMethod<A, "view" | "pure"> : CommonReadContractMethods;
Defined
@nilfoundation/niljs/src/contract-factory/ContractFactory.ts:536