> ## Documentation Index
> Fetch the complete documentation index at: https://trust-link-tsn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# blockchain/solana-core API

> Source-derived exports, parameter and result types, public methods and source links.

This reference is generated from the checked-out TypeScript exports. Types and signatures describe the package contract; source presence does not establish deployment or service availability. Error expressions below are direct throws, not an exhaustive list of failures from dependencies.

[Source module](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/blockchain/solana-core.ts). See the [reference index](https://trust-link-tsn.mintlify.site/sdk/api-reference.md) for package import boundaries and verification scope.

## estimateTransactionFeeLamports

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/blockchain/solana-core`. [Implementation, line 80](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/blockchain/solana-core.ts#L80).

```ts theme={null}
estimateTransactionFeeLamports(connection: Connection, transaction: Transaction): Promise<number>
```

## getConnection

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/blockchain/solana-core`. [Implementation, line 55](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/blockchain/solana-core.ts#L55).

```ts theme={null}
getConnection(rpcUrl?: string): Connection
```

## getEscrowAuthorityKeypair

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/blockchain/solana-core`. [Implementation, line 15](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/blockchain/solana-core.ts#L15).

```ts theme={null}
getEscrowAuthorityKeypair(secretKeyValue?: string | null): Keypair
```

Direct failure expressions:

```text theme={null}
new Error("Missing secret key")
new Error("Invalid secret key format")
```

## getEscrowConfigState

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/blockchain/solana-core`. [Implementation, line 85](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/blockchain/solana-core.ts#L85).

```ts theme={null}
getEscrowConfigState(): Promise<{ treasuryOwner: string | null; } | null>
```

## getProgramId

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/blockchain/solana-core`. [Implementation, line 76](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/blockchain/solana-core.ts#L76).

```ts theme={null}
getProgramId(): PublicKey
```

## instructionDiscriminator

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/blockchain/solana-core`. [Implementation, line 11](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/blockchain/solana-core.ts#L11).

```ts theme={null}
instructionDiscriminator(name: string): Buffer<ArrayBuffer>
```

## TOKEN\_PROGRAM\_ID

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/blockchain/solana-core`. [Implementation, line 9](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/blockchain/solana-core.ts#L9).

```ts theme={null}
PublicKey
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.