Functions
The following functions are available globally.
-
Build flow transaction with cadence code with
Stringinput.Declaration
Swift
public func cadence(text: () -> String) -> Flow.TransactionBuildParameters
textCadence code in
Stringtype.Return Value
The type of
Flow.TransactionBuild.script -
Build flow transaction with cadence code with
Flow.Scriptinput.Parameters
textCadence code in
Flow.Scripttype.Return Value
The type of
Flow.TransactionBuild.script -
Build flow transaction with arguments with a list of
Flow.Cadence.FValueinput.Parameters
textThe list of
Flow.Cadence.FValuetype.Return Value
The type of
Flow.TransactionBuild.argument -
Build flow transaction with arguments with a list of
Flow.Argumentinput.Parameters
textThe list of
Flow.Argumenttype.Return Value
The type of
Flow.TransactionBuild.argument -
Build flow transaction with arguments with a list of
Flow.Argumentinput.Parameters
textThe list of
Flow.Argumenttype.Return Value
The type of
Flow.TransactionBuild.argument -
Build flow transaction with payer
Declaration
Swift
public func payer(text: () -> String) -> Flow.TransactionBuildParameters
textpayer address in
StringtypeReturn Value
The type of
Flow.TransactionBuild.payer -
Build flow transaction with payer
Parameters
textpayer address in
Flow.AddresstypeReturn Value
The type of
Flow.TransactionBuild.payer -
Build flow transaction with authorizers
Parameters
textA list of authorizer’s account
Return Value
The type of
Flow.TransactionBuild.authorizers -
Build flow transaction with authorizers
Parameters
textA list of authorizer’s account
Return Value
The type of
Flow.TransactionBuild.authorizers -
Build flow transaction with proposer
- returns: The type of
Flow.TransactionBuild.proposerThe default proposal key will use key index 0, and the sequence number will fetch from network
Declaration
Swift
public func proposer(text: () -> String) -> Flow.TransactionBuildParameters
textproposer key in
Stringtype -
Build flow transaction with proposer
- returns: The type of
Flow.TransactionBuild.proposerThe default proposal key will use key index 0, and the sequence number will fetch from network
Parameters
textproposer key in
Flow.Addresstype -
Build flow transaction with proposer
Declaration
Parameters
textproposer key in
Flow.TransactionProposalKeytypeReturn Value
The type of
Flow.TransactionBuild.proposer -
Build flow transaction with gas limit
Declaration
Swift
public func gasLimit(text: () -> BigUInt) -> Flow.TransactionBuildParameters
textgas limit in
BigUInttypeReturn Value
The type of
Flow.TransactionBuild.gasLimit -
Build flow transaction with gas limit
Declaration
Swift
public func gasLimit(text: () -> Int) -> Flow.TransactionBuildParameters
textgas limit in
InttypeReturn Value
The type of
Flow.TransactionBuild.gasLimit -
Build flow transaction with reference block id
Declaration
Swift
public func refBlock(text: () -> String?) -> Flow.TransactionBuildParameters
textblock id in
StringtypeReturn Value
The type of
Flow.TransactionBuild.refBlock -
Build flow transaction with reference block id
Parameters
textreference block id in
Flow.IDtypeReturn Value
The type of
Flow.TransactionBuild.refBlock
View on GitHub
Functions Reference