Welshman Docs / @welshman/domain / Relay
Class: Relay ​
Defined in: domain/src/other/Relay.ts:51
Constructors ​
Constructor ​
new Relay(
url,json?):Relay
Defined in: domain/src/other/Relay.ts:75
Parameters ​
url ​
string
json? ​
RelayInfo = {}
Returns ​
Relay
Properties ​
banner? ​
optionalbanner?:string
Defined in: domain/src/other/Relay.ts:54
contact? ​
optionalcontact?:string
Defined in: domain/src/other/Relay.ts:58
description? ​
optionaldescription?:string
Defined in: domain/src/other/Relay.ts:62
fees? ​
optionalfees?:RelayFees
Defined in: domain/src/other/Relay.ts:67
icon? ​
optionalicon?:string
Defined in: domain/src/other/Relay.ts:53
limitation? ​
optionallimitation?:object
Defined in: domain/src/other/Relay.ts:68
auth_required? ​
optionalauth_required?:boolean
min_pow_difficulty? ​
optionalmin_pow_difficulty?:number
payment_required? ​
optionalpayment_required?:boolean
name? ​
optionalname?:string
Defined in: domain/src/other/Relay.ts:55
negentropy? ​
optionalnegentropy?:number
Defined in: domain/src/other/Relay.ts:61
payments_url? ​
optionalpayments_url?:string
Defined in: domain/src/other/Relay.ts:66
privacy_policy? ​
optionalprivacy_policy?:string
Defined in: domain/src/other/Relay.ts:64
pubkey? ​
optionalpubkey?:string
Defined in: domain/src/other/Relay.ts:57
redirect_to? ​
optionalredirect_to?:string
Defined in: domain/src/other/Relay.ts:73
self? ​
optionalself?:string
Defined in: domain/src/other/Relay.ts:56
software? ​
optionalsoftware?:string
Defined in: domain/src/other/Relay.ts:59
supported_nips? ​
optionalsupported_nips?:string[]
Defined in: domain/src/other/Relay.ts:63
terms_of_service? ​
optionalterms_of_service?:string
Defined in: domain/src/other/Relay.ts:65
url ​
url:
string
Defined in: domain/src/other/Relay.ts:52
version? ​
optionalversion?:string
Defined in: domain/src/other/Relay.ts:60
Methods ​
display() ​
display(
fallback?):string
Defined in: domain/src/other/Relay.ts:90
Parameters ​
fallback? ​
string = ...
Returns ​
string
displayUrl() ​
displayUrl():
string
Defined in: domain/src/other/Relay.ts:85
Returns ​
string
hasNegentropy() ​
hasNegentropy():
boolean
Defined in: domain/src/other/Relay.ts:95
Returns ​
boolean
hasNip() ​
hasNip(
nip):boolean
Defined in: domain/src/other/Relay.ts:104
Parameters ​
nip ​
string | number
Returns ​
boolean
isPaid() ​
isPaid():
boolean
Defined in: domain/src/other/Relay.ts:109
Returns ​
boolean