Source Code

;; CAUTION!!!
;; This function can help you register name with single transaction, but attackers can see this through stacks explorer and then register this name with higher fee. 
;; So the higher fee you set, the safer.
;; --by price.btc.us

(define-public (register (namespace (buff 20)) (name (buff 48)))
  (begin
    (try! (contract-call? 'SP000000000000000000002Q6VF78.bns name-preorder (hash160 (concat (concat (concat name 0x2e) namespace) 0x6161616161626262626261616161616262626262)) u2000000))
    (try! (contract-call? 'SP000000000000000000002Q6VF78.bns name-register namespace name 0x6161616161626262626261616161616262626262 0x1122334455667788990011223344556677889900))
    (ok true)
  )
)

Functions (1)

FunctionAccessArgs
registerpublicnamespace: (buff 20