ParametersBuilder
Class: ParametersBuilder
ParametersBuilder is a helper class to build contract function parameters
Example
Contents
Methods
addAddress
addAddress(value: string | AccountId): ParametersBuilder
Parameters
Returns
ParametersBuilder
addAddressArray
addAddressArray(value: string[] | AccountId[]): ParametersBuilder
Parameters
Returns
ParametersBuilder
addBytes32
addBytes32(value: Uint8Array | number[]): ParametersBuilder
Parameters
Returns
ParametersBuilder
addUInt8
addUInt8(value: number): ParametersBuilder
Parameters
Returns
ParametersBuilder
addUInt64
addUInt64(value: BigNumber): ParametersBuilder
Parameters
Returns
ParametersBuilder
addUInt64Array
addUInt64Array(value: BigNumber[]): ParametersBuilder
Parameters
Returns
ParametersBuilder
addInt64
addInt64(value: BigNumber): ParametersBuilder
Parameters
Returns
ParametersBuilder
addUInt256
addUInt256(value: BigNumber): ParametersBuilder
Parameters
Returns
ParametersBuilder
addUInt256Array
addUInt256Array(value: BigNumber[]): ParametersBuilder
Parameters
Returns
ParametersBuilder
addTuple
addTuple(value: ParametersBuilder): ParametersBuilder
Parameters
Returns
ParametersBuilder
addTupleArray
addTupleArray(value: ParametersBuilder[]): ParametersBuilder
Parameters
Returns
ParametersBuilder
addString
addString(value: string): ParametersBuilder
Parameters
Returns
ParametersBuilder
addStringArray
addStringArray(value: string[]): ParametersBuilder
Parameters
Returns
ParametersBuilder
encode
Encodes the parameters to a base64 string, compatible with the methods of the BladeSDK
Calling this method is optional, as the BladeSDK will automatically encode the parameters if needed
encode(): string
Returns
string
Last updated