forked from LBRYCommunity/lbry-sdk
update resolve doc
This commit is contained in:
parent
31b5026570
commit
10dcc429f3
1 changed files with 64 additions and 11 deletions
|
@ -1454,17 +1454,70 @@ class Daemon(AuthJSONRPCServer):
|
||||||
Args:
|
Args:
|
||||||
'uri': (str) uri to download
|
'uri': (str) uri to download
|
||||||
Returns:
|
Returns:
|
||||||
{
|
None if nothing can be resolved, otherwise:
|
||||||
'claim_id': (str) claim id,
|
If uri resolves to a channel or a claim in a channel:
|
||||||
'claim_sequence': (int) claim sequence number,
|
'certificate': {
|
||||||
'decoded_claim': (bool) whether or not the claim value was decoded,
|
'address': (str) claim address,
|
||||||
'depth': (int) claim depth,
|
'amount': (float) claim amount,
|
||||||
'has_signature': (bool) included if decoded_claim
|
'effective_amount': (float) claim amount including supports,
|
||||||
'name': (str) claim name,
|
'claim_id': (str) claim id,
|
||||||
'txid': (str) claim txid,
|
'claim_sequence': (int) claim sequence number,
|
||||||
'nout': (str) claim nout,
|
'decoded_claim': (bool) whether or not the claim value was decoded,
|
||||||
'signature_is_valid': (bool), included if has_signature,
|
'height': (int) claim height,
|
||||||
'value': ClaimDict if decoded, otherwise hex string
|
'depth': (int) claim depth,
|
||||||
|
'has_signature': (bool) included if decoded_claim
|
||||||
|
'name': (str) claim name,
|
||||||
|
'supports: (list) list of supports [{'txid': txid,
|
||||||
|
'nout': nout,
|
||||||
|
'amount': amount}],
|
||||||
|
'txid': (str) claim txid,
|
||||||
|
'nout': (str) claim nout,
|
||||||
|
'signature_is_valid': (bool), included if has_signature,
|
||||||
|
'value': ClaimDict if decoded, otherwise hex string
|
||||||
|
}
|
||||||
|
If uri resolves to a channel:
|
||||||
|
'claims_in_channel': [
|
||||||
|
{
|
||||||
|
'address': (str) claim address,
|
||||||
|
'amount': (float) claim amount,
|
||||||
|
'effective_amount': (float) claim amount including supports,
|
||||||
|
'claim_id': (str) claim id,
|
||||||
|
'claim_sequence': (int) claim sequence number,
|
||||||
|
'decoded_claim': (bool) whether or not the claim value was decoded,
|
||||||
|
'height': (int) claim height,
|
||||||
|
'depth': (int) claim depth,
|
||||||
|
'has_signature': (bool) included if decoded_claim
|
||||||
|
'name': (str) claim name,
|
||||||
|
'supports: (list) list of supports [{'txid': txid,
|
||||||
|
'nout': nout,
|
||||||
|
'amount': amount}],
|
||||||
|
'txid': (str) claim txid,
|
||||||
|
'nout': (str) claim nout,
|
||||||
|
'signature_is_valid': (bool), included if has_signature,
|
||||||
|
'value': ClaimDict if decoded, otherwise hex string
|
||||||
|
}
|
||||||
|
]
|
||||||
|
If uri resolves to a claim:
|
||||||
|
'claim': {
|
||||||
|
'address': (str) claim address,
|
||||||
|
'amount': (float) claim amount,
|
||||||
|
'effective_amount': (float) claim amount including supports,
|
||||||
|
'claim_id': (str) claim id,
|
||||||
|
'claim_sequence': (int) claim sequence number,
|
||||||
|
'decoded_claim': (bool) whether or not the claim value was decoded,
|
||||||
|
'height': (int) claim height,
|
||||||
|
'depth': (int) claim depth,
|
||||||
|
'has_signature': (bool) included if decoded_claim
|
||||||
|
'name': (str) claim name,
|
||||||
|
'channel_name': (str) channel name if claim is in a channel
|
||||||
|
'supports: (list) list of supports [{'txid': txid,
|
||||||
|
'nout': nout,
|
||||||
|
'amount': amount}]
|
||||||
|
'txid': (str) claim txid,
|
||||||
|
'nout': (str) claim nout,
|
||||||
|
'signature_is_valid': (bool), included if has_signature,
|
||||||
|
'value': ClaimDict if decoded, otherwise hex string
|
||||||
|
}
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue