For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Contract operations

How to call a function on a smart contract, and how to deploy a smart contract, from an Ethereum or EVM Account on Ledger Enterprise.

This page describes the two contract operations: a contract interaction calls a function on a smart contract, and a contract deployment publishes a new one.

Role: Operators. You must be in the Creator step of the Rule for the operation. A Master Administrator adds that Rule to the Account.

Both operations are available on native Accounts on Ethereum and the EVM networks. A token Account has no contract operations. Each operation is a Request, governed by its own Rule and approved like a transfer.

Through the API, an API user creates contract Requests without the interface. See the API documentation.

The Rules that govern them

Each operation has its own Rule type, separate from the Send Rules. An Account that can send cannot necessarily call or deploy a contract.

Rule
API operation type
Amount threshold applies to
Whitelists

Contract Interaction Rule

EXECUTE_CONTRACT

The native value that the call sends

Smart Contract Whitelists, matched against the contract address

Contract Deployment Rule

DEPLOY_CONTRACT

The initial deposit

None

A Rule matches when all of these are true:

  • The amount is inside its threshold.

  • The contract is in one of its Whitelists, when the Rule has any.

  • You are in its Creator step.

See Creating and editing Accounts and Whitelists.

Important: The threshold of a Contract Interaction Rule covers only the native value that the call sends. It does not cover tokens that the contract moves. A call to a non-payable function, such as an ERC-20 transfer or approve, sends a value of 0. It matches a Rule whose threshold includes 0, whatever the token amount.

Interact with a contract

Start the interaction

  1. On the Account page, open the menu next to Send.

  2. Select Interact with contract.

The Contract interaction page opens. You can also open it from the menu on the Account's row in the Accounts list.

The menu lists Interact with contract only when you are in the Creator step of a Contract Interaction Rule on the Account.

Enter the contract address

Enter the contract in Address. The Whitelists of your Contract Interaction Rules decide what you can enter:

Your Account's Contract Interaction Rules
What you can do

Every Rule has a Whitelist

Select a whitelisted contract. You cannot type a free address

Only some Rules have a Whitelist

Select a whitelisted contract, or type an address

No Rule has a Whitelist

Type an address

Read the Clear Signing notice

When you enter the address, the form checks whether the contract supports Clear Signing. With Clear Signing, the Ledger device can show the decoded call: the function and its parameters. The form shows one of two notices:

  • "This contract supports Clear Signing."

  • "This contract does not support Clear Signing. Make sure that this Account allows blind signing."

Without Clear Signing, the transaction is blind signed: the Ledger device cannot decode the call. The notice does not block Review. If the check cannot complete, the form shows no notice.

The notice is for the contract, but Clear Signing applies function by function. A call to a function that the contract's Clear Signing data does not cover is blind signed.

The Clear Signing data of a contract comes from Ledger, not from your Workspace. To ask for Clear Signing on a contract, contact Ledger Support.

Choose the function

The form fetches the contract's Application Binary Interface (ABI) from the address. The ABI is the list of the contract's functions and their parameters. The form shows Fetching the ABI…, then ABI fetched. Select Show ABI to read it.

If the ABI cannot be fetched, the form shows "Unable to fetch the ABI. Paste the ABI below." Paste the ABI, in JSON, in the ABI field.

For a proxy contract, the form opens on the functions of the implementation contract. Select Back to proxy ABI (basic functions) to use the functions of the proxy contract itself. Select Access all functions (implementation) to return.

  1. In Contract function, select the function. The list leaves out read-only (view) functions.

  2. Enter a value in the field for each parameter. A tuple or an array takes JSON. A bool takes true or false.

  3. If the function is payable, enter the amount to send in the value field, for example ETH value.

To give the call as raw data, select Use raw calldata instead. Enter the hex-encoded call, starting with 0x, in Transaction calldata (hex-encoded). In this mode, the value field is always shown. Select Select a function instead to return to the function list.

Add a note and check the fee

The Note (optional) field takes up to 1,000 characters. It is the only context that an Approver sees on the Request.

The fee appears when the address and the call are complete. It is a maximum, like the fee of a transfer. See Transaction fees.

Check the Transaction Check result

Transaction Check screens the call before you create the Request. Its result shows under the fee, and Review stays unavailable until the check is complete. A flagged result needs your acknowledgement when you select Review. See Transaction Check.

Approve the interaction

  1. Select Review.

  2. If Transaction Check flagged the call, read the result. Select Approve anyway to continue, or Cancel to stop.

  3. Confirm the details on your Ledger device.

The Request then collects the approvals that its Rule requires.

Important: The form does not name the matching Rule, unlike the send form. If no Contract Interaction Rule covers the value, the contract and you, the platform refuses to create the Request.

After the Request is created

The Request details show the call decoded: the function name, the contract address, and the Parameters with their values. If the call cannot be decoded, the details show the Transaction calldata (hex-encoded).

A contract interaction cannot be sped up or canceled after it is broadcast. See Ethereum and EVM networks.

Tokens that a call moves

A contract call can move tokens, for example in a swap. The call appears as Contract interaction on the Operations tab of the Account that made it.

Each token movement appears on the Operations tab of the token Account for that token. It shows as Send or Receive when the call is an ERC-20 transfer or transferFrom. Any other call shows as Contract interaction.

A token that has no token Account shows on the Token Accounts tab with the View only tag. See Tokens received without a token Account.

Deploy a contract

The menu lists Deploy contract only when you are in the Creator step of a Contract Deployment Rule on the Account.

  1. On the Account page, open the menu next to Send.

  2. Select Deploy contract.

  3. In Contract bytecode, paste the compiled bytecode of the contract. It must be a hex string that starts with 0x.

  4. Optional: in Value / Initial deposit (optional), enter an amount to send to the new contract.

  5. Optional: add a note.

  6. Check the matching Rule that the form names.

  7. Enter the fee fields.

  8. Select Review.

  9. Confirm the details on your Ledger device.

Set the fee manually

The form does not estimate the fee for a deployment, and it offers no speed choice. It shows "Enter the fee manually. To estimate it, use an external tool." Enter all three fields:

Field
What it sets

Gas price (Gwei)

The maximum price for each unit of gas

Gas limit

The maximum number of gas units. A whole number

Priority fee (Gwei)

The tip for each unit of gas. More than 0, and not more than the gas price

The form shows the Max fee: the gas price multiplied by the gas limit.

After the Request is created

The Request details show the Deployer Account and the Contract bytecode hash, a Keccak-256 hash of the bytecode. They do not show the bytecode itself.

Transaction Check does not apply to a deployment. A deployment cannot be sped up or canceled after it is broadcast.

Limiting web3 exposure

Role: Master Administrators.

A contract call acts with the address of the Account that makes it. The controls below limit what a call can reach.

Control
What it limits

No Contract Interaction Rule and no Contract Deployment Rule on the Account

The Account cannot call or deploy a contract. A dapp transaction is a contract interaction, so the Account cannot make one either

No Message Signing Rule on the Account

The Account cannot sign messages, from the form or from a dapp

A Smart Contract Whitelist on every Contract Interaction Rule

Calls go only to the listed contracts. Operators cannot type a free address

A separate Account for contract operations

A call can reach only the assets at that Account's address. These are its native balance and the tokens of its token Accounts

The approval steps of the Contract Interaction Rule

Each call collects its own approvals, separate from those of the Send Rules

Transaction Check

Each call is screened before its Request is created, and again before signature

The amount threshold of a Contract Interaction Rule does not limit token movements. See The Rules that govern them.

Warning: An ERC-20 approve call gives a spender an allowance on the token. The spender can then move tokens up to that allowance from the Account's address, with no new Request. The allowance stays until a later call changes it. See the ERC-20 standard (checked on 9 October 2026).

What can go wrong

What you see
Why

Interact with contract or Deploy contract is not in the menu

You are not in the Creator step of a Rule for that operation on this Account. A Master Administrator must add you

Must be a valid address

The contract address is not a valid address

Unable to fetch the ABI. Paste the ABI below.

The form could not find the contract's ABI. Paste it in the ABI field

Must be a valid ABI

The pasted ABI is not valid JSON in ABI format

No functions available

The ABI has no function that you can call

Must be a valid value for type, for example "Must be a valid value for uint256"

A parameter value does not match its type

Must be a hex-encoded string

The raw calldata is not hex, or it does not start with 0x

Amount exceeds your available balance

The value to send is above the available balance

Must be a hex string that starts with 0x

The bytecode is not hex, or it does not start with 0x

Priority fee must not exceed gas price

The priority fee is above the gas price

Priority fee must be a positive number

The priority fee is 0

Insufficient balance to cover the fee, or to cover the fee and deposit

The maximum fee, plus any deposit, is above the available balance. This is a warning, and it does not block Review

No matching Rule found for the given amount

No Contract Deployment Rule covers this deposit for you

The Request is not created after Review on a contract interaction

No Contract Interaction Rule covers this value and contract for you

Last updated