Stellar PHP SDK API Documentation

BumpSequenceOperationBuilder
in package

Builder for creating BumpSequence operations.

This builder implements the builder pattern to construct BumpSequenceOperation instances with a fluent interface. BumpSequence operations bump the sequence number of the source account to a specified value, allowing the account to invalidate any transactions with a lower sequence number.

Tags
see
BumpSequenceOperation
see
https://developers.stellar.org

Stellar developer docs

since
1.0.0
example

$operation = (new BumpSequenceOperationBuilder(new BigInteger('12345'))) ->setSourceAccount($sourceId) ->build();

Table of Contents

Methods

__construct()  : mixed
Creates a new BumpSequence operation builder.
build()  : BumpSequenceOperation
Builds the BumpSequence operation.
setMuxedSourceAccount()  : $this
Sets the muxed source account for this operation.
setSourceAccount()  : $this
Sets the source account for this operation.

Methods

__construct()

Creates a new BumpSequence operation builder.

public __construct(BigInteger $bumpTo) : mixed
Parameters
$bumpTo : BigInteger

The desired value for the source account's sequence number

setMuxedSourceAccount()

Sets the muxed source account for this operation.

public setMuxedSourceAccount(MuxedAccount $sourceAccount) : $this
Parameters
$sourceAccount : MuxedAccount

The muxed account to use as source

Return values
$this

Returns the builder instance for method chaining

setSourceAccount()

Sets the source account for this operation.

public setSourceAccount(string $accountId) : $this
Parameters
$accountId : string

The Stellar account ID (G...)

Return values
$this

Returns the builder instance for method chaining


        
On this page

Search results