Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/lucid/src/core/core.ts>Core.ByronAddress

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.
Go to Latest
class Core.ByronAddress
import { Core } from "https://deno.land/x/lucid@0.5.2/src/core/core.ts";
const { ByronAddress } = Core;

Methods

attributes(): Uint8Array

returns the byron protocol magic embedded in the address, or mainnet id if none is present note: for bech32 addresses, you need to use network_id instead

free(): void
network_id(): number
to_base58(): string
to_bytes(): Uint8Array

Static Methods

from_address(addr: Address): ByronAddress | undefined
from_bytes(bytes: Uint8Array): ByronAddress
icarus_from_key(key: Bip32PublicKey, protocol_magic: number): ByronAddress
is_valid(s: string): boolean