EIN - Via - EIN Transfer

For EIN-EIN transfers that use a via contract, call transferSnowflakeBalanceFromVia with the arguments defined below. The first four argument are requirements for a via contract as seen in the Building a Via section. The bytes argument is accepted by the snowflakeCall function of the via Contract and allows arbitrary data to flow to the Via from the Resolver. These arguments are standardized and recognized in the interface of all via contracts.

ARGUMENTS

Parameter

Type

Description

einFrom

uint

EIN of sender - must have allowance set with Resolver.

via

address

via contract address being used in the function call.

einTo

uint

Recipient EIN - receives transfer through viacontract.

amount

uint

Amount of HYDRO to be transferred.

_bytes

bytes

Arbitrary - should be defined in via contract documentation.

Last updated

Was this helpful?