Get user info of a Keybase user
$ npm install --save keybase-user
var kbuser = require('keybase-user');
kbuser('max').then(function(user) {
console.log(user.id); // => dbb165b7879fe7b1174df73bed0b9500
console.log(user.basics);
/*
{
username: 'max',
ctime: 1391657400,
mtime: 1421074124,
id_version: 150,
track_version: 99,
last_id_change: 1448627381,
username_cased: 'max'
}
*/
});
// other usernames
kbuser('bitcoyne', 'coinbase').then(function(user) {
console.log(user.id); // => 23260c2ce19420f97b58d7d95b68ca00
});
Will return null
if the user object doesn't exist
kbuser(value, [proof])
Required
Type: string
Keybase/linked account username, domain name, or the user's fingerprint.
Type: string
Linked accounts like github, coinbase, hackernews, reddit, etc.
Notes:
- For domains and fingerprint queries use
domain
andkey_fingerprint
Type: object
Various user info.
Notes:
- Visit the official API for more information
Name | Description |
---|---|
id | The user's id (random 32-digit hex string). |
basics | The simplest and often most commonly-accessed info about a user. |
profile | Profile information. By default, user.profile is null, until a user creates one. |
public_keys | Public key bundle. You should access someone's public key with public_keys.primary . |
crypto_address | Bitcoin address and signature id. |
- keybase-primary - Get the primary public key of a Keybase user
MIT © Gabriel Montalvo