ContractPromise ContractPromiseResult

near-runtime-ts > "near" > ContractPromise

Class: ContractPromise

Hierarchy

ContractPromise

Index

Properties

  • id

Methods

  • returnAsResult

  • then

  • all

  • create

  • getResults

Properties

id

● id: i32

Defined in near.ts:901

Methods

returnAsResult

returnAsResult(): void

Defined in near.ts:934

Returns: void

then

then(methodName: string, args: Uint8Array, mana: u32): ContractPromise

Defined in near.ts:920

Parameters:

Name

Type

methodName

string

args

Uint8Array

mana

u32

Returns: ContractPromise

<Static> all

all(promises: ContractPromise[]): ContractPromise

Defined in near.ts:938

Parameters:

Name

Type

promises

ContractPromise[]

Returns: ContractPromise

<Static> create

create(contractName: string, methodName: string, args: Uint8Array, mana: u32, amount?: u64): ContractPromise

Defined in near.ts:903

Parameters:

Name

Type

Default value

contractName

string

-

methodName

string

-

args

Uint8Array

-

mana

u32

-

Default value amount

u64

0

Returns: ContractPromise

<Static> getResults

getResults(): ContractPromiseResult[]

Defined in near.ts:947

Returns: ContractPromiseResult[]

near-runtime-ts > "near" > ContractPromiseResult

Class: ContractPromiseResult

Hierarchy

ContractPromiseResult

Index

Properties

Properties

buffer

● buffer: Uint8Array

Defined in near.ts:965

success

● success: bool

Defined in near.ts:964