1.1.32 • Published 9 months ago

nblib2 v1.1.32

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

nblib2

Library for NBdomain

Functions

setOpay(opay)

Set opay object to be used in webpage.

Kind: global function

ParamTypeDescription
opayobjectopay or opay2 object

sha256(string) ⇒ string

Kind: global function
Returns: string - hashed string

ParamTypeDescription
stringstringto hash

getDomain(root) ⇒ object

Kind: global function
Returns: object - domain object

ParamTypeDescription
rootstringdomain name

setPrivateKey(privateKey)

Kind: global function

ParamTypeDescription
privateKeystringto be used with nodeJS app

makePublic(domain) ⇒ json

Make a domain as public, so everyone can write to it. inreversible.

Kind: global function
Returns: json - result

ParamTypeDescription
domainstringto set as public

writePublicDomain(option) ⇒ json

Write contents to a public domain

Kind: global function
Returns: json - result of the update

ParamTypeDescription
optionobjectoption of the update
option.kvobjectkey/value pairs. eg: for key {abc:{abc:"234"}} or {abc:{def:100}} or for keys ab and cd {ab:100,cd:200}
option.isUserBooleanindicate it's for key.domain.tld or key@domain.tld
option.payArray.<object>object array. eg: {address:"dfdaf"},value:1000}. some blockchain, like ar, only supports one receiver per tx

updateKey2(option) ⇒ json

Kind: global function
Returns: json - result of the update

ParamTypeDescription
optionobjectoption of the update
option.kvobjectkey/value pairs. eg: for key {abc:{abc:"234"}} or {abc:{def:100}} or for keys ab and cd {ab:100,cd:200}
option.tagsstringstring. eg: for key {abc:{abc:"234"}} or {abc:{def:100}} or for keys ab and cd {ab:100,cd:200}
option.isUserBooleanindicate it's for key.domain.tld or key@domain.tld
option.payArray.<object>object array. eg: {address:"dfdaf"},value:1000}. some blockchain, like ar, only supports one receiver per tx

verifySig(data_hash, strSig) ⇒ bool

Kind: global function
Returns: bool - result of verify

ParamTypeDescription
data_hashstringhasded string of data
strSigstringsignature

buy(option) ⇒ json

Kind: global function
Returns: json - result

ParamTypeDescription
optionobject-
option.domaindomaindomain to buy

getNodeInfo() ⇒ json

Kind: global function
Returns: json - nodeInfo from node

queryDomain(domain, full) ⇒ json

Kind: global function

ParamTypeDefaultDescription
domainstringone or more domains, separated by ',' .eg "test.b" "test.b,www.abc.b" "aaa.test886.test/all,aaa.test886.test/1"
fullBooleanfalse

domainFromAddress(address) ⇒ json

Kind: global function
Returns: json - result

ParamTypeDescription
addressstringaddress of the domains
1.1.32

9 months ago

1.1.31

10 months ago

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

2 years ago

1.1.23

2 years ago

1.1.27

2 years ago

1.1.26

2 years ago

1.1.25

2 years ago

1.1.24

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.10

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.22

2 years ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.88

2 years ago

1.0.87

2 years ago

1.0.86

2 years ago

1.0.89

2 years ago

1.0.91

2 years ago

1.0.90

2 years ago

1.0.95

2 years ago

1.0.94

2 years ago

1.0.93

2 years ago

1.0.92

2 years ago

1.0.99

2 years ago

1.0.98

2 years ago

1.0.97

2 years ago

1.0.96

2 years ago

1.0.69

3 years ago

1.0.73

2 years ago

1.0.72

2 years ago

1.0.71

2 years ago

1.0.70

3 years ago

1.0.77

2 years ago

1.0.76

2 years ago

1.0.75

2 years ago

1.0.74

2 years ago

1.0.78

2 years ago

1.0.80

2 years ago

1.0.84

2 years ago

1.0.83

2 years ago

1.0.82

2 years ago

1.0.81

2 years ago

1.0.85

2 years ago

1.0.62

3 years ago

1.0.61

3 years ago

1.0.60

3 years ago

1.0.66

3 years ago

1.0.65

3 years ago

1.0.64

3 years ago

1.0.63

3 years ago

1.0.68

3 years ago

1.0.67

3 years ago

1.0.39

3 years ago

1.0.38

3 years ago

1.0.40

3 years ago

1.0.43

3 years ago

1.0.42

3 years ago

1.0.41

3 years ago

1.0.48

3 years ago

1.0.47

3 years ago

1.0.46

3 years ago

1.0.45

3 years ago

1.0.49

3 years ago

1.0.51

3 years ago

1.0.50

3 years ago

1.0.55

3 years ago

1.0.54

3 years ago

1.0.53

3 years ago

1.0.52

3 years ago

1.0.59

3 years ago

1.0.58

3 years ago

1.0.57

3 years ago

1.0.56

3 years ago

1.0.26

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.33

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.37

3 years ago

1.0.36

3 years ago

1.0.35

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago