Skip to content

Show example of how to send an address in a request #255

@boxhock

Description

@boxhock

The API reference here: https://docs.chain.link/docs/chainlink-framework/
Should be updated with an example of passing in an address in the request.

It's currently not clear how to do this. Passing an address as a uint will not work: smartcontractkit/chainlink#4064

Talked to Steve about this, and the recommended way should be something along the lines of:

req.addBytes('someAddress', abi.encodePacked(address(this)));

We should show this in the docs and make it the recommended way to do this. The only caveat here is that the value received on the CL node/external adapter will be a full word with leading zeroes, encoded with base64.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions