Skip to main content
Module

x/lucid/src/core/wasm_modules/cardano_multiplatform_lib_nodejs/cardano_multiplatform_lib.d.ts>PublicKey.from_bech32

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
Very Popular
Go to Latest
method PublicKey.from_bech32
import { PublicKey } from "https://deno.land/x/lucid@0.7.8/src/core/wasm_modules/cardano_multiplatform_lib_nodejs/cardano_multiplatform_lib.d.ts";

Get public key from its bech32 representation Example:

const pkey = PublicKey.from_bech32('ed25519_pk1dgaagyh470y66p899txcl3r0jaeaxu6yd7z2dxyk55qcycdml8gszkxze2');

Parameters

bech32_str: string