Stellar PHP SDK API Documentation

TransactionSignaturesResponse extends IteratorIterator

Represents a collection of transaction signatures

This iterable collection holds the base64-encoded signatures attached to a transaction. Each signature is produced by a private key signing the transaction hash, proving authorization from the corresponding account or signer.

Transactions require sufficient signature weight to meet the threshold requirements of the source account and any operation source accounts. Multiple signatures may be needed for multi-signature accounts or when extra signers are specified in preconditions.

The collection implements IteratorIterator, allowing direct iteration over signature strings. Signatures can be added dynamically and the collection can be converted to an array.

Tags
see
TransactionResponse

For transactions containing signatures

see
FeeBumpTransactionResponse

For fee-bump transaction signatures

see
InnerTransactionResponse

For inner transaction signatures

since
1.0.0

Table of Contents

Methods

__construct()  : mixed
Creates a new transaction signatures collection
add()  : void
Adds a signature to the collection
count()  : int
Gets the number of signatures in the collection
current()  : string
Gets the current signature in the iteration
toArray()  : array<string|int, string>
Converts the signature collection to an array

Methods

__construct()

Creates a new transaction signatures collection

public __construct(string ...$signatures) : mixed
Parameters
$signatures : string

Variable number of base64-encoded signature strings

add()

Adds a signature to the collection

public add(string $signature) : void
Parameters
$signature : string

The base64-encoded signature string to add

current()

Gets the current signature in the iteration

public current() : string
Return values
string

The base64-encoded signature string at the current iterator position

toArray()

Converts the signature collection to an array

public toArray() : array<string|int, string>
Return values
array<string|int, string>

Array of base64-encoded signature strings


        
On this page

Search results