Adapter initialization: Pendle

The following code initializes PendleMessageAdapter and adds it to Connector.

Connector connector = new Connector();
...
var messageAdapter = new PendleMessageAdapter(connector.TransactionIdGenerator)
{
	Chain = PendleChains.Ethereum,
	WalletAddress = "<Your wallet address>",
	PrivateKey = "<Your private key>".To<SecureString>(),
};
connector.Adapter.InnerAdapters.Add(messageAdapter);
...

Set the wallet credentials and any other required properties described on the Connector configuration page.

See also

Connector configuration

Connection settings window