interface GameFiInitializationParams {
    client?: TonClient4 | TonClient4Parameters;
    connector?: WalletConnectorParams | TonConnectUI;
    contentResolver?: ContentResolverParams;
    merchant?: MerchantParams;
    network?: Network;
}

Properties

TonClient instance or only its params.

Pass TonConnectUI instance to use HTML based flow. Pass connector options to use game engine specific connect button implementation (headless mode), like Phaser createConnectButton or draw connect button by yourself.

Default Value

headless mode
contentResolver?: ContentResolverParams

Loading collections, NFTs, etc. information requires requests to external resources. Some of those resources may block direct requests from browsers by CORS policies. Pass function or template string which will be used to generate proxy URL. For example: http://localhost:3000/cors-passthrough?url=%URL% - %URL% will be replaced by URL your proxy server should follow.

merchant?: MerchantParams

TON wallet address and jetton wallet address of in-game shop. In-game purchases will be send to those addresses.

network?: Network

Default Value

testnet

Generated using TypeDoc