- Ed25519Keypair
- makeEd25519Condition
- makeSha256Condition
- makeThresholdCondition
- makeCreateTransaction
- makeOutput
- makeTransferTransaction
- serializeTransactionIntoCanonicalString
- signTransaction
- ccJsonLoad
- ccJsonify
- getBlock
- getStatus
- getTransaction
- listBlocks
- listOutputs
- listTransactions
- listVotes
- pollStatusAndFetchTransaction
- postTransaction
Parameters
secretnumber? A seed that will be used as a key derivation function
Properties
Parameters
publicKeystring base58 encoded Ed25519 public key for the recipient of the Transactionjsonboolean If true returns a json object otherwise a crypto-condition type (optional, defaulttrue)
Returns object Ed25519 Condition (that will need to wrapped in an Output)
Parameters
preimagestring Preimage to be hashed and wrapped in a crypto-conditionjsonboolean If true returns a json object otherwise a crypto-condition type (optional, defaulttrue)
Returns object Preimage-Sha256 Condition (that will need to wrapped in an Output)
Parameters
thresholdnumbersubconditionsArray (optional, default[])jsonboolean If true returns a json object otherwise a crypto-condition type (optional, defaulttrue)
Returns object Sha256 Threshold Condition (that will need to wrapped in an Output)
Parameters
assetobject Created asset's datametadataobject Metadata for the TransactionoutputsArray<object> Array of Output objects to add to the Transaction. Think of these as the recipients of the asset after the transaction. ForCREATETransactions, this should usually just be a list of Outputs wrapping Ed25519 Conditions generated from the issuers' public keys (so that the issuers are the recipients of the created asset).issuers...Array<string> Public key of one or more issuers to the asset being created by this Transaction. Note: Each of the private keys corresponding to the given public keys MUST be used later (and in the same order) when signing the Transaction (signTransaction()).
Returns object Unsigned transaction -- make sure to call signTransaction() on it before sending it off!
Parameters
conditionobject Condition (e.g. a Ed25519 Condition frommakeEd25519Condition())amountnumber Amount of the output (optional, default1)
Returns object An Output usable in a Transaction
Parameters
unspentTransactionobject Previous Transaction you have control over (i.e. can fulfill its Output Condition)metadataobject Metadata for the TransactionoutputsArray<object> Array of Output objects to add to the Transaction. Think of these as the recipients of the asset after the transaction. ForTRANSFERTransactions, this should usually just be a list of Outputs wrapping Ed25519 Conditions generated from the public keys of the recipients.fulfilledOutputs...number Indices of the Outputs inunspentTransactionthat this Transaction fulfills. Note that the public keys listed in the fulfilled Outputs must be used (and in the same order) to sign the Transaction (signTransaction()).
Returns object Unsigned transaction -- make sure to call signTransaction() on it before sending it off!
Parameters
transactionnullobject (transaction)
Returns string a canonically serialized Transaction
Parameters
transactionobject Transaction to sign.transactionis not modified.privateKeys...string Private keys associated with the issuers of thetransaction. Looped through to iteratively sign any Input Fulfillments found in thetransaction.
Returns object The signed version of transaction.
Parameters
conditionJsonobject
Returns cc.Condition Ed25519 Condition (that will need to wrapped in an Output)
Parameters
fulfillmentcc.Fulfillment base58 encoded Ed25519 public key for the recipient of the Transaction
Returns object Ed25519 Condition (that will need to wrapped in an Output)
Parameters
blockId
Parameters
tx_id
Parameters
txId
Parameters
$0Object$0.tx_id$0.status
tx_idstatus
Parameters
$0Object$0.public_key$0.unspent
onlyJsonResponsepublic_keyunspent
Parameters
$0Object$0.asset_id$0.operation
asset_idoperation
Parameters
block_id
Parameters
tx_id
Returns Promise
Parameters
transaction