BroadcastApi
public protocol BroadcastApi : BaseApi
Undocumented
-
broadcast(_:)Default implementationBroadcast transaction to DCore blockchain.
Default Implementation
Declaration
Swift
func broadcast(_ transaction: Transaction) -> CompletableParameters
transactionTransaction to broadcast.
-
broadcast(_:keypair:expiration:)Default implementationBroadcast transaction to DCore blockchain.
Default Implementation
Undocumented
Undocumented
Declaration
Swift
func broadcast(_ operations: [Operation], keypair: ECKeyPairConvertible, expiration: Int?) -> CompletableParameters
keypairPrivate key.
operationsOperations to be submitted to DCore.
expirationTransaction expiration in seconds, after the expiry the transaction is removed from recent pool and will be dismissed if not included in DCore block
-
Broadcast transaction to DCore blockchain.
Declaration
Swift
func broadcast(_ operation: Operation, keypair: ECKeyPairConvertible, expiration: Int?) -> CompletableParameters
keypairPrivate key.
operationOperation to be submitted to DCore.
expirationTransaction expiration in seconds, after the expiry the transaction is removed from recent pool and will be dismissed if not included in DCore block
-
broadcastWithCallback(_:)Default implementationBroadcast transaction to DCore blockchain with callback.
Default Implementation
Declaration
Swift
func broadcastWithCallback(_ transaction: Transaction) -> Single<TransactionConfirmation>Parameters
transactionTransaction to broadcast.
Return Value
-
broadcastWithCallback(_:keypair:expiration:)Default implementationBroadcast transaction to DCore blockchain with callback.
Default Implementation
Undocumented
Undocumented
Declaration
Swift
func broadcastWithCallback(_ operations: [Operation], keypair: ECKeyPairConvertible, expiration: Int?) -> Single<TransactionConfirmation>Parameters
keypairPrivate key.
operationsOperations to be submitted to DCore.
expirationTransaction expiration in seconds, after the expiry the transaction is removed from recent pool and will be dismissed if not included in DCore block
Return Value
-
Broadcast transaction to DCore blockchain with callback.
Declaration
Swift
func broadcastWithCallback(_ operation: Operation, keypair: ECKeyPairConvertible, expiration: Int?) -> Single<TransactionConfirmation>Parameters
keypairPrivate key.
operationOperation to be submitted to DCore.
expirationTransaction expiration in seconds, after the expiry the transaction is removed from recent pool and will be dismissed if not included in DCore block
Return Value
-
broadcastSynchronous(_:)Default implementationBroadcast transaction to DCore blockchain.
Default Implementation
Declaration
Swift
func broadcastSynchronous(_ transaction: Transaction) -> Single<TransactionConfirmation>Parameters
transactionTransaction to broadcast.
Return Value
View on GitHub
Install in Dash
BroadcastApi Protocol Reference