BpfLoader
Factory class for transactions to interact with a program loader
Static Member Summary
Static Public Members | ||
public static get |
Public key that identifies the BpfLoader |
Static Method Summary
Static Public Methods | ||
public static |
Load a BPF program |
Static Public Members
Static Public Methods
public static async load(connection: Connection, owner: Account, elfBytes: Array<number>): Promise<PublicKey> source
Load a BPF program
Params:
Name | Type | Attribute | Description |
connection | Connection | The connection to use |
|
owner | Account | User account to load the program into |
|
elfBytes | Array<number> | the entire ELF containing the BPF program in its .text.entrypoint section |