Create Claimable Balance
Creates a new claimable balance.
ATTRIBUTEDATA TYPE
DESCRIPTION
assetstring
The asset available to be claimed in the SEP-11 form asset_code:issuing_address
or native
(for XLM)
amountstring
The amount available to be claimed.
claimantsarray of objects
The list of entries which could claim the claimable balance.
Show child attributes
destinationstring
The account ID who can claim the balance.
predicateobject
The condition which must be satisfied so destination
can claim the balance.
Show child attributes
unconditionalboolean (optional)
If true it means this clause of the condition is always satisfied.
andarray of objects (optional)
The array will always contain two elements which also are predicates. This clause of the condition is satisfied if both of the two elements in the array are satisfied.
orarray of objects (optional)
The array will always contain two elements which also are predicates. This clause of the condition is satisfied if at least one of the two elements in the array are satisfied.
notobject (optional)
The value is also a predicate. This clause of the condition is satisfied if the value is not satisfied.
absBeforestring (optional)
A customized ISO 8601 formatted string representing a deadline for when the claimable balance can be claimed. If the balance is claimed before the date then this clause of the condition is satisfied. The format of this date string is a custom extension on top of ISO 8601 format. It allows for years to be outside the 0000-9999 range. The dates are derived from a unix epoch value in range of signed 64 bit integer. This means the date expresses a much larger calendar range of 292277026596 years into future and -292471206707 years back in past. This custom extension format will add a '+'
prefix on values that go beyond year 9999 into the future and for years that are prior to year 0(B.C per Gregorian calendar) it will add prefix of '-'
.
Here are examples of date string values that are possible:
'2022-02-10T15:30:22Z'
'+39121901036-03-29T15:30:22Z'
'-7025-12-23T00:00:00Z'
absBeforeEpochstring (optional)
A unix epoch value in seconds representing the same deadline date for when the claimable balance can be claimed. It is the same date/time value that absBefore represents, just expressed in integral unix epoch seconds within the range of a signed 64bit integer.
relBeforestring (optional)
A relative deadline for when the claimable balance can be claimed. The value represents the number of seconds since the close time of the ledger which created the claimable balance.
{
"_links": {
"self": {
"href": "https://horizon-testnet.stellar.org/operations/124922916260433921"
},
"transaction": {
"href": "https://horizon-testnet.stellar.org/transactions/f94c338370839a598753221714de0b0193d4fc56ea369db6efe88f18669cc5a1"
},
"effects": {
"href": "https://horizon-testnet.stellar.org/operations/124922916260433921/effects"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc\u0026cursor=124922916260433921"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc\u0026cursor=124922916260433921"
}
},
"id": "124922916260433921",
"paging_token": "124922916260433921",
"transaction_successful": true,
"source_account": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
"type": "create_claimable_balance",
"type_i": 14,
"created_at": "2020-04-09T00:14:11Z",
"transaction_hash": "f94c338370839a598753221714de0b0193d4fc56ea369db6efe88f18669cc5a1",
"asset": "NGNT:GAWODAROMJ33V5YDFY3NPYTHVYQG7MJXVJ2ND3AOGIHYRWINES6ACCPD",
"amount": "200.0000000",
"claimants": [
{
"destination": "GC3C4AKRBQLHOJ45U4XG35ESVWRDECWO5XLDGYADO6DPR3L7KIDVUMML",
"predicate": {
"and": [
{
"or": [
{
"relBefore": "12"
},
{
"absBefore": "2020-08-26T11:15:39Z",
"absBeforeEpoch": "1598440539"
}
]
},
{
"not": { "unconditional": true }
}
]
}
}
]
}