ParametersBuilder
Class: ParametersBuilder
ParametersBuilder is a helper class to build contract function parameters
Example
Contents
Methods
addAddress
addAddress(value: string | AccountId): ParametersBuilder
Parameters
value
string | AccountId
Returns
ParametersBuilder
addAddressArray
addAddressArray(value: string[] | AccountId[]): ParametersBuilder
Parameters
value
string[] | AccountId[]
Returns
ParametersBuilder
addBytes32
addBytes32(value: Uint8Array | number[]): ParametersBuilder
Parameters
value
Uint8Array | number[]
Returns
ParametersBuilder
addUInt8
addUInt8(value: number): ParametersBuilder
Parameters
value
number
Returns
ParametersBuilder
addUInt64
addUInt64(value: BigNumber): ParametersBuilder
Parameters
value
BigNumber
Returns
ParametersBuilder
addUInt64Array
addUInt64Array(value: BigNumber[]): ParametersBuilder
Parameters
value
BigNumber[]
Returns
ParametersBuilder
addInt64
addInt64(value: BigNumber): ParametersBuilder
Parameters
value
BigNumber
Returns
ParametersBuilder
addUInt256
addUInt256(value: BigNumber): ParametersBuilder
Parameters
value
BigNumber
Returns
ParametersBuilder
addUInt256Array
addUInt256Array(value: BigNumber[]): ParametersBuilder
Parameters
value
BigNumber[]
Returns
ParametersBuilder
addTuple
addTuple(value: ParametersBuilder): ParametersBuilder
Parameters
value
ParametersBuilder
Returns
ParametersBuilder
addTupleArray
addTupleArray(value: ParametersBuilder[]): ParametersBuilder
Parameters
value
ParametersBuilder[]
Returns
ParametersBuilder
addString
addString(value: string): ParametersBuilder
Parameters
value
string
Returns
ParametersBuilder
addStringArray
addStringArray(value: string[]): ParametersBuilder
Parameters
value
string[]
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