post http://127.0.0.1:5001/api/v1/name/publish
Publish BTNS names.
Arguments
Arguments | Description | Type | Required? |
---|---|---|---|
arg | BTFS path of the object to be published. | string | Y |
resolve | Check if the given path can be resolved before publishing. Default: "true". | boolean | N |
lifetime | Time duration the record will be valid for. This accepts durations such as "300s", "1.5h", or "2h45m". Valid time units are "ns", "us (or “µs”)", "ms", "s", "m", and "h". Default: "24h". | string | N |
allow-offline | When offline, save the BTNS record to the local datastore without broadcasting to the network instead of simply failing. | boolean | N |
ttl | Time duration this record should be cached for. Uses the same syntax as the lifetime option. | string | N |
key | Name of the key to be used or a valid PeerID, as listed by ipfs key list -l . Default: "self". | string | N |
quieter | Write only final hash. | boolean | N |