Constants

PATTERN_TYPE_HASH256

PATTERN_TYPE_HASH256

The hex representation of a 256-bit hash

PATTERN_TYPE_HASH128

PATTERN_TYPE_HASH128

The hex representation of a 128-bit hash

PATTERN_TYPE_TIMESTAMP

PATTERN_TYPE_TIMESTAMP

An ISO 8601 combined date and time timestamp

PATTERN_TYPE_RIPPLEADDRESS

PATTERN_TYPE_RIPPLEADDRESS

A Ripple account address

PATTERN_TYPE_RESOURCEID

PATTERN_TYPE_RESOURCEID

A client-supplied unique identifier (ideally a UUID) for this transaction used to prevent duplicate payments and help confirm the transaction's final status. All ASCII printable characters are allowed. Note that 256-bit hex strings are disallowed because of the potential confusion with transaction hashes.

PATTERN_TYPE_FLOATSTRING

PATTERN_TYPE_FLOATSTRING

A string representation of a floating point number

PATTERN_TYPE_URL

PATTERN_TYPE_URL

A standard URL

PATTERN_TYPE_CURRENCY

PATTERN_TYPE_CURRENCY

The three-character code or hex string used to denote currencies

PATTERN_TYPE_UINT32

PATTERN_TYPE_UINT32

A string representation of an unsigned 32-bit integer (0-4294967295)

PATTERN_MESSAGE_KEY

PATTERN_MESSAGE_KEY

Pattern Rule for field `RippleRestAccountSettings::$messageKey`

PATTERN_LEDGER

PATTERN_LEDGER

Pattern Rule for field `RippleRestAccountSettings::$ledger`

Properties

$account

$account : string

(RippleAddress) The Ripple address of the account in question

Type

string

$regularKey

$regularKey : string

(RippleAddress) The hash of an optional additional public key that can be used for signing and verifying transactions

Type

string

$url

$url : string

(URL) The domain associated with this account. The ripple.txt file can be looked up to verify this information

Type

string

$emailHash

$emailHash : string

(Hash128) The MD5 128-bit hash of the account owner's email address

Type

string

$messageKey

$messageKey : string

(/^([0-9a-fA-F]{2}){0,33}$/) An optional public key, represented as hex, that can be set to allow others to send encrypted messages to the account owner

Type

string

$transferRate

$transferRate : float

A number representation of the rate charged each time a holder of currency issued by this account transfers it. By default the rate is 100. A rate of 101 is a 1% charge on top of the amount being transferred. Up to nine decimal places are supported

Type

float

$requireDestinationTag

$requireDestinationTag : boolean

If set to true incoming payments will only be validated if they include a destination_tag. This may be used primarily by gateways that operate exclusively with hosted wallets

Type

boolean

$requireAuthorization

$requireAuthorization : boolean

If set to true incoming trustlines will only be validated if this account first creates a trustline to the counterparty with the authorized flag set to true. This may be used by gateways to prevent accounts unknown to them from holding currencies they issue

Type

boolean

$disallowXrp

$disallowXrp : boolean

If set to true incoming XRP payments will be allowed

Type

boolean

$transactionSequence

$transactionSequence : string

(UINT32) A string representation of the last sequence number of a validated transaction created by this account

Type

string

$trustlineCount

$trustlineCount : string

(UINT32) The number of trustlines owned by this account. This value does not include incoming trustlines where this account has not explicitly reciprocated trust

Type

string

$ledger

$ledger : string

(/^[0-9]+$/) The string representation of the index number of the ledger containing these account settings or, in the case of historical queries, of the transaction that modified these settings

Type

string

$hash

$hash : string

(Hash256) If this object was returned by a historical query this value will be the hash of the transaction that modified these settings. The transaction hash is used throughout the Ripple Protocol to uniquely identify a particular transaction

Type

string

Methods

__construct()

__construct(array $data) : \RippleRestAccountSettings

Create a new instance of RippleRestAccountSettings.

Parameters

array $data

(defaults to null) PHP Array (result of json_decode($json, true))

Returns

\RippleRestAccountSettings

getAccount()

getAccount() : string

The Ripple address of the account in question

Returns

string —

(RippleAddress)

setAccount()

setAccount(string $value) : null

The Ripple address of the account in question

Parameters

string $value

(RippleAddress)

Returns

null

getRegularKey()

getRegularKey() : string

The hash of an optional additional public key that can be used for signing and verifying transactions

Returns

string —

(RippleAddress)

setRegularKey()

setRegularKey(string $value) : null

The hash of an optional additional public key that can be used for signing and verifying transactions

Parameters

string $value

(RippleAddress)

Returns

null

getUrl()

getUrl() : string

The domain associated with this account. The ripple.txt file can be looked up to verify this information

Returns

string —

(URL)

setUrl()

setUrl(string $value) : null

The domain associated with this account. The ripple.txt file can be looked up to verify this information

Parameters

string $value

(URL)

Returns

null

getEmailHash()

getEmailHash() : string

The MD5 128-bit hash of the account owner's email address

Returns

string —

(Hash128)

setEmailHash()

setEmailHash(string $value) : null

The MD5 128-bit hash of the account owner's email address

Parameters

string $value

(Hash128)

Returns

null

getMessageKey()

getMessageKey() : string

An optional public key, represented as hex, that can be set to allow others to send encrypted messages to the account owner

Returns

string —

(/^([0-9a-fA-F]{2}){0,33}$/)

setMessageKey()

setMessageKey(string $value) : null

An optional public key, represented as hex, that can be set to allow others to send encrypted messages to the account owner

Parameters

string $value

(/^([0-9a-fA-F]{2}){0,33}$/)

Returns

null

getTransferRate()

getTransferRate() : float

A number representation of the rate charged each time a holder of currency issued by this account transfers it. By default the rate is 100. A rate of 101 is a 1% charge on top of the amount being transferred. Up to nine decimal places are supported

Returns

float

setTransferRate()

setTransferRate(float $value) : null

A number representation of the rate charged each time a holder of currency issued by this account transfers it. By default the rate is 100. A rate of 101 is a 1% charge on top of the amount being transferred. Up to nine decimal places are supported

Parameters

float $value

Returns

null

getRequireDestinationTag()

getRequireDestinationTag() : boolean

If set to true incoming payments will only be validated if they include a destination_tag. This may be used primarily by gateways that operate exclusively with hosted wallets

Returns

boolean

setRequireDestinationTag()

setRequireDestinationTag(boolean $value) : null

If set to true incoming payments will only be validated if they include a destination_tag. This may be used primarily by gateways that operate exclusively with hosted wallets

Parameters

boolean $value

Returns

null

getRequireAuthorization()

getRequireAuthorization() : boolean

If set to true incoming trustlines will only be validated if this account first creates a trustline to the counterparty with the authorized flag set to true. This may be used by gateways to prevent accounts unknown to them from holding currencies they issue

Returns

boolean

setRequireAuthorization()

setRequireAuthorization(boolean $value) : null

If set to true incoming trustlines will only be validated if this account first creates a trustline to the counterparty with the authorized flag set to true. This may be used by gateways to prevent accounts unknown to them from holding currencies they issue

Parameters

boolean $value

Returns

null

getDisallowXrp()

getDisallowXrp() : boolean

If set to true incoming XRP payments will be allowed

Returns

boolean

setDisallowXrp()

setDisallowXrp(boolean $value) : null

If set to true incoming XRP payments will be allowed

Parameters

boolean $value

Returns

null

getTransactionSequence()

getTransactionSequence() : string

A string representation of the last sequence number of a validated transaction created by this account

Returns

string —

(UINT32)

setTransactionSequence()

setTransactionSequence(string $value) : null

A string representation of the last sequence number of a validated transaction created by this account

Parameters

string $value

(UINT32)

Returns

null

getTrustlineCount()

getTrustlineCount() : string

The number of trustlines owned by this account. This value does not include incoming trustlines where this account has not explicitly reciprocated trust

Returns

string —

(UINT32)

setTrustlineCount()

setTrustlineCount(string $value) : null

The number of trustlines owned by this account. This value does not include incoming trustlines where this account has not explicitly reciprocated trust

Parameters

string $value

(UINT32)

Returns

null

getLedger()

getLedger() : string

The string representation of the index number of the ledger containing these account settings or, in the case of historical queries, of the transaction that modified these settings

Returns

string —

(/^[0-9]+$/)

setLedger()

setLedger(string $value) : null

The string representation of the index number of the ledger containing these account settings or, in the case of historical queries, of the transaction that modified these settings

Parameters

string $value

(/^[0-9]+$/)

Returns

null

getHash()

getHash() : string

If this object was returned by a historical query this value will be the hash of the transaction that modified these settings. The transaction hash is used throughout the Ripple Protocol to uniquely identify a particular transaction

Returns

string —

(Hash256)

setHash()

setHash(string $value) : null

If this object was returned by a historical query this value will be the hash of the transaction that modified these settings. The transaction hash is used throughout the Ripple Protocol to uniquely identify a particular transaction

Parameters

string $value

(Hash256)

Returns

null

toArray()

toArray() : array

Convert this object to PHP native Array for serializing to JSON.

Returns

array