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,18 +1454,71 @@ class Daemon(AuthJSONRPCServer):
|
||||||
Args:
|
Args:
|
||||||
'uri': (str) uri to download
|
'uri': (str) uri to download
|
||||||
Returns:
|
Returns:
|
||||||
{
|
None if nothing can be resolved, otherwise:
|
||||||
|
If uri resolves to a channel or a claim in a channel:
|
||||||
|
'certificate': {
|
||||||
|
'address': (str) claim address,
|
||||||
|
'amount': (float) claim amount,
|
||||||
|
'effective_amount': (float) claim amount including supports,
|
||||||
'claim_id': (str) claim id,
|
'claim_id': (str) claim id,
|
||||||
'claim_sequence': (int) claim sequence number,
|
'claim_sequence': (int) claim sequence number,
|
||||||
'decoded_claim': (bool) whether or not the claim value was decoded,
|
'decoded_claim': (bool) whether or not the claim value was decoded,
|
||||||
|
'height': (int) claim height,
|
||||||
'depth': (int) claim depth,
|
'depth': (int) claim depth,
|
||||||
'has_signature': (bool) included if decoded_claim
|
'has_signature': (bool) included if decoded_claim
|
||||||
'name': (str) claim name,
|
'name': (str) claim name,
|
||||||
|
'supports: (list) list of supports [{'txid': txid,
|
||||||
|
'nout': nout,
|
||||||
|
'amount': amount}],
|
||||||
'txid': (str) claim txid,
|
'txid': (str) claim txid,
|
||||||
'nout': (str) claim nout,
|
'nout': (str) claim nout,
|
||||||
'signature_is_valid': (bool), included if has_signature,
|
'signature_is_valid': (bool), included if has_signature,
|
||||||
'value': ClaimDict if decoded, otherwise hex string
|
'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
|
||||||
|
}
|
||||||
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue